Hacker News new | ask | show | jobs
by sativallday 1778 days ago
Love Vue.

Polymer 2.0 with its HTML imports still offered a better DX in my opinion.

Svelte offers a better DX than both of those frameworks.

I don't even bother with FE anymore, more focused on BE/infra - but Svelte is always a pleasure to work in.

2 comments

Agreed, Svelte is by far the most productive FE I’ve used. Coming from a jQuery/templating background, at first felt Vue was the most intuitive to use (React felt alien, Angular overly verbose)…

Until I met Svelte…Vue, minus the BS. A clean template system, less boilerplate, no Virtual DOM, nice Typescript support, intuitive state mgmt.

10/10 my goto for any frontend project.

Btw if you liked Polymer 2.0/3.0 you may also like Lit (formerly lit-element)[0].

It has a less "proven" ecosystem around state/async action management and some other concerns (i.e. there's no redux/vuex), but the controller paradigm[1] looks pretty fresh and interesting. I'm of the belief that most of the time doing an async request or two and some caching and good architecture is enough for most app (not everyone needs the flux pattern).

Lit is by the best implementation and standards-compliant component-centric library IMO. Tried a bunch of them back when I was trying to figure out if there's a better way to handle state in a component-centric world[3].

[0]: https://lit.dev/

[1]: https://lit.dev/docs/composition/controllers/#building-contr...

[3]: https://mrman.gitlab.io/services-as-dom-elements

Lit doesn't have HTML imports.

This is why lit-element is nothing compared to Polymer with HTML imports: https://lit-element.polymer-project.org/guide/templates

DOM in JS is an anti-pattern from a DX perspective.