Composability and Productivity

Here’s a gem from Paul Johnson about the relationship between composable code and productivity.

Surprisingly, program state generally is a source of non-composability. Mutable state is actually another form of manual memory management: every time you over-write a value you are making a decision that the old value is now garbage, regardless of what other part of the program might have been using it.

hoodwink.d enhanced