Lately, I've been using almost exclusively interfaces and custom types in my applications.

I've written about this here:

There are things that I haven't discussed there though, like how to deal with validation and decorators, which can only be added to classes and actually requires the introduction of some classes.

For the most part though, classes are not that interesting. I guess that BDD aficionados will not agree, but I prefer to manipulate pure immutable data.

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store