Live data from Hacker News

UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

unsuckjs.com

41–50 of 194 posts

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#41
Awesome list!

I love that the cognitive overhead for web apps now is so great many people are "returning to monke" and coding in simple HTML/CSS/JS haha.

Question: Shouldn't the items be in the row so I can see all of them at once? Why are the items in the columns? I'll open a issue (:

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#42

There should be another row that which of these can be included as a standalone javascript lib in html instead of requiring NPM.

Not requiring NPM was one of my original requirements for anything on this list. All of these libraries should be available from HTML directly -- let me know or make a PR if that isn't the case.

Maybe you can add that somewhere in subtitle somehow? as it's not immediately clear

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#45

Awesome list! I love that the cognitive overhead for web apps now is so great many people are "returning to monke" and coding in simple HTML/CSS/JS haha. Question: Shouldn't the items be in the row so I can see all of them at once? Why are the items in the columns? I'll open a issue (:

On mobile, I actually think it's pretty good like this. The names of the fields should stay visible when scrolling, though. Maybe this could be made reactive?

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#46

I can do the same thing via NextJS and output pure HTML and CSS without any JS at all. Or with server components, output only the minimal JS needed. Not sure why everyone wants to write a programming language inside HTML like lit does.

How is Lit's use of JS in templates any different than JSX? Both use JS for expressions and control-flow.

JSX is expensive than JS, because JSX first needs to become JS, then other things happen

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#47

I get these for when your stack contains python/go/ruby and your page is SSR. But more recently I've just come to enjoy the full blown Javascript Framework. I use Svelte exclusively, and the bundle sizes aren't too large thanks to the compiler. I can write TS which is way more comfortable than JS or even Python or Go IMO.

You can get small sizes, great DX, first-class TypeScript support, all without the compiler though.

But I like the compiler.

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#48
I'd love to see a list of heavily interactive sites that use the HTMX technique.

I believe Github uses something like HTMX + ActionCable, and it shows how good that experience can be (and some limitations).

But I think it's in the small minority. It'd be nice to know of more examples, instead of just more libs.

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#49
post #5

You can do a lot with Django templates. Sprinkle in any of these and I find it unlikely you'll be reaching for React. Although if you have lots of React experience I am a believer in "use what you know". Tool familiarity > trimming dependencies

Django templates are nice, but fall flat if you want to do anything remotely dynamic with your model. The fact that you need to define custom template tags for things as simple as getting an attribute from a dict in your model is a real pain point.

If you use the Jinja bridge you’ll have an easier time all around I think

Re: UnsuckJS: Progressively enhance HTML with lightweight JavaScript libraries

#50

Earlier quoted context omitted.

Yes! I don't think Mithril gets enough attention. It's my go to JS framework when I need more than Vanilla JS but don't need something like React.

Why would you ever need React over Mithril?

The ecosystem, if you're building a product of a certain complexity and can't afford writing large, complex, un-battle-tested views from scratch.
Post reply on HN