this post was submitted on 25 Jan 2025
1508 points (100.0% liked)

Programmer Humor

21875 readers
777 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 313 points 1 month ago (3 children)

If your website only works with Chrome, it’s not a website. It’s a Chrome site.

You didn’t design for the web. You designed for Chrome.

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

Chrome is awful in nearly every way one can measure a browser. Anyone still using this as they're main driver in 2025 is technologically challenged.

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

It’s wild to see Chrome going from the browser to use if you had any tech sense whatsoever to being universally derided.

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

Universally derided

lol try looking outside lemmy. 90% of people still just use it and don't care

load more comments (1 replies)
[–] [email protected] 22 points 1 month ago (3 children)
[–] [email protected] 7 points 1 month ago

An Antiquarian I see. Carry on my good fellow!

load more comments (2 replies)
[–] [email protected] 12 points 1 month ago* (last edited 1 month ago) (4 children)

That's not necessarily true. Circa 2016–17 I frequented a website that worked in Chrome but not Firefox. This was due to Firefox at the time not implementing web standards that Chrome did. Firefox only got around to it in 2019. So naturally, the developer of the site was telling people to use Chrome.

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

I don't know the history of column span but the reason Firefox was "behind" on standards was because Google was pushing new standards through committee faster than competing browsers could keep up. Google would implement a new feature, offer it as a free standard, then get it through the committee. Because Google already had it in their browser, they were already compliant while Firefox had to scramble.

It was Google doing their variation of "embrace, extend, extinguish"

It got so bad that not even Microsoft had the resources to keep up. They said as much when they said they were adopting Chromium as their engine.

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

Google was actually later to implement this particular standard than Edge and Safari, at least according to MDN. And I believe this was before Chredge.

[–] [email protected] 6 points 1 month ago (1 children)
load more comments (1 replies)
[–] [email protected] 25 points 1 month ago (3 children)

I'm gonna be honest, if they used a feature that wasn't ready for prime time, it's still on them.

load more comments (3 replies)
[–] [email protected] 8 points 1 month ago* (last edited 1 month ago) (1 children)

This was due to Firefox at the time not implementing web standards that Chrome did.

Uhm, yeah, that's what browsers do. There are somewhere about 150 web standards and some are hard requirement while others are soft. Blink has some implemented that Webkit hasn't but Gecko has and that's true for all three. Same for browsers.

Btw, the one with the most implemented standards is QtWebkit by far. It's still slower tho.

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

Yeah? I'm not saying there's anything wrong with that. I'm saying it's bullshit to say a developer has done a crap job when one browser doesn't implement a web standard that is perfect tailor-made for their site's use case.

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

Still a bad job tho, if his implementation requires things that aren't common and has no workarounds in place.

load more comments (1 replies)
load more comments (1 replies)
[–] [email protected] 82 points 1 month ago (1 children)

I like this template so much better than the Spider-Man one that people constantly use backwards.

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

But this one's also backwards? I haven't seen the movie, talking purely about the two photos.

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

In the movie the glasses let the wearer see the truth. This template is often used backwards but it's correct in this case.

[–] [email protected] 16 points 1 month ago (3 children)
[–] [email protected] 45 points 1 month ago* (last edited 1 month ago) (1 children)

"They Live!" A guy finds some strange sunglasses that lets him see the subliminal messages hidden in all our print and media and advertisements. He can also see aliens walking amongst the population, disguised as regular humans!

Turns out, Earth had been invaded by aliens long ago and they've been keeping us under their control with subliminal messages for decades.

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

And the aliens definitely aren't allegory for capitalists

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

The Full movie is worth a watch.

"I have come here to chew bubble gum and kick ass, and I'm all out of bubble gum"

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

Perhaps the best line ever uttered in any movie. Rowdy Roddy Piper maybe a B movie actor at best, but he was meant to play that role in that movie.

I have often wondered: Who wore a kilt best. Bruce Campbell or Rowdy Roddy Piper. Campbell was a Sharp Dressed Man in his kilt for sure. But Piper wrestled in one for years-- it was his trade mark garb.

