Echo JS 0.11.0

<~>

tracker1 comments

tracker1 1071 days ago. link 1 point
I can't help but wonder, what is the overhead to manage such a beast across all the components used in an application using this approach.
tracker1 1073 days ago. link 1 point
While I know that it's not expressly required, but the article, and MobX itself would be easier to understand in the context if the code samples used TypeScript.

In some cases, it's less than clear with regards to usage.  Just my own $.02 ... I often prefer to use straight JS in practice, and sometimes find TS annoying, but it definitely helps in understanding, at least that's my take.

Anyone else have thoughts on this?
tracker1 1075 days ago. link 1 point
Note: you can self-host SuperTokens and the implementation appears to be floss.
tracker1 1075 days ago. link 2 points
For reference, the key doesn't need to be uuid/distinct globally... it *can* be, but whatever the natural key is for your iteration is generally fine.  Even if it's the text value itself, depending on the storage/persistence.

The reason for the key, is to minimize the DOM impact on large collections to only those nodes that have changed within whatever iterable/collection/array is used to populate the values.  Without such a key, a large (many hundreds to thousands) of DOM nodes/elements within that collection could be completely recomposed, which can be visually noticeable to jarring/jittery in terms of usage.
tracker1 1077 days ago. link 2 points
Not the Author... that said, one advantage of using a reducer to respond to events is that you can process your logic as a pure function which is easier to test both state and changes.  It also is better in terms of separating state management from render.

If course it's at the cost of a slightly more complex implementation and requires that separation of responsibilities in a clean way, which isn't always the case in practice.

It's part of why I've been such a fan of straight Redux for state management.  It's easier to compare/contrast with a state checker system such as the original Angular where projects and implementations have tended to have many bugs related to state management in practice.

Much like tdd, it doesn't make the code cleaner or better, but does make it more painful to not do it cleanly.
tracker1 1084 days ago. link 1 point
Dexie.js definitely looks interresting as a client side abstraction.

Not sure on the dexie cloud... pricing may be fine for some use cases, but could get expensive for popular hobby sites, and tend to prefer self-host options myself.  Relatively cool all the same.
tracker1 1084 days ago. link 2 points
Feel free to just downvote... but I do appreciate the comment as well.  When downvoting, you'll get 2x karma back when the post is deleted.
tracker1 1088 days ago. link 1 point
While interesting, the main source is obfuscated/minified, and there's no link to anything that can serve as a point of informational reference in terms of this site's main topic (JavaScript).
tracker1 1097 days ago. link 1 point
Slight niggle... it's part of the Document Object Model (DOM), not strictly a JavaScript thing, so much as a Browser (X)HTML thing.
[more]