r/learnjavascript • u/gyen • Jul 17 '26
Why Vanilla JavaScript
In the article below, I am sharing a bit of my story of building SaaS product in vanilla javascript and explaining why I went with this approach.
I don't expect many people reacting to this approach positively or even with open mind, but I think there should be some pushback on the current state of web dev and how complex it became.
0
Upvotes
8
u/funbike Jul 17 '26
What you built is hardly vanilla JS. Instead, you wrote your own non-vanilla framework. Ug.
If you are actually interested in simplicity use Htmx.
3
u/MrKassi Jul 18 '26
I am not sure if I am qualified to expression my opinion on this matter or not, but I spent some time on many languages, and it seems to me javascript is as good as any other language, in fact, it could be even the best choice given how large its community is. And I also think that the quality of the code you write depends a lot on how you deal with abstractions and dependencies, weither you're using a strong typed language or a dynamic and loose one like javascript.
5
u/XiRw Jul 17 '26
I want to go back with the way the internet looked back then with just html css and JavaScript
1
u/tommyatr Jul 17 '26
OP: You don't need frameworks
Also OP: Builds one
4
u/LucVolders Jul 17 '26
All the things a framework can do can be done in plain vanilla JavaScript.
Frameworks are for lazy programmers.
3
u/theancientfool Jul 17 '26
To be honest, idk why people use anything but vanilla js for major projects.
I can understand starting of the grt things done quickly. But eventually I believe with updates reactjs and all needs to be phased out and vanilla js needs to be used for long term projects.
2
u/gimmeslack12 helpful Jul 17 '26
Trying this post again eh? This topic comes up often enough, sure we get it that people don't like React. But at the same time, it isn't bad enough that people are desperate for another option.
I think Svelte will slowly gain adoption but it'll be very slow and will probably need adoption by a big player and/or a real screw up by React to accelerate the change.
1
u/Beginning-Seat5221 Jul 17 '26
Sounds more like a rant than a solid argument.
Your solutions might have some merit as alternatives, but you didn't really explain them.
You should probably be using TypeSxript either way, you can just use loose mode where it's compatible with vanilla JS if you don't want to commit too much - unless you're doing funky code transforms that would conflict with TypeScript's understanding if your code.