this post was submitted on 06 Sep 2024
1402 points (99.6% liked)

Programmer Humor

36992 readers
410 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] Bishma@discuss.tchncs.de 245 points 10 months ago (1 children)

Be sure to use the image upload field too

[–] calebegg@lemmy.blahaj.zone 23 points 10 months ago (5 children)

How do I do that? Very new to lemmy. Using Boost. Thanks in advance!

[–] Trantarius@lemmy.dbzer0.com 10 points 10 months ago

Embed the image using markdown: ![some text](image URL)

[–] Bishma@discuss.tchncs.de 8 points 10 months ago* (last edited 10 months ago) (2 children)

I don't think Lemmy supports media fields in comments (though I've only skimmed the API, I could be wrong) just on posts. I usually use Postimages for hosting images for comments.

[–] kn33@lemmy.world 5 points 10 months ago* (last edited 10 months ago) (1 children)

Idk but Boost has a button for adding pictures to comments.


load more comments (1 replies)
load more comments (3 replies)
[–] flamingo_pinyata@sopuli.xyz 228 points 10 months ago (4 children)
[–] CodexArcanum@lemmy.world 96 points 10 months ago (2 children)

Seeing this actually sent a small wave of dread through my body

[–] Sonotsugipaa@lemmy.dbzer0.com 60 points 10 months ago

Wdym? flamingo_pinyata's explaination was quite useful, I wish somebody had told me that long ago and it's still going to let me save so much time.

[–] tourist@lemmy.world 56 points 10 months ago

When I see �, I just assume the user or another dev is using a non-standard keyboard, or my fonts aren't up to date

When I see this shit, I lose all blood flow to the brain and then just collapse

[–] Zachariah@lemmy.world 28 points 10 months ago (1 children)

Your Lemmy client appears to have a bug.

[–] itsraining@lemmygrad.ml 8 points 10 months ago
[–] Klear@lemmy.world 3 points 10 months ago

[vector Victor]

[–] markstos@lemmy.world 100 points 10 months ago (1 children)
[–] InvertedParallax@lemm.ee 29 points 10 months ago

Good Ole Bobby tables.

[–] xlash123@sh.itjust.works 87 points 10 months ago (1 children)

That’s pretty funny! ���

[–] JackbyDev@programming.dev 12 points 10 months ago
[–] IrateAnteater@sh.itjust.works 75 points 10 months ago (3 children)

Why is it that whenever something is spitting out junk data, those specific characters are involved?

[–] Vent@lemm.ee 102 points 10 months ago

� is used to represent an invalid character, so it makes sense that it'd appear often when bad data is being rendered (or good data is being rendered improperly).

[–] ImplyingImplications@lemmy.ca 69 points 10 months ago (1 children)

Everything is 0s and 1s to a computer. What a pattern of 0s and 1s encodes is decided by people--often arbitrarily. Over the years there have been attempts to standardize encodings but, for legacy reasons, older encodings are still valid.

The 0s and 1s that encode ' in UTF-8 (a standardized encoding) are the same 0s and 1s that encode ’ in CP-1252 (a legacy encoding).

The � symbol is shown when the 0s and 1s don't encode anything of meaning.

[–] JackbyDev@programming.dev 5 points 10 months ago

Right single quote (’) in UTF-8 (https://www.compart.com/en/unicode/U+2019) has the same bytes as ’ in cp1252 (which is more or less "ASCII" if we're doing ELI5). https://en.wikipedia.org/wiki/Windows-1252

Sometimes your keyboard or program's settings will use right single quote for apostrophes instead of a normal apostrophe. ' you might notice how this one is straight and not bent a certain way. This setting is often called smart quotes.

[–] watersnipje@lemmy.blahaj.zone 54 points 10 months ago

👺 May your socks always be wet.

[–] TAYRN@lemmy.world 51 points 10 months ago (1 children)

If you do this, you're going to burn in a very special level of hell. A level they reserve for child molesters and people who talk at the theater.

[–] noughtnaut@lemmy.world 6 points 10 months ago

The special hell.

[–] Boomkop3@reddthat.com 40 points 10 months ago

You are evil

[–] frezik@midwest.social 36 points 10 months ago

Some hackers DoS the code. This guy DoS's the corporate process.

[–] Xylight@lemdro.id 27 points 10 months ago (1 children)

I feel like saying nothing but undefined is worse.

[–] Cysioland@lemmygrad.ml 4 points 10 months ago

Especially when there is absolutely no JavaScript in the stack

[–] sik0fewl@lemmy.ca 26 points 10 months ago* (last edited 10 months ago) (2 children)

If you're reading this, you probably live in a country that is a party to United Nations Convention Against Torture.

If your company is allowing this, please contact your government or another member state.

load more comments (2 replies)
[–] Imgonnatrythis@sh.itjust.works 23 points 10 months ago

See you in hell

[–] letsgo@lemm.ee 18 points 10 months ago

Must be the updated version of ~~~~####3$3$$%^^~~~! NO CARRIER

[–] TriflingToad@lemmy.world 17 points 10 months ago* (last edited 10 months ago) (1 children)

wow this is a good joke’ wonder if it'll work

[–] JackbyDev@programming.dev 10 points 10 months ago (1 children)

You'd need to put ’ (specifically) in place of a quotation mark. That is the cp1252 encoding of right single quote in utf 8.

"Wonder if it’ll work?"

[–] P4ulin_Kbana@lemmy.eco.br 5 points 10 months ago

This doesn’t makes any sense!

[–] Alexstarfire@lemmy.world 17 points 10 months ago (1 children)

At least where I work, the developers who actually wrote the code would probably never see it. We have service staff that deal with an initial problems reported from customers. They'd likely figure out someone actually entered those values.

[–] bleistift2@sopuli.xyz 33 points 10 months ago (1 children)

You must have exceptionally competent first-level support.

[–] Alexstarfire@lemmy.world 9 points 10 months ago

They are quite well seasoned. But it's also worth noting they are developers as well because the job usually has you debugging things or writing code that needs to be run for the specific customer. Not a large amount of code, but just things that end up being specific to a customer.

And if they have to come to a developer that actually works on the product, it's usually a pain to try and figure out what is going on. Thankfully, this is very uncommon.

[–] MehBlah@lemmy.world 10 points 10 months ago

is there a decnet found satan sub around here?

[–] RestrictedAccount@lemmy.world 9 points 9 months ago
[–] big_slap@lemmy.world 7 points 10 months ago

I know what I'll be doing April 1st 🤣

[–] starshipwinepineapple@programming.dev 7 points 10 months ago (1 children)
load more comments (1 replies)
[–] finickydesert@lemmy.ml 4 points 10 months ago (2 children)

Honestly funny, since we don't have GDPR here in the US, I guess this is fair.

[–] pedz@lemmy.ca 13 points 10 months ago
load more comments (1 replies)
[–] FourPacketsOfPeanuts@lemmy.world 4 points 9 months ago

Remember to throw in "=" at the start just to toy with the poor sap who has to manipulate the results in excel

load more comments
view more: next ›