r/ProgrammerHumor • • Oct 08 '26

Meme atThisPointImTooAfraidTooAsk

Post image
4.4k Upvotes

86 comments sorted by

1.5k

u/Luzzgar Oct 08 '26

If you're looking for consistency, you're going to be looking for long time.

430

u/Strict_Treat2884 Oct 08 '26

HTML6 when

309

u/sandybuttcheekss Oct 08 '26

Have you been paying attention to the state of the world? It's going to be HTML10 with a subscription available for HTML10 ProMax™.

127

u/Electromagnetlc Oct 08 '26

Your subscription tier doesn't support <h3>. Upgrade now to view all content.

71

u/DanieleDraganti Oct 08 '26

<h2 class=“h3”>

Solved.

91

u/OkFineIllUseTheApp Oct 08 '26

Illegal HTML detected. Token budget docked. Food ration restricted for 3 days. Fuckbot disabled.

15

u/IHaveTeaForDinner Oct 09 '26

Noooo! Not the token budget!!! Who will I ask how to feed my kids without tokens! Don't make me use non frontier models!

18

u/Electromagnetlc Oct 08 '26

Your subscription tier doesn't support "class" flags. Upgrade to HTML10 Pro Max™️++ 2.0 or purchase as an individual add-on to continue.

4

u/Firewolf06 Oct 08 '26

maybe people would finally start using semantic elements

4

u/Electromagnetlc Oct 08 '26

And not increase HTML Token spend? How are we supposed to justify it next year if we don't spend it this year?

4

u/SkollFenrirson Oct 08 '26

Here, for next time: ™

3

u/wsheldon2 Oct 09 '26

Finally validated that we should just use divs for everything!

3

u/KlogKoder Oct 08 '26

HTTP 402 on everything

12

u/setibeings Oct 08 '26

Not within our lifetimes.

2

u/Zatrit Oct 08 '26

Gemini (not the AI) exists

1

u/ligma_then_sugma Oct 08 '26

6 is unlucky, going right to 7

183

u/Multi-User Oct 08 '26

They're pretty consistent with being inconsistent

2

u/WheresMyBrakes Oct 09 '26

And you shouldn’t, because there’s always something that is missed or compromised on, and if you expect 100% consistency you will be disappointed 100% of the time.

55

u/SuitableDragonfly Oct 08 '26

I briefly did some frontend work once, and the main thing I came out of that experience with is that CSS was designed by Satan. 

4

u/Tvck3r Oct 08 '26

If you ever get back there worth looking at tailwind. Made the whole thing a lot simpler to me at least when I picked it up. Not trying to ever do anything fancy though

32

u/Strict_Treat2884 Oct 08 '26

Using Tailwind without understanding CSS is like, instead of cleaning your room, you just sweep all the dirt under the sofa, and hide all the trash in the closet

27

u/Jazzlike-Compote4463 Oct 08 '26

Tailwind is just regular CSS with extra steps

13

u/ineyy Oct 08 '26

Tailwind is extremely convenient and extremely encourages people to start bloating up stylesheets and kills consistency if you don't know what you are doing.

23

u/rosuav Oct 08 '26

Tailwind is just inline styles with extra steps.

14

u/killermenpl Oct 08 '26

Tailwind really took a look at <div style=""> and said "what if it was worse"

2

u/Captain1771 Oct 08 '26

Tailwind is definitely a ton better than having to write inline styles especially with different pseudo classes

4

u/rosuav Oct 08 '26

.... okay, but why would you write inline styles for everything? Design your stylesheet. Target specific elements. I mean, even if the ONLY thing you EVER do is to attach styles to classes and then apply those classes to elements, that's still several tons better than writing inline styles on everything. And you have a rich language of selectors so you usually can target things by what they are, instead of having to paint CSS classes everywhere.

Tailwind is a small improvement over the wrong way of doing things, making it a slightly easier way to do things wrong.

1

u/Captain1771 Oct 09 '26

But I didn't say I would? If you'll notice, my response was not to your comment, and was specifically targeted at the other person saying Tailwind is worse than inline styles, which, really, it is not.

0

u/rosuav Oct 09 '26

How is loading up a library better than doing what the browser's already capable of? Why do you need to have a two step process to do what the browser natively supports? AT VERY BEST, it is equivalent to inline styles, but with extra effort, a pointless library, and more things that could go wrong. But more importantly, it is only comparable to INLINE styles. Why would you use Tailwind when you can use proper style sheets? Where is the advantage of Tailwind?

