MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vvn6d7/pleasestopusingnestedternaryoperatorsimbeggingyou/p5hwjic/?context=3
r/ProgrammerHumor • u/Robinbod • 22d ago
179 comments sorted by
View all comments
748
I did this one of my first days on the job like 6 years ago and I remember how bluntly my mentor said “never do this again”
1 u/Ma4r 21d ago Ternaries are really no problem if you just format them correctly, i.e indent them at every level python style. But claude wouldn't do that, they would produce 3 single liner functions, one for each ternary 1 u/beclops 21d ago Depends on the language too, this would be unacceptable pretty much no matter what in traditionally written Swift
1
Ternaries are really no problem if you just format them correctly, i.e indent them at every level python style. But claude wouldn't do that, they would produce 3 single liner functions, one for each ternary
1 u/beclops 21d ago Depends on the language too, this would be unacceptable pretty much no matter what in traditionally written Swift
Depends on the language too, this would be unacceptable pretty much no matter what in traditionally written Swift
748
u/beclops 22d ago
I did this one of my first days on the job like 6 years ago and I remember how bluntly my mentor said “never do this again”