this post was submitted on 08 Jun 2026
549 points (94.2% liked)

Programmer Humor

31959 readers
1676 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

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

Reference values are quite useful, such as:

double valOut;
if (parseDouble(valOut) == 0) { //Argument of parseDouble is ref type, no & needed for input, no exceptions needed for error handling
    [...] //No error, code executed normally
} else {
    [...] //Erroreus input
}