News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by pier25 on Monday May 06, 2019 @10:00AM (#19839439)
The problem is not knowing how ternaries work, it's about how explicit is that line of code.
Re:Clear is better than clever [pdf] by Cthulhu_ on Tuesday May 07, 2019 @05:47AM (#19847897)
Exactly; to use the phrasing used in the presentation, it's about how difficult it is to decode the statements. I'm not a C guy; a regular ternary is fine, as long as it's simple enough. A nested ternary? That gives me all kinds of red flags because I have to lean in and frown and go over it a few times to decode it.