| Random Link ¯\_(ツ)_/¯ | ||
| Aug 1, 1997 | » | [ToDo] Design Patterns: Elements of Reusable Object-Oriented Software
1 min; updated Jul 8, 2026
Design Pattern Catalog
Design Patterns: Elements of Reusable Object-Oriented Software.
Erich Gamma; Richard Helm; Ralph Johnson; John Vlissides.
|
| Oct 21, 1994 | » | Design Patterns: Elements of Reusable Object-Oriented Software
(2 items)
Intro to Design Patterns; Observer; |
| Mar 30, 2023 | » | Intro to Design Patterns
3 min; updated Mar 30, 2023
What Are Design Patterns?Arriving at designs that are specific to the problem at hand but general enough to address future problems and requirements is hard. New designers tend to be overwhelmed by the options available. Expert designers do not solve every problem from first principles; they reuse design patterns. |
| Sep 28, 2021 | » | Observer
8 min; updated Feb 12, 2023
Rant: some of willchan’s thoughts on WeakPtr, for those who care to read criticizes the observer pattern for murking dependency chains. Investigate more in this regard. IntentA one-to-many dependency between object so that when one object (subject) changes, all its dependents (observers) are notified and update automatically. ... |
I’ve also encountered the “you aren’t gonna need it” (YAGNI) school of thought that aims to minimize writing code that anticipates too far into the future, as such guesses usually don’t pan out. Design patterns seem like they exist somewhere between designing for now, and designing for a possible future. A design pattern solves a specific problem being encountered now. And even within a design pattern, one could still adhere to YAGNI, and add pieces when needed. When it does come to the point where the design needs more features, at least the design pattern provides a mental framework that is consistent with the initial design of the system.
...