2 ms·
Sometimes eliminating state can also mean increasing complexity and lines of code tremendously.
by JamesBarney 5y ago
Sometimes eliminating state can also mean increasing complexity and lines of code tremendously.
- TeMPOraL 5y agoA lot depends on what your language and its ecosystem can support. For instance, the kind of monadic stuff people do with Haskell and Scala can compress programs tremendously, but then I've worked in a codebase that tried the same things in C++ - and there, the line count expands, because the language just can't express some of the necessary concepts in a concise way.