this post was submitted on 05 Apr 2024
896 points (96.7% liked)

Programmer Humor

33584 readers
24 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 29 comments
sorted by: hot top controversial new old
[–] starman@programming.dev 129 points 10 months ago
[–] EunieIsTheBus@feddit.de 65 points 10 months ago (2 children)

Point four was the first thing I immediately noticed.

[–] solivine@sopuli.xyz 24 points 10 months ago (1 children)

Technically 102 if you include the one already said

[–] EunieIsTheBus@feddit.de 22 points 10 months ago (1 children)

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

[–] solivine@sopuli.xyz 18 points 10 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.

[–] ibasaw@lemmy.world 4 points 10 months ago

forever scarred by OBO errors.. I noticed that too

[–] ChaoticEntropy@feddit.uk 58 points 10 months ago

Peer reviewing your apologies is always important.

[–] randomaccount43543@lemmy.world 33 points 10 months ago

Typical 1-off error

[–] 30p87@feddit.de 32 points 10 months ago* (last edited 10 months ago) (1 children)

print('I am sorry'*100)

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

[–] OmnipotentEntity@beehaw.org 9 points 10 months ago

I am sorryI am sorryI am sorryI...

[–] Passerby6497@lemmy.world 24 points 10 months ago

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

[–] turing_spider574@lemm.ee 22 points 10 months ago
  1. She asked for "I'm sorry" and the program would print " I am sorry" (if it actually worked lol)
[–] ChaoticNeutralCzech@feddit.de 19 points 10 months ago* (last edited 10 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.

[–] baseless_discourse@mander.xyz 15 points 10 months ago
[–] Lifter@discuss.tchncs.de 13 points 10 months ago

102 times if you count the one before the code.

[–] xantoxis@lemmy.world 12 points 10 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.

[–] ezchili@iusearchlinux.fyi 12 points 10 months ago

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

[–] zout@fedia.io 5 points 10 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.

[–] Gabu@lemmy.ml 11 points 10 months ago

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

[–] racketlauncher831@lemmy.ml 7 points 10 months ago (1 children)

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

Dude had a chance and he screwed it up.

[–] Gabu@lemmy.ml 3 points 10 months ago

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

[–] Zellith@kbin.social 6 points 10 months ago

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

[–] tourist@lemmy.world 6 points 10 months ago (1 children)

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

[–] wischi@programming.dev 4 points 10 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 😄

[–] Steamymoomilk@sh.itjust.works 3 points 10 months ago

goes to stack overflow to steal some code

[–] lowleveldata@programming.dev 2 points 10 months ago (2 children)

Leave me I'm angry.

Who speaks like this?

[–] omidmnz@programming.dev 14 points 10 months ago

Denethor II, son of Ecthelion II

[–] Lmaydev@programming.dev 9 points 10 months ago

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