News for hackers. Stuff that matters.
Re:Please do not attempt to simplify this code by emn13 on Thursday December 27, 2018 @06:23PM (#18773561)
Even a pure function has "state" - namely its (arbitrarily complex) inputs. But sure, it's a little less of a landmine.

The fundamental issue remains that sometimes your knowledge about that state (whether the classical kind or a proper parameter) can be complex and dependent on what happened elsewhere, especially if the codebase your in was grown into that situation, and not designed like that per-se. A comprehensible set of preconditions and postconditions isn't always a luxury you have, certainly not at first.

There are no comments on this comment yet.