Hacker News new | ask | show | jobs
by mr_mitm 1831 days ago
> You don't always want to separate out a function,

Why not? The above could have easily contained a `ensureDirectoryExists(item)`. It would have the benefit of being more reusable, too.

1 comments

An earlier submission has a lively debate between these two approaches. https://news.ycombinator.com/item?id=12120752