Live data from Hacker News

The most mentioned books on Stack Overflow

dev-books.com

1–10 of 256 posts

Re: The most mentioned books on Stack Overflow

#5
post #3

Ah, the good old Design Patterns book, responsible for more atrocious over-abstracted, unreadable, hard to maintain Java code than anything else before or since.

Not only Java...

But I guess the Problem is how OOP is teached.

Before I learned about design patterns I only saw car or animal examples. Design patterns were the first real world OOP stuff I saw at university.

Re: The most mentioned books on Stack Overflow

#7
post #3

Ah, the good old Design Patterns book, responsible for more atrocious over-abstracted, unreadable, hard to maintain Java code than anything else before or since.

Careful there - lest you throw the baby with the water.

As with all things - there are some good ideas there and some bad. And as I understand it, the book simply presented patterns - programmers were already using at that time. So the book's existence in itself wouldn't cause bad code IMO.

Now if someone were to write a "modern design patterns" book, people will probably write about:

1. Actor pattern and concurrency using message passing.

2. Immutability and - designing types with no shared mutable state.

3. Dependency injection

4. Pattern matching

5. MVC

6. mocks and stubs and fake objects?

7. ...

And same as before - some of these ideas when applied to certain cases could be bad.

Re: The most mentioned books on Stack Overflow

#9
post #5
post #3

Ah, the good old Design Patterns book, responsible for more atrocious over-abstracted, unreadable, hard to maintain Java code than anything else before or since.

Not only Java... But I guess the Problem is how OOP is teached. Before I learned about design patterns I only saw car or animal examples. Design patterns were the first real world OOP stuff I saw at university.

Out of curiosity how long ago were you at university?
Post reply on HN