6 points

I’m dumb . does the program do anything?

permalink
report
reply
14 points

This is FizzBuzz.

permalink
report
parent
reply
16 points
*
Removed by mod
permalink
report
reply
51 points

And that’s how rappers became the top programmers in the industry

permalink
report
reply
25 points

Can’t wait to see Lil Yachty around work

permalink
report
parent
reply
23 points
*

Does it make me a bad person that I like this?

Edit: wait… return ! 0 ; wtf

Edit 2: idc still like it frfr no cap

permalink
report
reply
1 point

Yes.

permalink
report
parent
reply
5 points

Edit: wait… return ! 0 ; wtf

I mean, returning non-zero exit status on error is just good practice. It even managed to evaluate to the same numerical value as EXIT_FAILURE when I tested it on my machine (gcc 11.4.0 linux x86-64), although I’m not sure if that’s always the case or if it’s undefined behavior.

This cursed code is quite well-written.

permalink
report
parent
reply
5 points

!0 is defined as 1, that’s how argv [ no cap ] works, that and the ridiculous argc check stood out as a bit off, but works

permalink
report
parent
reply
41 points

Artistry, on god frfr 🙏🙏

permalink
report
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 3.7K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments