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

Programmer Humor

35551 readers
66 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 30 comments
sorted by: hot top controversial new old
[–] starman 133 points 1 year ago (1 children)
[–] [email protected] 1 points 5 months ago

Languages without do-until are primitive

[–] [email protected] 66 points 1 year ago (2 children)

Point four was the first thing I immediately noticed.

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

Technically 102 if you include the one already said

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

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

[–] [email protected] 18 points 1 year 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 1 year ago

forever scarred by OBO errors.. I noticed that too

[–] [email protected] 59 points 1 year ago

Peer reviewing your apologies is always important.

[–] [email protected] 33 points 1 year ago

Typical 1-off error

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

print('I am sorry'*100)

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

[–] [email protected] 9 points 1 year ago

I am sorryI am sorryI am sorryI...

[–] [email protected] 26 points 1 year ago

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

[–] [email protected] 22 points 1 year 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 1 year ago* (last edited 1 year 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] 15 points 1 year ago
[–] [email protected] 13 points 1 year ago

102 times if you count the one before the code.

[–] [email protected] 12 points 1 year 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] 12 points 1 year 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 1 year ago

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

[–] [email protected] 5 points 1 year 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] 7 points 1 year 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 1 year ago

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

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

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

[–] wischi 4 points 1 year 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 1 year ago

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

[–] [email protected] 3 points 1 year ago

goes to stack overflow to steal some code

[–] lowleveldata 2 points 1 year ago (2 children)

Leave me I'm angry.

Who speaks like this?

[–] omidmnz 15 points 1 year ago

Denethor II, son of Ecthelion II

[–] Lmaydev 9 points 1 year ago

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