Live data from Hacker News

VanJS (Vanilla JavaScript): smallest reactive UI framework

github.com

131–140 of 214 posts

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#131
post #69
post #64

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?

No thanks, I get high with Javascript alone and a hangover so bad that lasts the entire weekend.

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#132
post #57

Earlier 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?

Why would you be so snarky in your answer? Always better to be humble and assume you might be wrong. In this case you are: Nobody chains promises anymore.

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#133
post #14

The "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.

Can you elaborate as if I didn't know what I was doing?

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#134
post #14

The "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…

You have pretty much described the "php way" of developing things, is funny js-driking cool-aid guys talk about "SSR" being the thing to have, when we already had that, we already found that it can't scale without lots of money and started pushing computation to the client and now we are bring them back because it's not fast on the initial load...

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

#135

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…

100% I thought this was a meme repo like nocode

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#136

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…

[flagged]

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#137

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…

[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.

Re: VanJS (Vanilla JavaScript): smallest reactive UI framework

#138
post #8

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…

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?

I understand the confusion, given the existing terms but it seems the intent behind the name 'VanJS' is to highlight the simplicity and 'bare-bones' nature of this new framework, aligning it with the 'vanilla' aspect.

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

#139
post #137

Earlier 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.

Saying "I don't want to judge" doesn't mean that I can avoid doing it (unless I avoid writing the thing down completely).

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

#140
This is really just a DSL to make dom:

https://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.

Post reply on HN