3 ms·
> 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
by entity345 8y ago
> 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.
That's perhaps the main issue: crucial and unexpected state change hidden in functions.
Functions should do a single thing and should have explicit names.
We've all encountered functions with innocuous names a la "printSomething" that actually also changed internal state by stealth...