this post was submitted on 18 Jan 2024
718 points (98.5% liked)

Programmer Humor

19289 readers
1458 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 191 points 8 months ago (17 children)

I propose a new, more threatening kind of control flow.

do {
  /* something */
} or else {
  /* you don't want to find out */
}
[–] gex 57 points 8 months ago (11 children)

Some C++ style guides suggest the following naming convention for functions that crash on any error

OpenFileOrDie()
[–] [email protected] 1 points 8 months ago

Now what about GZDoom's GoAwayAndDie();?

load more comments (10 replies)
load more comments (15 replies)