this post was submitted on 28 Jul 2024
1305 points (99.0% liked)

Programmer Humor

19817 readers
89 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 197 points 4 months ago* (last edited 4 months ago) (5 children)

What if I prefer this?

#define CURLYOPENRIGHTCLOSEDLEFTBRACKET {
#define CURLYOPENLEFTCLOSEDRIGHTBRACKET }
#define CURVYOPENRIGHTCLOSEDLEFTBRACKET (
#define CURVYOPENLEFTCLOSEDRIGHTBRACKET )
#define PERIODWITHPERIODONTOP :
#define COMMAWITHPERIODONTOP ;

int main CURVYOPENRIGHTCLOSEDLEFTBRACKET CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
  if CURVYOPENRIGHTCLOSEDLEFTBRACKET 1 CURVYOPENLEFTCLOSEDRIGHTBRACKET CURLYOPENRIGHTCLOSEDLEFTBRACKET
    asm volatile CURVYOPENRIGHTCLOSEDLEFTBRACKET
      "mov $1, %%rax\n"
      "mov $1, %%rdi\n"
      "lea message(%%rip), %%rsi\n"
      "mov $4, %%edx\n"
      "syscall\n"
      PERIODWITHPERIODONTOP
      PERIODWITHPERIODONTOP
      PERIODWITHPERIODONTOP "%rax", "%rdi", "%rsi", "%rdx"
    CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
  CURLYOPENLEFTCLOSEDRIGHTBRACKET
  return 0 COMMAWITHPERIODONTOP
CURLYOPENLEFTCLOSEDRIGHTBRACKET

asm CURVYOPENRIGHTCLOSEDLEFTBRACKET ".section .data\n"
  "message: .ascii \"wut\\n\"\n"
  ".section .text\n" CURVYOPENLEFTCLOSEDRIGHTBRACKET COMMAWITHPERIODONTOP
[–] [email protected] 92 points 4 months ago (2 children)

You can't be helped, sorry. We will put you to an asylum for people like you

[–] [email protected] 28 points 4 months ago (1 children)

Asylum? We have the electric chair for this.

[–] [email protected] 12 points 4 months ago

Yeah, now I see why you want him dead. He used mov after lea

[–] [email protected] 49 points 4 months ago* (last edited 4 months ago) (1 children)

You win a free trip to the Hague

[–] [email protected] 18 points 4 months ago (1 children)

They don't even deserve the trial. Straight to gulag.

[–] [email protected] 3 points 4 months ago (1 children)

Still need at least troyka to send to gulag. Or regular court outside of stalinism.

[–] [email protected] 3 points 4 months ago

The taxi chauffeur can be judge and do it on the way to the gulag.

Obviously the sentence is predetermined.

[–] [email protected] 28 points 4 months ago (1 children)
[–] [email protected] 20 points 4 months ago

Acceptable, just FYI I added a pre-commit git hook, please rebase your changes.

[–] [email protected] 18 points 4 months ago

Thanks. I hate it.