Just sharing some of my inconsequential lunch conversations with you... RSS  

Wednesday, January 20, 2010

SOLID principles

I’ve just loved Hanselman’s show #145, SOLID Principles with Uncle Bob - Robert C. Martin.

I’ve resisted the impulse to join Uncle Bob’s vs Joel Spolsky blog wars. I’m only interested in making reference to Bob’s far-sighted digest of fundamental OO principles. Let me copy them using the order someone have suggested to make it SOLID:


The Single Responsibility Principle

A class should have one, and only one, reason to change.


The Open Closed Principle

You should be able to extend a classes behavior, without modifying it.


The Liskov Substitution Principle

Derived classes must be substitutable for their base classes.


The Interface Segregation Principle

Make fine grained interfaces that are client specific.


The Dependency Inversion Principle

Depend on abstractions, not on concretions.


This are the class principles. Please follow the link to get the packages and coupling principles.

No comments:

Development Catharsis :: Copyright 2006 Mário Romano