git rebase --onto branchA branchB feature If there is a conflict when rebasing, we need to resolve it in each commit moving. Before: After: Reference Apply difference between two bran...
Definition The composite pattern composes objects into tree structures to represent the part-whole hierarchy relationship. The composite pattern lets clients treat individual objects and the comp...
Definition The template method pattern defines a skeleton of an algorithm or an operation, with some steps varying in different subclasses. The template method lets subclasses redefine specific st...
Definition The bridge pattern intends to decouple an abstraction from its implementation so that the two can vary independently. The bridge pattern is a bit like the adapter pattern, but the inte...
Reading Date: May 16, 2023 ~ Sep 4, 2023 98.6 F Human’s body temperature is 98.6 F, though it may change according to the time of day or age. The hypothalamus is a master control system embed...
Definition The proxy pattern provides a placeholder for another object in order to control access to it, but not changing the object’s interface. Proxy Usage ...
Definition The facade pattern provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use from the client’s p...
Definition The adapter pattern converts the interface of a class into another interface that a client expects. The adapter lets classes work together that couldn’t otherwise because of the incompat...
Definition The command pattern encapsulates a request as an object, thereby allowing you to parametrize other objects with different request queues and supporting undoable operations. Scenario W...
I always want to start my blog and personal website, finally started the website today! It will be about the side projects I’m working on, my notes on some random stuff, book review, etc. I always ...
A new version of content is available.