Home
Shin-Rong Tsai
Cancel

[Design Patterns] Decorator Pattern

Definition A decorator pattern attaches additional responsibilities to an object dynamically (at runtime). Decorators provide a flexible alternative to subclassing for extending functionalities. S...

[Design Patterns] Observer Pattern

Definition The observer pattern defines a one-to-many dependency between objects. So that when it (the observable) changes its state, all of its dependencies are notified. Scenario Instead of maki...

[Design Patterns] Strategy Pattern

Definition The strategy pattern defines a families of algorithms and lets the clients choose from it and can change independently. Scenario Inheritance is not for code reuse. Inheritance shares co...

[Book Review & Summary] Deep Simplicity -- by John Gribbin

Reading Date: Dec 23, 2022 ~ Feb 8, 2023 Order out of Chaos When dealing with complicate physical systems, we will make assumptions and consider ideal situations first, and then start adding f...

[Book Review & Summary] Seven Brief Lessons on Physics -- by Carlo Rovelli

Reading Date: Dec 12, 2022 ~ Dec 18, 2022 Contradictions and Our Attempt to Combining Them General relativity and quantum mechanics cannot both be right, at least in their current forms, becau...

[Book Review & Summary] The Order of Time -- by Carlo Rovelli

Reading Date: Sep 29, 2022 ~ Nov 9, 2022 A present that is common throughout the whole universe does not exist Physics describes how things evolve in their own time and how these times evolve ...