News for hackers. Stuff that matters.
Re:Useful and useless code comments by mr_mitm on Friday June 18, 2021 @03:06AM (#27548058)
> 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.

Re:Useful and useless code comments by sa46 on Friday June 18, 2021 @04:49AM (#27548544)
An earlier submission has a lively debate between these two approaches. https://news.ycombinator.com/item?id=12120752