this post was submitted on 11 Dec 2023
32 points (80.8% liked)

JavaScript

2172 readers
3 users here now

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] FourThirteen@lemmy.world 4 points 1 year ago

I've been a software developer for 7 years and I've grown to hate terneries entirely. They only hinder readability. Readability is the biggest factor in maintainability. Code that is hard to maintain makes bugs.

I always mark PRs with nested terneries as "needs work".