views:

37

answers:

2
+2  Q: 

book about SOLID

Is there a really good book that explictly focuses on and walks me through SOLID (with code examples in Java or C#).

+4  A: 

I believe agile principles by Bob Martin will do the job.

From the TOC:

Chapter 8: The Single-Responsibility Principle (SRP) 115
Chapter 9: The Open/Closed Principle (OCP) 121
Chapter 10: The Liskov Substitution Principle (LSP) 135
Chapter 11: The Dependency-Inversion Principle (DIP) 153
Chapter 12: The Interface Segregation Principle (ISP) 163

These all have examples in C#.

Oded
you could also go with Agile Software Development, Principles, Patterns, and Practices, which is by Martin and reuses alot of the material.
Alex Lo
it's the book before the one you are talking about: http://www.amazon.com/exec/obidos/ASIN/0135974445/objectmentorinc
Alex Lo
5th book on this page: http://www.objectmentor.com/resources/books.html
Alex Lo
@Alex Lo - fair enough. The titles are almost identical... Sorry about that.
Oded
I wonder if it was Martin who "invented" SOLID as a whole.
bitbonk
+1  A: 

The Agile Principles book that Oded recommends is good, but personally I found Clean Code to be a more immediately applicable, but why pick, read both. They cover many of the same topics but do so a little differently.

Brian Rasmussen
Looking at the TOC, it doesn't seem to have dedicated chapters on O.L.I.D. I can only find one for S. Does it really explictly explain O.L.I.D. in detail.
bitbonk
@bitbonk: It isn't as explicit as the Agile Principles book, but the concepts behind SOLID is embedded in the topics covered.
Brian Rasmussen
+1 - I am reading Clean Code right now - it is a good read, immediately applicable. Not as focused on SOLID.
Oded