DCSIMG

 Subscribe in a reader

Are You A S.o.l.i.d Developer? - Guy kolbis
Monday, November 17, 2008 7:02 AM kolbis

Are You A S.o.l.i.d Developer?

principles_splash S.O.L.I.D. is a collection of best-practice object-oriented design principles that you can apply to your design to accomplish various desirable goals like loose-coupling, higher maintainability, intuitive location of interesting code, etc.

So what are the principles?

There are five principles of class design. They are:

SRP

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

OCP

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

  • The Open Closed Principle
  • PTOM: The Open Closed Principle by Joe Ocampo
  • PTOM: OCP Revisited in Ruby by Joe Ocampo
  • LSP

    Derived classes must be substitutable for their base classes.

    DIP

    Depend on abstractions, not on concretions.

    ISP

    Make fine grained interfaces that are client specific.

    תגים:,

    תוכן התגובה

    # re: Are You A S.o.l.i.d Developer?

    Arnon Rotem-Gal-Oz כתב/ה

    You might also want to read a paper I wrote on these principles www.rgoarchitects.com/.../ooprimer.pdf

    Arnon

    Monday, November 17, 2008 1:14 PM

    # re: Are You A S.o.l.i.d Developer?

    kolbis כתב/ה

    Thanks...Will sure check it out..

    Monday, November 17, 2008 1:43 PM

    שלח תגובה

    (שדה חובה) 
    (שדה חובה) 
    (אופציונלי)
    (שדה חובה) 

    Enter the numbers above: