I really don't want to be that guy, but... Vanilla JavaScript already exists as a popular term for JavaScript without any framework. No jQuery, no React - just JavaScript. Calling a library VanJS (as short for "Vanilla JavaScript") is just going to cause confusion. The repo's own description uses the phrase vanilla JavaScript in this way, and even mixes both meanings within a single sentence. If the author likes the…
VanJS (Vanilla JavaScript): smallest reactive UI framework
71–80 of 214 posts
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#72Earlier quoted context omitted.
Suggestion: call it Bourbon JS. Wikipedia: > The majority of the world's vanilla is the V. planifolia species, more commonly known as Bourbon vanilla.
Wait people write JavaScript without drinking bourbon?
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#73Web development is going to come full circle once everyone comes to terms with the fact that web development has been overcomplicated and you don't need 1000 packages and abstractions on top of abstractions just to interact with some DOM elements.
you don't need 1000 packages and abstractions on top of abstractions just to interact with some DOM elements I don't think many developers believe that you do. Most of the complexity around 'modern web dev' isn't about achieving the basics of moving DOM nodes around. If that's what you're doing then it's hard to argue that a framework adds much benefit. Frameworks bring two benefits: Firstly, they push you down a spe…
We struggle to render a few boxes and some text under 16ms while games with vastly more complex sound, network, physics, UI and whatever else systems render frames in < 8ms at 4k.
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#74> VanJS has the vision to be the scripting language for UI, just like bash is the scripting language for terminal. I find this quite strange. Wouldn’t javascript be to the browser what Bash is for the terminal? This is after all just another library.
So VanJS will make the simple things easy and anything else nigh-on impossible?
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#75Earlier quoted context omitted.
It’s 93 lines, less than most CSS resets. Small enough to copy paste to the top of your index.html in a script tag. You can use it without NPM, webpack, a special compiler pass, or a template language. Seems pretty vanilla compared to the full fat, popular alternatives.
> Seems pretty vanilla No it doesn't, same as "automobile" doesn't seem pretty Saturn-5, despite the fact that both are moving under their own power. Terms have meaning, including meaning derived from communities by and large accepting that a certain term has a certain semantic meaning. And the accepted semantic meaning of "Vanilla Javascript" is "runs without a framework besides the browsers own API". If my code wor…
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#76That's cool but my favorite vanilla js framework by far is vapor.js. https://github.com/madrobby/vapor.js
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#77Please check out https://github.com/jorgebucaran/hyperapp
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#78The "Hello World" example is a really good example of why React, Vue, etc are better than something more minimal like this library if you're optimizing for speed. The page will show nothing until the script runs, which requires downloading the VanJS lib and the script itself. You could inline them into the page, but that gets seriously messy at scale. A modern React app that's using some serverside rendering for the…
Also, using rollup would be trivial.
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#79I really don't want to be that guy, but... Vanilla JavaScript already exists as a popular term for JavaScript without any framework. No jQuery, no React - just JavaScript. Calling a library VanJS (as short for "Vanilla JavaScript") is just going to cause confusion. The repo's own description uses the phrase vanilla JavaScript in this way, and even mixes both meanings within a single sentence. If the author likes the…
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#80Earlier quoted context omitted.
Yes, please be that guy. Or I'll do it. Vanilla Javascript refers indeed to "javascript without a framework". So creating a framework and calling it "vanilla javascript" is... wrong?
Suggestion: call it Bourbon JS. Wikipedia: > The majority of the world's vanilla is the V. planifolia species, more commonly known as Bourbon vanilla.