SOLID Principles


If you take the SOLID principles to their extremes, you arrive at something that makes Functional Programming look quite attractive

SOLID, particularly the SRP and ISP, leads you towards code bases with many fine-grained classes with a single method. Such objects represent data with behaviour, but can also be modelled as behaviour with data: Closures. When that happens repeatedly, it’s time to make the switch to a Functional Programming Language like F#.

 

~ by mdavey on March 25, 2014.

2 Responses to “SOLID Principles”

  1. Your comment about closures being an alternative to OO demonstrates a lack or understanding of both OO languages and functional languages like F#. It is also an absurd interpretation of SRP which ignores any kind of cohesion

  2. […] SOLID Principles (Matt Davey) […]

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.