3 ms·
> But I'm assuming that the functions aren't mucking about with global state or something equally distasteful. It seems fairly obvious to me that either the fo
by skinkestek 6y ago
> But I'm assuming that the functions aren't mucking about with global state or something equally distasteful.
It seems fairly obvious to me that either the former example is waaaay simpler or it is doing something really distasteful.
- peterwwillis 6y agoSome designs don't require your own code to pass around state between functions, because each function can handle state in its own way without dependence on other functions. I've written a lot of such simple scripts where I just need to execute a series of tasks that aren't necessarily related to one another, but do follow each other.