News for hackers. Stuff that matters.
Re:Thank You, Guido by huhtenberg on Wednesday October 30, 2019 @01:15PM (#21400060)
The third option, of course, is to just comment your clever code to make it less cryptic.

Yes, you can have your pie and eat it :)

Re:Thank You, Guido by nomel on Wednesday October 30, 2019 @01:35PM (#21400295)
Unless there’s a real and needed benefit, why complicate it?

I’ve seen clever code that was 300% faster, half the lines, completely unreadable, and called once per session, for a total the time of 10ms in a workflow that was minutes long.

No amount of commenting could justify it.

Re:Thank You, Guido by bagacrap on Wednesday October 30, 2019 @03:11PM (#21401370)
The compiler doesn't care about comments, so in my experience comments quickly go out of date as others change the code and ignore comments.

There's nothing to say code can't be performant and legible. In fact I'm a bit confused what "clever" means here. Writing performant but illegible code does not take more cleverness than performant while legible.