Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
irene1243471dStupidity! Stupidity everywhere! 😤
Things that should require a written authorization for use on the web:
- 'maxlength' and 'pattern' on input fields
- catching the 'paste' event
- single page websites
- infinite scrolling
I'm sure I missed something, but that can be a good start
jespersh411971dI usually meet js errors because I blocked tracking scripts
Well everything can be done without JS,things were done that way but JS helps with two things mainly:
- easing server side computations
- application navigation flow
Sometimes you don't need to or want to compute everything server side, let's say your server serves your financial transaction history so your browser calculates the mean spending among other things, moving that to the server means more CPU time, more response time, more requests and more bandwidth.
Regarding navigation flow, it helps a lot if let's say you build a web form with 10 fields and wanna make sure the first field is valid, if not you can't proceed, that can easily be done with JS and could give real time feedback on the validity of the fields without wasting time on sending said form.
Well built and designed sites with JS improve usability and reduce server side strain, note well built and designed sites not bloated ones.
@irene true. I'm currently writing a website on Django and it uses plain ol' http requests and responses but I had to implement a small VueJs snippet to dynamically load and display comments because doing it server side would cost me a lot of CPU time which translates to money I don't have and I'll probably add it to a form that suggests previously added registries to avoid duplicate info. But that's pretty much it.
I'll slowly migrate it to a full API, time will tell.
What I'm complaining about is broken code, which is (in my opinion) caused by too many people approaching the problem in the wrong way just because "it's cool".
Another problem that I had 5 minutes ago: an "home address" field with maxlength="50". This is a fucking joke: my address does not fit in and there's absolutely no reason why the length should be limited. Whenever someone writes something like maxlength="50", they're actually writing "I don't have a fucking clue what I'm doing and I want the world to know how ignorant I am".
The world is big, diverse, technology constantly evolves, and if developers cannot understand it, then they should stick to the easiest case and avoid making assumptions. There's no shame in that. You can identify expert developers not by the "cool" things they do, but by the amount of shit they try to avoid.
host127001182571dWhy is everybody on devrant hating SPAs?
@host127001 because most single page applications are broken, counter intuitive, and don't change the url
Normal conversation about normal website:
Hey, check this: https://...
Conversation about crappy single page website:
Hey, go to https://..., click that icon, then click there, then insert this number, then do this, then do that, ... (Hoping no JS errors between each step)
This doesn't apply to *all* single page websites, but fuck, most of them are like that.
Once I was ordering food online on a single page website.
Click "checkout", nothing happens.
Check console: network error.
I think: okay, I'll just reload the page and resubmit.
I hit reload.
Had to start from scratch 😑
You want to implement a single page website? Fine, but change the fucking url!
You don't want server-side storage? Fine, but use local storage at least!
Astatos31571dI feel your pain. Currently I'm able to write vanilla, that control feels awesome. I already fear the time I have to apply in another company sometime in the future, when I maybe can't write vanilla Js anymore and have to commit to those frameworks...
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job