this post was submitted on 06 Sep 2024
1392 points (99.7% liked)

Programmer Humor

32361 readers
873 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
[–] [email protected] 239 points 1 month ago (1 children)

Be sure to use the image upload field too

[–] [email protected] 23 points 1 month ago (5 children)

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

[–] [email protected] 10 points 1 month ago

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

[–] [email protected] 8 points 1 month ago* (last edited 1 month 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.

[–] [email protected] 5 points 1 month ago* (last edited 1 month ago) (1 children)

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


load more comments (1 replies)
[–] [email protected] 4 points 1 month ago
load more comments (3 replies)
[–] [email protected] 224 points 1 month ago (4 children)
[–] [email protected] 94 points 1 month ago (2 children)

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

[–] [email protected] 59 points 1 month 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.

[–] [email protected] 56 points 1 month 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

[–] [email protected] 28 points 1 month ago (1 children)

Your Lemmy client appears to have a bug.

[–] [email protected] 8 points 1 month ago
[–] [email protected] 8 points 1 month ago
[–] [email protected] 3 points 1 month ago

[vector Victor]

[–] [email protected] 100 points 1 month ago (1 children)
[–] [email protected] 29 points 1 month ago

Good Ole Bobby tables.

[–] [email protected] 87 points 1 month ago (1 children)

That’s pretty funny! ���

[–] JackbyDev 12 points 1 month ago
[–] [email protected] 74 points 1 month ago (3 children)

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

[–] [email protected] 102 points 1 month 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).

[–] [email protected] 69 points 1 month 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 5 points 1 month 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.

[–] [email protected] 53 points 1 month ago

👺 May your socks always be wet.

[–] [email protected] 51 points 1 month 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.

[–] [email protected] 6 points 1 month ago

The special hell.

[–] [email protected] 40 points 1 month ago

You are evil

[–] [email protected] 36 points 1 month ago

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

[–] [email protected] 27 points 1 month ago (1 children)

I feel like saying nothing but undefined is worse.

[–] [email protected] 4 points 1 month ago

Especially when there is absolutely no JavaScript in the stack

[–] [email protected] 25 points 1 month ago* (last edited 1 month 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)
[–] [email protected] 23 points 1 month ago

See you in hell

[–] [email protected] 20 points 1 month ago

Junior dev: Oh no what is that symbol? Let me examine the code closely to find out

Senior dev: The form still works. Fuck you.

[–] [email protected] 18 points 1 month ago

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

[–] [email protected] 17 points 1 month 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.

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

You must have exceptionally competent first-level support.

[–] [email protected] 8 points 1 month 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.

[–] [email protected] 17 points 1 month ago* (last edited 1 month ago) (1 children)

wow this is a good jokeú€™ wonder if it'll work

[–] JackbyDev 10 points 1 month 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?"

[–] [email protected] 5 points 1 month ago

This doesn’t makes any sense!

[–] [email protected] 10 points 1 month ago

is there a decnet found satan sub around here?

[–] [email protected] 9 points 1 month ago
[–] [email protected] 7 points 1 month ago

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

[–] starshipwinepineapple 6 points 1 month ago (1 children)
load more comments (1 replies)
[–] [email protected] 4 points 1 month ago (2 children)

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

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

Not sure how that's relevant, but some states do have an equivalent to GDPR. California has CCPA for example.

load more comments
view more: next ›