this post was submitted on 05 Apr 2024
915 points (96.6% liked)

Programmer Humor

32444 readers
907 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.ml/post/14080970

Hilarious

all 35 comments
sorted by: hot top controversial new old
[–] [email protected] 129 points 7 months ago
[–] [email protected] 65 points 7 months ago (2 children)

Point four was the first thing I immediately noticed.

[–] [email protected] 24 points 7 months ago (1 children)

Technically 102 if you include the one already said

[–] [email protected] 22 points 7 months ago (1 children)

No, they explicitely demanded the 100 times after the say-i-am-sorry-once-routine terminated

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

It wasn't explicit! What if the amount of sorries is stored in a global state? She didn't necessarily specify 100 more sorries. Women so confusing smh.

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

forever scarred by OBO errors.. I noticed that too

[–] [email protected] 62 points 7 months ago

Peer reviewing your apologies is always important.

[–] [email protected] 33 points 7 months ago

Typical 1-off error

[–] [email protected] 32 points 7 months ago* (last edited 7 months ago) (1 children)

print('I am sorry'*100)

Edit: print('I am sorry\n'*100) ffs

[–] [email protected] 9 points 7 months ago

I am sorryI am sorryI am sorryI...

[–] [email protected] 24 points 7 months ago

If there's two things I hate, it's off by one errors!

[–] [email protected] 22 points 7 months ago
  1. She asked for "I'm sorry" and the program would print " I am sorry" (if it actually worked lol)
[–] [email protected] 19 points 7 months ago* (last edited 7 months ago)

Formatting

Many text parsers trim down whitespace unless it's explicitly a code block. You see this often when people attempt to use interleaved spaces for emphasis. For example:

R E D   H A T

becomes "R E D H A T" in your Markdown interpreter.

I think WhatsApp supports code snippets with backticks.

[–] [email protected] 16 points 7 months ago
[–] [email protected] 16 points 7 months ago (2 children)

I really really really hate people who write code in chats as if they are demonstrating some incredibly amazing skill. Doubly so because they so often fuck it up.

[–] [email protected] 33 points 7 months ago (1 children)

That usually done by young folk who just learned the basics. Cut them some slack. They feel good about learning something new.

[–] [email protected] 19 points 7 months ago (1 children)

Yeah, you are right I should.

[–] [email protected] 8 points 7 months ago

Public static void main (That's the joke) { args};

[–] [email protected] 13 points 7 months ago

102 times if you count the one before the code.

[–] [email protected] 12 points 7 months ago (2 children)

I feel like when you title your post "Hilarious", you're being sarcastic. Are you, perhaps, aware that this is actually pretty unfunny? Yet you posted it here nonetheless.

[–] [email protected] 13 points 7 months ago

Watch out OP, big funny appreciator over here found your post sub par

[–] [email protected] 5 points 7 months ago (1 children)

Funny is not an objective quality. The OP can find it hilarious, while you find it unfunny. You can always post something that's funny to you.

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

From the tone of the first message, I'm guessing that's not the first off-by-one error in their relationship.

[–] [email protected] 9 points 7 months ago
  1. Its Java and this is a personal project. Might as well say, "loving you is like developing an api for an insurance company. I can't bear to touch you without two drinks and a subscription to jetbrains" This is how relationships end up on the garbage heap.
[–] [email protected] 8 points 7 months ago (1 children)

Say I'm sorry hundred times before I will forgive you

Dude had a chance and he screwed it up.

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

Nah, anyone that's childish enough to ask something like that isn't worth the effort.

[–] [email protected] 6 points 7 months ago (1 children)

Idk why but whenever someone gets pedantic about silly not real code, i just get grumpy

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

There is a leading space in the string itself, so OP is either a top tier troll or put in no effort at at and either way deserves the hate 😄

[–] [email protected] 6 points 7 months ago

As someone learning how to code, Im happy I got it!

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

goes to stack overflow to steal some code

[–] [email protected] 2 points 7 months ago (2 children)

Leave me I'm angry.

Who speaks like this?

[–] [email protected] 15 points 7 months ago

Denethor II, son of Ecthelion II

[–] [email protected] 9 points 7 months ago

Maybe non native speaker. If you add "alone" in there it sounds fine.