OOP

http://okmij.org/ftp/Computation/Subtyping/

 

In the article, the author claims that OOP is not a good way to program since a class that extends another can break the  Liskov Substitution Principle. Meaning, it can break existing code, even when the implementation seems sound. The solution is FP.

 

(Please don't take it that I personally think that OOP is bad, just posting this article as something disruptive to think about)

 

Warning: the article contains C++ code...

 

 

ittayd 24/04/2011 - 14:45
oop, OOP

Do Factory is a very good website for design patterns, including diagrams and nice code samples.

 

A very nice design which not many uses is the Chain of Responsibility. Here's a link to a theoretical description of Chain of Responsibility pattern. A more real life example for a potential use can be found in this article, which demonstrates its use when implementing a validation chain.

Itsu Tamam 23/08/2009 - 10:47
Syndicate content