News for hackers. Stuff that matters.
Re:Want cleaner code? Use the rule of six by somehnguy on Saturday September 24, 2022 @12:44PM (#32964332)
Looks similar to Streams in Java. We try to use that style where appropriate as it is much more readable and compact than imperative style imo.
Re:Want cleaner code? Use the rule of six by vbezhenar on Sunday September 25, 2022 @12:20AM (#32968928)
For me that's questionable. Yes, there's code which fits finely with streams and looks very readable. Yet there's code which looks like it was shoehorned into a Procrustean bed and looks much better with ordinary loops.