News for hackers. Stuff that matters.
Re:Programming Is Hard by unnouinceput on Wednesday September 20, 2023 @02:14AM (#37580937)
Something like that would fail the code review at any large organization. Why? Because ternary operator is hard for maintenance purposes so the reviewer would simply ask to use if..else syntax instead. I gather you never worked in such organization.
Re:Programming Is Hard by thewakalix on Wednesday September 20, 2023 @02:37AM (#37581097)
That is not the ternary operator.
Re:Programming Is Hard by wruza on Wednesday September 20, 2023 @02:48AM (#37581149)
But following the setting of the gp comment, that operator would fail code review as well. Because the book of sacred rituals says so.
Re:Programming Is Hard by paganel on Wednesday September 20, 2023 @02:33AM (#37581059)
Not the OP and not a fan of ternary operations, but if programming were left to large organizations we would still be writing .asp pages.

Which is to say that inovation happens only when you try to do stuff just a little different each time, so I’d say that code reviews as currently implemented at those big organizations is against long-term programming-related innovation.