Hacker News new | ask | show | jobs
by llimllib 1263 days ago
A Philosophy of Software Design is excellent, I dislike almost all programming books but that one is great.
2 comments

Agreed, it's a good book, although everything in it isn't great. I think he goes overboard when it comes to comments for example. Probably most famous for the concept of "deep modules" (the interface should be a lot simpler than the implementation), which I like. I also really liked the idea about defining errors out of existence, e.g. a substring method can be defined in a way that it never needs to throw any exceptions.

I've written a longer review of it here:

https://henrikwarne.com/2021/07/12/book-review-a-philosophy-...

It's one of my favorites. I've read it a few times and always find it insightful and motivating. It's an easy, quick read that I recommend to anyone that wants to build better software.