News for hackers. Stuff that matters.
Re:Clever code is probably the worst code you could write by autoexecbat on Tuesday May 21, 2024 @07:05PM (#40435218)
I think most people would be thinking "hmm now I need to read what 'reduce' mean in this context"
Re:Clever code is probably the worst code you could write by jacoblambda on Tuesday May 21, 2024 @07:19PM (#40435397)
At least in my experience in the C++ world there is a general expectation that you learn the "standard algorithms" and prefer them over the alternatives unless you have a specific reason not to.

For example: outside the C++ ecosystem, most people probably would stare blank faced if they saw `std::rotate` in a codebase but it's basically a meme at this point in the C++ space.

Ex: https://www.youtube.com/watch?v=UZmeDQL4LaE

Re:Clever code is probably the worst code you could write by a_t48 on Tuesday May 21, 2024 @07:17PM (#40435364)
For at least the first time, yeah.