load more comments (1 replies)
[–] [email protected] 5 points 1 month ago

The movie is called 'They Live'!

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

My website only works with Chrome, but it has to be a specific old version of it. And you also need to install some extensions. Very specific versions of these extensions. Few of them already removed from the store due to security backdoors.

I have a Docker image you can use to run Chrome though.

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

What version of Docker do I need to run your container?

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

You'll need my fork of docker, and you'll need to apply a patch.

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

At that point, just release your website as an electron app.

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

When developing photon I always end up with more issues on chrome browsers than firefox. and half of those are because of its god awful scrollbar. Please use an overlay scrollbar instead of shifting the stupid page around, chrome.

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

ugh yeah classic chrome am I right? (I forgot how to center a div)

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

Or... The client wanted a WordPress site and that's just the result of it.

¯\_(ツ)_/¯

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

I wish I could like this thrice

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

Make an alt account.

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

This has been a problem for a very very long time

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

I agree with you that failing to support multiple browsers is an old problem, but I think the cause has shifted.

Back in the last century, supporting both browsers amounted to sniffing the browser and implementing the same feature twice. document.layers vs document.all for example.

Nowadays I think the problem is different: we just don't know what's going on. The site is transpiled from TypeScript, written on top of React or Vue which drastically switches paradigm (bonus for Tailwind), packed with building tools, and the average dev has little understanding of what actually comes out. It's a tall stack of leaky abstractions on top of the already tall one of the web. The dev is pretty sure it works on Chrome so they say it does work there, but it was not even a deliberate choice.

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

I’m going to have to go down the rabbit hole of making my own website soon. Just curious but would there be an easy way to show a pop up just to people using chrome?

No reason in particular… 😏

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

lol i did something like what i assume your goal is on my neocities when i detect !!window.chrome === true

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

It's a handy way to convert any value to a Boolean. If window.chrome is defined and done non-empty value, double negation turns it into just true.

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

I've been wondering why not window.chrome == true or Boolean(window.chrome), but it turns out that the former doesn't work and that == has essentially no use unless you remember some completely arbitrary rules, and that JS developers would complain that the latter is too long given the fact that I've seen javascript code using !0 for true and !1 for false, instead of just true and false because they can save 2 to 3 characters that way.

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

== has essentially no use unless you remember some completely arbitrary rules

If you make sure the types match, like by explicitly converting things on the same line on that example, then you can use it just like if it was ===.

In fact, there are people that defend that if your code behaves differently when you switch those two operators, your code is wrong. (Personally, I defend that JS it a pile of dogshit, and you should avoid going to dig there.)

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

I've never seen the !0 and !1, it is dumb and indicates either young or terrible devs.

Boolean(window.chrome) is the best, !!window.chrome is good, no need to test if it's equal to true if you make it a boolean beforehand.

load more comments (1 replies)
[–] [email protected] 5 points 1 month ago

JS "idiomatic" way to cast to boolean. But could just be written as !window.chrome instead.

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

Not sure if serious, but there's a million ways to do this, some that require importing thousands of lines of code and none of which are guaranteed to work in all possible circumstances. But here's a simple one.

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

Im stupid Stones but I think it's in the user agent information, browser and version and other shit

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

User agents cannot be fully trusted anymore since every browser puts every possible word in it so they are not excluded by anything.

load more comments (1 replies)
[–] [email protected] 15 points 1 month ago

Greatest format ever. I present you with the Demi-God of memes award for best use of THEY LIVE if you originated the template. If you did not originate you get the cool assed dude award for sharing. Many thanks.

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

In most cases yes.

However I did find this really weird bug where Firefox was caching something to do with sockets (that would disallow connecting a new socket) that could only be cleared by restarting Firefox itself.

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

Is that http2? Cause http2 allows for reuse of a connection for additional requests.

This caught me out with envoy reverse proxy doing a few subdomains using a wildcard cert.
The browser would reuse the connection cause the cert authority and IP was the same, but envoy couldn't figure out how to route the request correctly. Absolute head scratcher!

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

How did we get from "SGML varient for formatting text" to this?

load more comments
view more: next ›