I often have the pleasure of refactoring this mess.
And sometimes it’s not just 2 ternaries but like 4 or 5 thrown together.
It took like half an hour to even understand what was going on.
If you do this, you are just an evil person…
This shit always leaves me wondering who even writes this crap. The answer is more often than not a junior that just discovered code golf thinking he’s oh so clever. You learn to appreciate boring code, with experience…
I often have the pleasure of refactoring this mess. And sometimes it’s not just 2 ternaries but like 4 or 5 thrown together. It took like half an hour to even understand what was going on. If you do this, you are just an evil person…
So I totally support this. Stop this shit…
Perfect job for ChatGPT.
This shit always leaves me wondering who even writes this crap. The answer is more often than not a junior that just discovered code golf thinking he’s oh so clever. You learn to appreciate boring code, with experience…
Totally agree with you. I’m always an advocate for boring and easy to understand code.
I really don’t need an extra layer of complexity just so someone can save a line or two.