Re:John Carmack on Inlined Code (2014)
by lmm on Tuesday January 22, 2019 @07:08AM
(#18967678)
Or use a state monad to distinguish between steps that mutate state and functions that don't, making your order dependencies visible and easy to work with...
[ Parent
| on HN ]
Re:John Carmack on Inlined Code (2014)
by scarface74 on Tuesday January 22, 2019 @03:49PM
(#18972296)
And this is how we end up with classes like AbstractSingletonProxyFactoryBean
No, just the opposite. Languages with inadequate composition facilities forcing overly specialised single-purpose classes lead to AbstractSingletonProxyFactoryBean. Small composable abstractions are how you avoid it.
Zygohistoric prepromorphism has the same kind of meme status as AbstractSingletonProxyFactoryBean, but the difference is that a zygohistoric prepromorphism is a one-liner you can compose together yourself out of the functions that the library in question makes available, whereas AbstractSingletonProxyFactoryBean is a class in its own right that the library in question has to define.