DEV Community

Discussion on: Why I'm phasing out ternary statements

Collapse
 
bugsysailor profile image
Bugsy Sailor

For most of my coding career I've been a solo coder, meaning I have all the freedom in the world to make the decisions I want on practices for my own websites, etc. In all that time, I have never thought, "Gosh, I wish I was using ternary operators right now!" I like the expanded logic, it was always much easier for me to look over my code in a quick glance.

Collapse
 
mcgurkadam profile image
Adam McGurk

Thatโ€™s fair, it was never really a conscious decision for me either...I just read about it one day and thought it had this visual elegance...and it just sort of happened๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

Thank you for reading!!