News for hackers. Stuff that matters.
Re:Green vs. Brown Programming Languages by BiteCode_dev on Friday April 23, 2021 @02:49AM (#26911738)
I'm sure somebody said something like that when all those kids started to the clever abstractions that were functions instead of doing things manually in assembly.

Simplicity!

Re:Green vs. Brown Programming Languages by throwaway894345 on Friday April 23, 2021 @09:32AM (#26914570)
This is just vapid snark. Of course some abstraction is helpful, but there's also a point at which abstraction impedes understanding. Ergo, we're debating where the "sweet spot" is. Note also that we can say "Go is the sweet spot for most applications" while also acknowledging that it makes certain kinds of programming difficult (e.g., writing a compiler). It's okay to recognize tradeoffs; there's no need to oversimplify or otherwise engage dogmatically.
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`.