centerDiv.js
centerDiv.js
got it from here https://front-end.social/@elly/114668957184577014
centerDiv.js
got it from here https://front-end.social/@elly/114668957184577014
Obligatory https://justfuckingusehtml.com/
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.
True
My menus need to be dynamically reloaded!
Dynamically loading pages suck too.
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.
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.
people love over engineering the fuck out of technology
Exhibit A: 2.85 Million packages, as of mid-2023
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.
It's still Javascript.
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.
got it, my bad
Wait until you see what they do to avoid learning SQL or Regex or JSON Pointer or XPath.
Wait until you see when they refuse to learn anything but SQL.
Not something I've encountered.
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
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.
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?
real ones learn dhtml
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.
I was so pleased when a brief for a thing at work was "no frameworks".
React sucks and is way way way overdone and ill die on that hill
Damn that's some spicy takes lol.
Wait till you see what they do for a bit of concurrency
I use plain HTML along tachyons.io, it's pretty neat.
On mobile the header has overlapping content- not the worst but shows very little attention to detail for a CSS toolkit :(
We've come a long way...
The collective man-hours this would have saved people, if we had it back in 1999, would be staggering.
You misspelled nesting tables
My man right here. Y'all ever want to code some HTML emails? Nested tables as far as the eye can see!