this post was submitted on 08 Dec 2023
615 points (96.4% liked)

Programmer Humor

32192 readers
757 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] KairuByte@lemmy.dbzer0.com 7 points 10 months ago (1 children)

There’s more to it imho. The first three are more prone to mistakes than the last. You are much less likely to accidentally alter the logic intended in a simple null coalesce than you are in if statements.

[–] RagingRobot@lemmy.world 0 points 10 months ago (1 children)

That's fair but if you had proper test coverage there wouldn't be much risk. Who has that though? Lol

[–] KairuByte@lemmy.dbzer0.com 4 points 10 months ago

None of my projects had time for reliable testing unfortunately. It was always “next sprint” or “when we have time” which never really came to fruition.