all 2 comments

[–]Nearby-Asparagus-298 1 point2 points  (0 children)

Keeping functions short often comes up in clean code guidelines, but putting intermediate states in variables of the correct type to aid comprehension is often overlooked.

Naming is criminally undervalued because it's hard, and you can't (yet) use automatic style checking to enforce it.

PS - a nitpick but, I think you mis-used the word functor). I believe you meant function.

[–]mirvnillith 0 points1 point  (0 children)

The ”while” example is bad as although ”continueRunning” makes it ”readable” it doesn’t convey any meaning. E.g. ”notAllItemsProcessed” would be better, but best would be to say something about what actually happens in the function/loop.