559
centerDiv.js (lemmy.blahaj.zone)
submitted 6 months ago* (last edited 6 months ago) by not_IO to c/programmer_humor@programming.dev
all 44 comments
sorted by: hot top controversial new old
[-] squirrel@discuss.tchncs.de 66 points 6 months ago* (last edited 6 months ago)
div {
  display: grid;
  place-content: center;
}

We've come a long way...

[-] dejected_warp_core@lemmy.world 10 points 6 months ago

The collective man-hours this would have saved people, if we had it back in 1999, would be staggering.

[-] criss_cross@lemmy.world 7 points 6 months ago

You misspelled nesting tables

[-] washbasin@sh.itjust.works 2 points 6 months ago

My man right here. Y'all ever want to code some HTML emails? Nested tables as far as the eye can see!

[-] ChaoticNeutralCzech@feddit.org 37 points 6 months ago
[-] AnarchistArtificer@lemmy.world 6 points 6 months ago

That was wonderful, thank you for sharing. When it's done well, I really enjoy this style of prose.

[-] chunes@lemmy.world 2 points 6 months ago

I had to resize my browser window in order to read that how dare you not simply read my mind and select my preferred column width instead

99% of users, probably

[-] explodicle@sh.itjust.works 1 points 6 months ago
[-] chunes@lemmy.world 1 points 6 months ago
[-] explodicle@sh.itjust.works 1 points 6 months ago

You can't just hold control and scroll the mouse wheel?

[-] chunes@lemmy.world 2 points 6 months ago

I don't like reading big text. I'd rather have small text in a smaller area

[-] magic_lobster_party@fedia.io 23 points 6 months ago

JavaScript frameworks are invented because pure HTML and CSS suck for dynamically loaded pages, and vanilla JavaScript suck in general.

Most pages don’t need dynamic loading.

[-] AnUnusualRelic@lemmy.world 4 points 6 months ago

My menus need to be dynamically reloaded!

[-] MonkderVierte@lemmy.zip 26 points 6 months ago

Dynamically loading pages suck too.

[-] TrickDacy@lemmy.world 13 points 6 months ago

JavaScript frameworks actually exist for two reasons, one, vanilla JavaScript lacks ease of use (does not suck and I don't care who disagrees) and two, people love over engineering the fuck out of technology. See: technology since the iPhone came out. We have advanced systems around the world spinning up processes to make up for the fact that touch screens are hard to type accurately on.

[-] magic_lobster_party@fedia.io 10 points 6 months ago

jQuery got popular because Internet Explorer, Firefox, Chrome and other browsers weren’t exactly cross compatible. Writing vanilla JS was risky business in that sense.

It also supported AJAX across all major browsers, which meant the website could make API requests without reloading the entire page. It was super revolutionary to press a button and it only changed a part of the page.

Then Angular and React took it a step forward and that’s where we are now.

[-] TrickDacy@lemmy.world 4 points 6 months ago* (last edited 6 months ago)

I am very aware of the progression. But you're vastly glossing over how much complexity (and feature set) was added after jQuery. If JavaScript sucks, how would you change it? Shitty browsers implementing it poorly in the past (and safari doing so today) doesn't make it suck.

[-] dejected_warp_core@lemmy.world 2 points 6 months ago

people love over engineering the fuck out of technology

Exhibit A: 2.85 Million packages, as of mid-2023

[-] TrickDacy@lemmy.world 1 points 6 months ago

Unless those are mostly overly complicated, it doesn't speak to what I'm saying. But I guess it means people like doing their own engineering better than relying on others

[-] zea_64 1 points 6 months ago

Immediate mode rendering and components seem to be why people use them. And you know what? The web should natively support those but doesn't (well it kinda bad components, but ehhh). Otherwise I agree, the frameworks are overcomplicated.

[-] AnUnusualRelic@lemmy.world 2 points 6 months ago

It's still Javascript.

[-] yetAnotherUser@lemmy.ca 11 points 6 months ago

OP, I don't think you've correctly linked to the post (when I visit the linked webpage, the browser tries to download an ActivityPub activity instead of showing the post in the Mastodon web UI). Please replace the link with this one.

[-] not_IO 2 points 6 months ago

got it, my bad

[-] brianary@startrek.website 9 points 6 months ago

Wait until you see what they do to avoid learning SQL or Regex or JSON Pointer or XPath.

[-] ICastFist@programming.dev 2 points 6 months ago

Ugh, i've had to write some Selenium tests where I had to come up with weird ass Xpaths because not a single fucking element had an ID and over half would spawn something in a different div

[-] piccolo@sh.itjust.works 2 points 6 months ago

Wait until you see when they refuse to learn anything but SQL.

[-] brianary@startrek.website 1 points 6 months ago

Not something I've encountered.

[-] Alexstarfire@lemmy.world 1 points 6 months ago

TBF to regex, it's completely unreadable. I love the magic that can be done with it, but by God, it needs syntax highlighting. Something may do this, but I've never seen anything that does.

[-] brianary@startrek.website 1 points 6 months ago

You get used to it sooner than you'd think. There are libraries to convert between regex and English. Maybe it deserves a Unicode code block like APL?

[-] cupcakezealot@piefed.blahaj.zone 8 points 6 months ago
[-] 1hitsong@lemmy.ml 1 points 6 months ago

Do you remember the dhtmlguru? The site had the bronze man holding some kind of ball over his head and would magically move when you hovered over the navigation menu.

[-] Flamekebab@piefed.social 7 points 6 months ago

I was so pleased when a brief for a thing at work was "no frameworks".

[-] belated_frog_pants@beehaw.org 4 points 6 months ago

React sucks and is way way way overdone and ill die on that hill

[-] mesamunefire@piefed.social 3 points 6 months ago

Damn that's some spicy takes lol.

[-] sirico@feddit.uk 2 points 6 months ago

Wait till you see what they do for a bit of concurrency

[-] capuccino@lemmy.world 1 points 6 months ago* (last edited 6 months ago)

I use plain HTML along tachyons.io, it's pretty neat.

[-] Biyoo 3 points 6 months ago

On mobile the header has overlapping content- not the worst but shows very little attention to detail for a CSS toolkit :(

this post was submitted on 12 Jun 2025
559 points (100.0% liked)

Programmer Humor

28241 readers
1238 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