3 ms·
The impureim sandwich is often thought of as a sort of impractical purism that only a Haskell programmer could love. But it's really quite useful in imperative
by mumblemumble 3y ago
The impureim sandwich is often thought of as a sort of impractical purism that only a Haskell programmer could love. But it's really quite useful in imperative and object-oriented code, too. For example, in typical enterprise programming there are quite a few elaborate and complicated practices that aren't needed to nearly the same extent (if at all) when the code is structured as an impureim sandwich. Dependency injection, mockist testing, service locators, and singletons all come to mind.