8 bookmarks. First posted by pablomeier 12 weeks ago.
A collection of well known slogans about software design that are especially well known in the functional programming world.
1. Parse, donât validate
2. Make illegal states unrepresentable
3. Errors as values
4. Functional core, imperative shell
5. Smart constructor
software-designÂ
software-engineeringÂ
1. Parse, donât validate
2. Make illegal states unrepresentable
3. Errors as values
4. Functional core, imperative shell
5. Smart constructor
18 days ago by jschuster
Dmitrii recently posted a tweet (now also reposted to Bluesky) titled âFunctional programming self-affirmationsâ that listed five items:
Parse, donât validate
Make illegal states unrepresentable
Errors as values
Functional core, imperative shell
Smart constructor
These got me interested, but as usual, the problem with such distilled mantras is that you need a lot of context to understand and use them. What does it mean to have a âsmart constructorâ? In the comments Dmitrii himself and other people added links to suggested reading. Letâs go over each item and uncover what it means.
functionalprogrammingÂ
Parse, donât validate
Make illegal states unrepresentable
Errors as values
Functional core, imperative shell
Smart constructor
These got me interested, but as usual, the problem with such distilled mantras is that you need a lot of context to understand and use them. What does it mean to have a âsmart constructorâ? In the comments Dmitrii himself and other people added links to suggested reading. Letâs go over each item and uncover what it means.
12 weeks ago by rubinson
Another post that I feel does a good job on concepts I agree with
programmingÂ
12 weeks ago by pablomeier