Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Shiggy677yI personally think the basic functions of a website should work without Javascript. For anything relevant to security you can't use it. And those Frameworks are mostly big and slow.
-
Shardj9337y@Shiggy just for button presses on a slider or similar you'll need JavaScript. Unless you want to do some really fucky CSS which won't work very well
-
@Shiggy @JamieBohanna Vue is 20kb in production with similar power as React.
For backend, passport.js supports oauth 2, also allows you add Facebook and Google authentication quite easily.
Anything can be good, if you choose the right tools for the right task. -
@joas slower than not having a virtual DOM?
The entire reason for virtual DOM to exist is DOM manipulation is really slow. That's why jQuery is slow.
By only updating the absolutely minimal DOM components, it helps browser to improve rendering speed, not reduce😒 -
joas19427y@sunfishcc I was joking about having static pages with no abstractions DOM and loading times. There's definitely use for JS and frameworks (fan of Vue.js btw) in modern web development. But like @Shiggy said, basic webpages should work without JS.
-
@joas is it possible set post header in a pure HTML form?
How to send authentication token then?
I might learn something here, but I really don't know. -
joas19427y@sunfishcc You cannot send custom HTTP headers, but there shouldn't be any need if you process the request with your own PHP code anyway.
-
I'd agree with others here in that JS can be so easy to abuse and misuse that its probably better to hold off a bit, but from the perspective of "the modern web" javascript is huge. I guess it more comes down to what the focus of the course is on, if its basic web stuff then that seems fine, but if its more about modern/new tech then it would be crazy to exclude it. There's entire stacks in JS now, and the historical issues have been largely mitigated if you follow good practices
I have this web development course(on the university), and we are not allowed to use javascript. Only php, html and css. FML
rant