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 Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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

<span>%d</span> bloggers like this: