Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
elierotenberg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
elierotenberg
12y ago
Thanks for your feedback. Several other comments point in the same direction: automatic (or assisted) handling of optimistic updates. I think this is actually relatively easy, since there are clear hooks in the Nexus Flux API to implement d
32.
▲
by
elierotenberg
12y ago
Its shouldJS. An assertion lib with a fun chainable DSL. Basically whatever.should.predicate desugars to assert(predicate(whatever)). See https://github.com/shouldjs/should.js :)
33.
▲
by
elierotenberg
12y ago
Native (mutable) Maps and Weakmaps are coming up with ES6, and are already (mostly) polyfilled by things like core.js. Immutable provides (immutable) implementations of Map, OrderedMap, Set, etc. See http://facebook.github.io
34.
▲
by
elierotenberg
12y ago
That was nearly exactly my initial approach! :) However I realized actual diffing was really slow, especially for large collections, as it involves scanning the entire structure for changes, when in fact all changes could simply be flagged
35.
▲
by
elierotenberg
12y ago
Very interesting pointer, thanks. Remutable.Patch objects represent a collection of map edits, ie. a set of { key, value } pairs indicating that 'key' should be replaced by 'value' (and value can be void 0 to indicate de
36.
▲
by
elierotenberg
12y ago
Absolutely. I plan to include it in the framework ultimately, although it requires implementing an optimistic client-side dispatcher in JS which mocks the optimistic behaviour of the actual, eventually true server-side dispatcher (which may
37.
▲
by
elierotenberg
12y ago
I didn't now about ShareJS, but I'll definitely check it out. At its core, the patch abstraction is commutative (and more importantly, reversible), so I should be able to implement the 'rebase'-like operation. My feeling
38.
▲
by
elierotenberg
12y ago
You're right, although its fairly easy to implement optimistic updates on top of this. Since patch objects are reversible, you can use a simple logical clock and an undo/redo stack to perform optimistic updates locally, and undo t
39.
▲
by
elierotenberg
12y ago
Wow, a crashed site presenting a web architecture surely isn't classy! Sorry about that, I'm working on it.
40.
▲
Flux over the Wire using Websockets and Immutable JS
(blog.rotenberg.io)
81 points
by
elierotenberg
12y ago
|
40 comments
41.
▲
ES6 starterkit
(github.com)
8 points
by
elierotenberg
12y ago
|
1 comments
42.
▲
by
elierotenberg
12y ago
Fair enough, I've edited the topic name to clarify, thanks for your feedback!
43.
▲
by
elierotenberg
12y ago
Despite the name, it has nothing to do with Ruby-on-Rails. The name, coined by @Vjeux, is more about the purpose: provide a full-stack, batteries included framework for making apps with React. It embraces the React core principles all the w
44.
▲
by
elierotenberg
12y ago
Also see the starterkit: https://github.com/elierotenberg/react-rails-starterkit
45.
▲
Show HN: React on Rails (isomorphic JS React framework)
(github.com)
7 points
by
elierotenberg
12y ago
|
5 comments