Earlier 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?
VanJS (Vanilla JavaScript): smallest reactive UI framework
131–140 of 214 posts
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#132Earlier quoted context omitted.
Chaining is very... 2010? Mainly because it's used().to().make().awful().APIs().like().this(). It got popular then seems to have died out. href() isn't a function name. One doesn't 'href()' anything.
You know what promises are right?
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#133The "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…
The page will show nothing until the script runs If you know what you are doing you can achieve full state restoration of a large SPA before CSS paints to the screen. In my personal app I am able to complete state restoration within the first 80ms of page load on old hardware. Vue and React are not capable of providing this.
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#134The "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…
damned we have come to full circle whats next, an assembly language so we can run binary code inside the browser kinda the way activex and applets just used do it... wait isn't that the whole point webassembly? sight you f** javascript developers have done it again sight
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#135I 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
#136I 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
#137I 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…
[flagged]
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#138I 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…
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?
While it might lead to some confusion initially, with clear and transparent communication about what 'VanJS' offers, it could still work as a brand that distinguishes itself by simplicity - or pivot to Van rentals
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#139Earlier quoted context omitted.
[flagged]
I feel like saying that you don’t want to judge someone and then generalizing about people like them is pretty much putting that judgment out there.
There are things that can't be written down without hidden (or obvious) judgement. This is one of those.
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#140https://github.com/vanjs-org/van/blob/3f98060971a8ff141179ef...
And a very simple system that replaces the dom from scratch each time any data changes:
https://github.com/vanjs-org/van/blob/3f98060971a8ff141179ef...
That's bad for performance (recomputing the style/layout and repainting even for minor changes), bad for accessibility, breaks focus, etc.
It's unlikely the smaller bundle size compared to preact and friends wins anything once you've abandoned all reuse of the rendering engine computations.