News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by pier25 on Monday May 06, 2019 @10:23AM (#19839656)
> why spend time to read 10 lines and figure out that it actually does what a simple ternary operation would accomplish??

Because when something is expressed in 10 lines explicitly, generally you can simply skim over the code to get an idea of what's going on without having to go into the details.

"Smart and clever" code, like using nested ternaries, demands you to focus and try to figure out what is going on.

Re:Clear is better than clever [pdf] by wtetzner on Monday May 06, 2019 @12:31PM (#19840987)
> Because when something is expressed in 10 lines explicitly, generally you can simply skim over the code to get an idea of what's going on without having to go into the details.

Which is why important details get missed when reviewing verbose code.