→ More replies

0

u/killermenpl Oct 09 '26

Tailwind is basically like writing inline styles, except you get access to states (hover:) and pseudo elements. In that regard it's an upgrade.

However, it's worse in the sense that when you're using inline styles, you know it's wrong and should only be used sparingly. With tailwind, it's the desired behavior.

There's also the issue of duplicate code. It's true that tailwind sends less CSS, since all the classes are only ever defined once. But it's immediately offset by having to include the exact same classes in the HTML. Yes, the duplicate classes will get gzipped into basically nothing, but what about all those one-off special cases that you sometimes need, like h-(--header-height)? Those will stay basically as-is in HTML, and will be generated in CSS as .h-(--header-height) { height: --header-height } (likely with some escaping going on to produce a valid selector).

Add to it the fact that tailwind is pretty much a DSL at this point that's an imperfect mimic of CSS. Seriously, you need to first know the CSS you want to use, then convert it into tailwind's syntax. And that syntax is often more verbose, despite shortening all the property names as much as possible. See all the prefixing you have to do, things like hover:, md: or dark:md:hover:, on every single class you want to apply in that specific combination of modifiers.

IMO tailwind (and tbh a lot of frontend tooling) capitalize on the initial feeling of "productivity" that happens when the project is still new. You can just put out code, or even have ai generate it, and it'll be "good enough" for the MVP. But then you end up with thousands of lines of HTML, each having fifty tailwind classes, and start thinking to yourself that maybe you shouldn't have joked about Java class names being so long you need an ultrawide screen to see them.

5

u/Alternative-Tie-4970 Oct 08 '26 edited Oct 08 '26

Many people swear by tailwind but to me it just feels like a slightly more terse version of inline styles.

Plain old CSS (or slim-ish preprocessors like sass), despite all its faults, still works best for styling imo.

1

u/KeasyNine Oct 08 '26

sure thing, but result html is mess of classes

4

u/ubergeek801 Oct 09 '26

but only after he designed Javascript...

8

u/javascript Oct 09 '26

😜

2

u/MichaelAceAnderson Oct 10 '26

wtf javascript has a Reddit account

1

u/evorm Oct 11 '26

omg hi javascript

356

u/SukusMcSwag Oct 08 '26

Your first mistake was assuming that the web is well designed

59

u/afdbcreid Oct 09 '26

And your mistake is assuming the web is designed.

1

u/ToastTemdex 24d ago

And your mistake is assuming.

19

u/twigboy Oct 09 '26

It's as if we were just making it up as we went along

7

u/ThatDudeFromPoland Oct 09 '26

Your 2nd mistake was assuming the div is well aligned

324

u/lucidbadger Oct 08 '26

Something about when things are supposed to be loaded by the browser

43

u/mrissaoussama Oct 08 '26

isn't that only affected by where in the file the css/script tag is added?

51

u/dfitz360 Oct 08 '26

Not way way back in the internet explorer era I believe. This were the days, no consistency, lots of little tricks (like console log could sometimes crash IE) and so might polyfill

37

u/gnutrino Oct 08 '26

God, I hated having to account for Internet Explorer's quirks so much. Like sure, things aren't perfect now by any means but I do occasionally have to take a moment to be thankful for no longer having to support that piece of crap.

415

u/ApprehensiveGas85 Oct 08 '26 • Bravo

<link rel="stylesheet" href="..."> actually follows proper HTML/SGML architecture, because <link> was built specifically for external document relationships before CSS even existed.

Netscape broke the pattern when they rushed out Navigator 2.0 and slapped src directly onto <script>. Both <style> and <script> should have stayed purely as container tags for inline code, while external JavaScript should have always been loaded through <link rel="script" href="...">.

The real inconsistency isn't that <style> is missing a src; it's that external JavaScript should have been a <link rel> from day one.

69

u/Mateorabi Oct 08 '26

Does the “correct” way work too at least even if everyone uses the expedient way?

75

u/laplongejr Oct 08 '26

I am 99% sure it actually doesn't

43

u/ChesterWOVBot Oct 08 '26

The 1% is one specific minor version of a niche browser with a userbase of 2 people in total.

38

u/laplongejr Oct 08 '26 edited Oct 08 '26

Tbf I didn't test it myself (I'm not sure caniuse is specific enough for link parameters), but when I looked for old stackoverflow answers, it seemed the consensus was that link was not suited for scripts at all.
So I expect old browsers to break and new ones to have never tested it properly, especially as script tags became more and more complex over time.

