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
2010-10-13 09:11:55
you could also go with Agile Software Development, Principles, Patterns, and Practices, which is by Martin and reuses alot of the material.
Alex Lo
2010-10-13 18:59:44
it's the book before the one you are talking about: http://www.amazon.com/exec/obidos/ASIN/0135974445/objectmentorinc
Alex Lo
2010-10-13 19:11:13
5th book on this page: http://www.objectmentor.com/resources/books.html
Alex Lo
2010-10-13 19:11:43
@Alex Lo - fair enough. The titles are almost identical... Sorry about that.
Oded
2010-10-13 19:13:49
I wonder if it was Martin who "invented" SOLID as a whole.
bitbonk
2010-10-26 21:02:32
+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
2010-10-13 09:17:33
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
2010-10-13 09:45:31
@bitbonk: It isn't as explicit as the Agile Principles book, but the concepts behind SOLID is embedded in the topics covered.
Brian Rasmussen
2010-10-13 09:54:26
+1 - I am reading Clean Code right now - it is a good read, immediately applicable. Not as focused on SOLID.
Oded
2010-10-13 09:59:01