r/shittyprogramming • u/calsosta • Nov 30 '18
Friday Code Confessions
If you have been living with technical debt and want absolution here is your opportunity.
Confess your sins and receive your penance.
155
Upvotes
View all comments
Show parent comment
5
u/asm_ftw Dec 01 '18
For anything of any level of complexity beyond a simple comparison and value assignment, I agree, but I tend to feel that chaining ternaries feels cleaner and more concise when you have the drudgery of checking a variety of conditions and assigning a single variable based on it.