Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I appreciate the author including a high quality source map.

Looking through the source of this is really interesting.

Very well written, looks like vanilla js, with less for css. The components are very easy to reason about and all just do direct DOM manipulation, I like it a lot.

The only thing I might have done differently is that I think it would have simplified the code base a little to use Web Components custom elements (not shadow dom) as the unit of component encapsulation, but this is a nit - the author makes effective use of templates for instantiation of dom elements, so that could have been a bit more complex with WCs, as you'd have to wire it into the connectedCallback lifecycle event.

I love everything else about this code base, the use of jsdoc for types instead of typescript, the organization.

It's really a breath of fresh air - so refreshing to see an example of a quality code base that avoids frameworks, and almost any dependency. The only js dependency I see is on handlebars.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: