I definitely agree that we need to avoid ternaries in ternaries (I've seen that in wild....just why????) and also logic in ternaries...
And I agree that the time to use them is when we're assigning value...and only then. And there is definitely a time and a place for them!
Thanks for reading!!!
Thank you for sharing!
I really appreciate that readability is becoming more important than having a fewer lines of code, as you suggested.
We need to understand that we are mainly readers of code, and only then writers.
Totally agree!!! We are definitely readers first, creators second, writers third.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I definitely agree that we need to avoid ternaries in ternaries (I've seen that in wild....just why????) and also logic in ternaries...
And I agree that the time to use them is when we're assigning value...and only then. And there is definitely a time and a place for them!
Thanks for reading!!!
Thank you for sharing!
I really appreciate that readability is becoming more important than having a fewer lines of code, as you suggested.
We need to understand that we are mainly readers of code, and only then writers.
Totally agree!!! We are definitely readers first, creators second, writers third.