Hacker News new | ask | show | jobs
by ahaferburg 1009 days ago
Makes me think of these two emails by John Carmack.

http://number-none.com/blow/john_carmack_on_inlined_code.htm...

> The real enemy addressed by inlining is unexpected dependency and mutation of state, which functional programming solves more directly and completely. However, if you are going to make a lot of state changes, having them all happen inline does have advantages; you should be made constantly aware of the full horror of what you are doing. When it gets to be too much to take, figure out how to factor blocks out into pure functions (and don.t let them slide back into impurity!).