What's the advantage of not having any build steps? For me personally, it's an instant turn-off, as I'll never use an untyped library.
You can typecheck pure js files using JSDoc.
https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
21–30 of 36 posts
What's the advantage of not having any build steps? For me personally, it's an instant turn-off, as I'll never use an untyped library.
You can typecheck pure js files using JSDoc.
https://www.typescriptlang.org/docs/handbook/jsdoc-supported...
this seems pretty cool - I love me some `lit-html`. How do you feel about Cami versus straight up Lit?
this seems pretty cool - I love me some `lit-html`. How do you feel about Cami versus straight up Lit?
You can consider Cami as the light dom sibling of Lit (which uses shadow dom). Cami loses out on slots & style encapsulation, but you can style Cami components with normal / global css like it’s part of the normal dom. And since there’s no shadow dom overhead, it’s more performant and there is no FOUC if you load CSS in .
I built a whole chat app with authentication, blockchain and GitHub login with just 120 lines of HTML markup no front end or backend code (all the logic is abstracted away via generic, easy-to-use components provided by the platform).
You can also build apps which display filtered views by category or with text search with custom parameters and it does so efficiently with indexing and all updates in real time. Real time updates are delivered efficiently only to relevant components. Components automatically subscribe and unsubscribe to and from realtime changefeeds in an efficient way. Access control can be specified at the object/model level or on individual fields.
WebComponents give us so much, but just not quite enough to be usable on their own without a little bit more on top. Reactivity with observable store and templating with event binding are the big missing pieces.
lit-html author here. I'm glad the template library is useful for you! Question regarding interop with other web components: I don't see how to create reactive properties on elements. Can they receive data from parents via property bindings? Ie, could a Lit element pass data to a Cami element?
Looks good! FWIW I always felt the observable pattern much more intuitive than the redux/reducer style. Something like https://mobx.js.org/ Things get hairy in both, but redux pattern feels so ridiculously ceremonial all to effectively manage a huge global state object with a false sense of "purity". Observables otoh say "fuck it, I'm mutating everything, do what you want with it".
Thanks! Cami is technically a combination of both. I like the intuitiveness of observables so that’s used: ``` // define observable this.count = this.observable(0); // getting this.count.value; // setting this.count.update(value => value + 1); ``` But it also has a redux-like pattern where you can dispatch actions and register reducers with far less ceremony: ``` // define store const todoStore = createStore({ todos:…
Will the V8 JIT optimize the hash based function table loop into a constant integer array lookup?
Thanks for sharing.