Posts Tagged ‘SOLID’
I got into an interesting discussion about SOLID principles with a fellow developer today, and it got me to thinking about a common problem I’ve seen come up and I wanted to try and touch on it.
My wife recently asked me to work on a site for our son’s class and while working on it I realized that what I was building was a pretty great example of my thoughts on how I feel that Models and ViewModels relate to each other.
I saved Single Responsibility Principle (SRP) for last. I think it’s the most important principle to unhttp://josephbulger.com/wp-admin/post.php?post=738&action=edit&message=10derstand and to utilize correctly. I would even go so far as to say it’s the most important principle to follow.
Dependency Inversion Principle has a dramatic effect on your code base. It has the potential to decouple your code in ways that you never would have thought possible before. Using a good IoC container can make all the difference as well.
Interface Segregation Principle (ISP), focuses on the idea that it’s better to have many small specific interfaces that define one concept, then to have one big contract that encompasses many concepts in one.
