JavaScript sucks. I hate using it I hate coding it.
I whitelist js sources on my personal computer.
Only absolutely necessary for function scripts get loaded.
If they ask me to disable the adblocker I blacklist the domain.
I’ve done more than 18 years of dev work. I only hate js. All the other parts of the job are fine. Other languages are fine as well. I’ve had to learn so many. Hell I know cobol right along side ruby.
Js sucks. It sucks to debug. Its frameworks still have issues with basic stuff like many to many relationships.
All the solutions that don’t use or use it sparingly work for years. The ones that rely on the language usually die a firey death by npm/yarn or get deprecated within 6 months.
Js frameworks make php frameworks seems stable efficient and logical by comparison.
Yikes.
Modern day php and laravel is actually not terrible.
But yeah I agree with you.
Its frameworks still have issues with basic stuff like many to many relationships.
Not sure what you mean by that. Do you mean ORMs? Which one and when did you try it?
Javascript is like Dungeons and dragons. It’s a mess, weighed down by legacy decisions, too heavy in some places and too light in others, and used in far more places than it should be. It also has some diehard fans, and some diehard fans who have never used anything else.
The point is: a lot of people browsing your site will at least temporarily have a no-JS experience without intentionally doing so.
💯
Note there’s a group of users that larger than the group of users without JS (for whatever reason): users of assistive technology. And they don’t even have a choice.
While I’m all for considering the needs of every user… If you get to the point where you’re worrying about no-JS users, I hope you’ve already considered the needs of people with disabilities, whether temporary or permanent.
Edit: oh right, wanted to add: just making a site work without JS doesn’t automatically make it accessible to people with special needs.
They overlap. Js is a shit technology for the blind.
Dynamic sites that move / hide / unhide components as you do things are unhelpful and confusing. A screen reader will tell you what’s under the cursor right now. If that changes, you don’t get notified that you’re now pointing at something else.
Static sites are better for accessibility too.
They can overlap, yes. Static sites are definitely not automatically better for accessibility.
Sadly, the rise of frameworks and SAAS have really killed security and accessibility through enforcement of JS.
‘Back in the day’ performance, download size, backwards compatibility, and non-js functionality was expected. Now it’s not even on the radar for most big corps/agencies. Many places I’ve worked don’t even care about responsiveness, which is crazy.
Now, there are so many 25mb websites that are unusable without JS or the right device…
Hmm…this has me thinking, maybe I’ll change up my Hugo site a little, so that there’s no dropdown menu - it’s the only thing javascript is needed for.
Thank you for this, some points that I’d not even considered, and a helpful reminder to myself to try and get that javascript from 99% to 100% unused. :)
Not to mention, more accessible.
People should not be prioritizing no-JS users. No one turns off JavaScript.
If you keep the JS to a minmum, you have
- less work maintining that shit, HTML/CSS is patient
- better user experience
So much forms and textboxes don’t save content anymore after a reload, because it’s dynamically loaded from somewhere or even a <div> frame handled entirely by JS. Buttons/Checkboxes that don’t work, it’s sad.
A lot of people who shared this sentiment were hung up on the idea that “no one turns off JS.” But some people do, for a variety of good reasons!
What % are we talking about? 50%, 25%, 10%, 1%, 0.1%? People make choices, but those are their choices. I need to get the job done and I can’t cater to everyone’s needs.
Forget about your job for a moment. In general, why are you willing to set a threshold on how accessible your work is? I urge you to forget about how callous your employer wants you to be.
Not using JavaScript doesn’t ensure an accessible site or app.
You call people callous for using js? 😂 Sorry, I’m not interested in a conversation with a fanatic because that kind of arguments have zero value.
And who has to maintain it, not you?
deleted by creator
Lmao, oh yes, let’s go back to the golden age of every app having all of its logic running on centralized servers, rather being able to easily create cross platform client side distributed applications.
The “no-js” philosophy is fundamentally at odds with a future of distributed, OS agnostic, application development.
It remembers the web when the web was simpler, and ignores that that was the era of dll hell and applications being locked to specific OSes. The modern web is the most successful cross platform development framework by orders of magnitude,it’s all based on open internationally agreed on standards, and it is vastly simplifying and detangling the overall computing environment / platforms that we used to be locked to.
Just use a framework like Nextjs or it’s open source off shoots / clones and get the best of both static pre rendering and dynamic on the fly rendering.