Back to the bookshelf

Typographic jacket · original cover not fetched

FROM THE SHARED SHELF · 2006–2026 SAMPLE

Head First Design Patterns

Eric Freeman, Elisabeth Robson, Bert Bates, Kathy Sierra

7 readers recommend it across 6 discussions

Topics are model-inferred labels.

Keep it on your reading list

THE WORD OF MOUTH

What made it worth passing on?

Original Hacker News comments, in the readers’ own words.

dhosek
A lot of confusion comes down to some bad use of inheritance. Probably the most important OO concept is the Liskov Substitution Principal, viz that if you specify a superclass in a certain place, then any subclass should be a valid use there. The strategy pattern (or its hyperpituitary cousin, IoC) takes advantage of this to allow for run-time change of behaviors, e.g., being able to choose through configuration how to serialize a data structure so the same basic logic can output, say, a dataset as a table or a graph. That said, as OO architecture has matured over the last few decades, there has definitely been a tendency to favor composition over inheritance for code flexibility. I would recommend Head-First Design Patterns as another great book for being able to “get” object-oriented architecture.
pier25
- Sapiens - The Lord of the Rings - Siddhartha - Chaos: Making a New Science - The Death Gate cycle books - Neuromancer - Head First Design Patterns - Valis - Dune - The name of the rose I'm sure there are more, but these are the ones off the top of my head.
amerkhalid
1. Head First Design Patterns - Didn't learn patterns in school. This book made a lot of difference in communication with more experienced programmers. 2. Pragmatic Programmer - A classic, learned many practical tips for day to day programming job. 3. Founders at Work - Motivated me to work on my side projects and be constantly learning.

Also recommended in this reply