News for hackers. Stuff that matters.
Re:Want cleaner code? Use the rule of six by lamontcg on Saturday September 24, 2022 @05:17PM (#32966597)
Emphasis also on "bunch of lines".

Usually when I see one-line functions they cost more in short term memory than they save. There's good exceptions to this with something like a horrible conditional that is necessarily horrible so you can bust it out into a method with a doc comment about the horribleness, its history, and its subtle madness. But developers that just break out one-line methods all over the place wind up writing hard to understand code.

Re:Want cleaner code? Use the rule of six by Shaanie on Sunday September 25, 2022 @04:49AM (#32969874)
One-line functions are also nice when a comment would've been warranted otherwise. But yes, easy to go overboard with it.