Re:Green vs. Brown Programming Languages
by carlhjerpe on Friday April 23, 2021 @07:06AM
(#26913422)
Some developers don't want to use the ternary operator because it's "too complex".
I believe there's a middle ground to be found where further abstractions add complexity rather than reduce it. Where that middle ground is, I don't know.
Re:Green vs. Brown Programming Languages
by wtetzner on Saturday April 24, 2021 @12:54PM
(#26926344)
That’s a strange definition of complexity. I can see people avoiding the ternary operator because the syntax is hard to read, but it’s no more complex than `if`.
I believe there's a middle ground to be found where further abstractions add complexity rather than reduce it. Where that middle ground is, I don't know.