Home
Shin-Rong Tsai
Cancel

[Git] Apply difference between two branches on a third branch

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...

[Design Patterns] Iterator Pattern

Definition The iterator pattern provides a way to access the elements of an aggregated objects in a sequential way without exposing the underlying representation. Scenario We want to go through...

[Design Patterns] Composite Pattern

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...

[Design Patterns] Template Method Pattern

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...

[Design Patterns] Bridge Pattern

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...

[Book Review & Summary] A Matter of Degrees -- by Gino Segre

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...

[Design Patterns] Proxy Pattern

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 ...

[Design Patterns] Facade Pattern

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...

[Design Patterns] Adapter Pattern

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...

[Design Patterns] Command Pattern

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...