News for hackers. Stuff that matters.
Re:Chaining, or why you should stop returning void (2012) by jedimastert on Friday November 05, 2021 @08:30AM (#29118241)
First, needs a (2012).

Second, this is the very top:

> Edit from 2018: The tone of this post is a little cringe-worthy to me now in retrospect, and I think that many APIs are probably clearer when you return void. Leaving this here for posterity.

Re:Chaining, or why you should stop returning void (2012) by amsully on Sunday November 07, 2021 @10:07AM (#29140013)
It's amazing how easily my brain skips a subtitle like this. Years of subconsciously parsing advertisements has won over my elementary school teachers encouragement to "read the whole passage."
Re:Chaining, or why you should stop returning void (2012) by Shorn on Sunday November 07, 2021 @05:59PM (#29144414)
Y'know, I've been wondering lately what's been going on with my reading comprehension. I just wrote off all these errors over the last few years as part of getting old.

I've been so busy patting myself on the back for succeeding in not giving any attention to ads - I never stopped to think there might be a cost.

Re:Chaining, or why you should stop returning void (2012) by spicybright on Sunday November 07, 2021 @10:56AM (#29140488)
Same. Bites me more than I'd like to admit.
Re:Chaining, or why you should stop returning void (2012) by lainproliant on Sunday November 07, 2021 @06:06PM (#29144453)
Commenting about the cringe-worthiness of the tone: I noticed early on in my career that folks seem to be extremely polar in their idea of "right" and "wrong" choices when it comes to software. This crystallization is self-fulfilling, as the bombastic tone dissuades softer voices from expressing dissenting opinions or new ideas. Sometimes there are scientifically proven "right" ways to do things, i.e. comparing the computational or space efficiency of different algorithms. When it comes down to code style and API design though, what really matters is self-consistency and clarity. Much of the rest is down to preference and personal expression.