[EDIT] Found a reliable source! (Thanks caniuse)

https://html.spec.whatwg.org/multipage/semantics.html#the-link-element
https://html.spec.whatwg.org/multipage/links.html#linkTypes

The possible supported tokens are alternate, dns-prefetch, expect, icon, manifest, modulepreload, next, pingback, preconnect, prefetch, preload, search, and stylesheet.

So using <link rel="script" would actually violate the HTML standard.
That's... sad.

13

u/Strict_Treat2884 Oct 08 '26 edited Oct 08 '26

I guess it's because JavaScript is synchronous (without defer or async ofc), it must be parsed and executed on the spot when constructing the webpage (mainly thanks to document.write?).

While <link> does't affect the document content itself, so it's meant to handle resourses that can be handled later. That's why JavaScript cannot be loaded by <link>, I reckon.

4

u/conundorum Oct 08 '26

Perhaps this could be solved by allowing <link urgent="true" script="whatever.js.your.boat">? Allow a tag to command the page to load and parse the script on the spot.

(Well, that or account for multipass parsing to load resources on one pass and execute them on the next, but that sounds like a nightmare for dynamically updated sites.)

19

u/wokeboogeyman Oct 09 '26

I propose that all tags should be updated to support a src= instead

15

u/GatotSubroto Oct 09 '26

<div src="…"> 🤔

11

u/The_Neto06 Oct 09 '26

Sure why not

4

u/gringrant Oct 09 '26

<br src="…">

2

u/HugoNikanor Oct 11 '26

Sure, but since <br/> can't have content, that link better point to nothing

1

u/gringrant Oct 11 '26

Content-Length MUST be 0

5

u/HugoNikanor Oct 11 '26

RFC 9110 (HTTP) specifies that:

A user agent SHOULD NOT send a Content-Length header field when the request message does not contain content and the method semantics do not anticipate such data

So I feel a better semantic would would a 204 (No Content) response, which would remove the need for a content-length header altogether.

13

u/metaglot Oct 08 '26

Also feels clumsy to have a closing tag for script when youre using the src-attribute.

5

u/Mr_Carlos Oct 09 '26

Okay but the CSS one is always a minor pain. After 20+ years of making websites I never remember it, I always just copy it from another website.

JS used to require meta tags, but HTML 5 removed that requirement (and many more), so it would have been nice to address external CSS and simplify it.

2

u/MrEpic382RDT Oct 08 '26

Netscape 2 didn’t have external scripts; those didn’t become a feature until Netscape 3

85

u/1nc06n170 Oct 08 '26

Blame Netscape

26

u/Sianic12 Oct 08 '26

The bane of every web dev's existence since 1994

18

u/rosuav Oct 08 '26

But also, somehow, the entity responsible for looping animated GIFs.

1

u/GoogleIsYourFrenemy Oct 08 '26

Yep. M$ was always sunshine and ha- OMG IT BURNS! IT BURNS!

13

u/MsInput Oct 08 '26

lol this has irked me for decades

24

u/DogmaticParadigm87 Oct 08 '26

Wait till he finds out <link> isn't for links.

5

u/ozh Oct 08 '26

<aaaaah ref>

8

u/CruxTheologorum Oct 08 '26

you know what thats a good point what the fuck w3c

8

u/MistrFish Oct 08 '26

I remember when HTML5 was such a big deal and I read an entire book on it. as a modern dev it's completely meaningless to me

3

u/traplords8n Oct 08 '26

Consistency is the enemy of the web.

To establish consistency, you must first convince developers that a standard way is better than their own way.

On top of the standard way needing the ability to fit all the wild and whacky ways that webdevs can organize and run their servers, and be backwards compatible for companies that don't have webdevs anymore and still expect IE7 compatibility so people can reach their website that hasn't been touched in decades.

2

u/ExtraWorldliness6916 Oct 10 '26

At one point in html 5, we used to have html imports

1

u/lk_beatrice Oct 13 '26

so glad AI ended ts

1

u/powertrip00 Oct 13 '26

We don't question the ancient tomes

0

u/[deleted] Oct 08 '26

[deleted] — view deleted comment

5

u/QuestionableEthics42 Oct 08 '26

Go clank somewhere else chatgpt

0

u/[deleted] Oct 08 '26

[deleted] — view deleted comment

0

u/[deleted] Oct 08 '26

[deleted] — view deleted comment

2

u/QuestionableEthics42 Oct 08 '26

Anyone falling for this dumb ruse, just go look at their obvious bot comments.