7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions
https://twitter.com/dustingetz
comment 12y ago · link · parent
[0] dom callbacks actually swap! the nextState value so there are effects down there at the bottom of the view hierarchy, but that's react's fault for not letting you return the next state. e.g.
<input
value={this.state.a.b.c}
onChange={_.partial(mori.assoc_in, this.state, ['a', 'b', 'c'])} />comment 12y ago · link · parent
The main issue with Knockout here, is that the state of these apps (the JSON blob that changes as you click around) is not nice and rectangular and doesn't fit nicely into ko.observable and ko.observableArray. particularly the faceted search demo has tension where the lefthand facet checkboxes are grouped and have counts, but the top facet list is not grouped and don't have counts. In react, those are backed by the same state data, and the data is just regular nested javascript objects and arrays, you don't need to access the data through observables. You just use underscore to transform the data as you see fit.
comment 12y ago · link · parent
http://wingspan.github.io/wingspan-forms/examples/form-twins... http://wingspan.github.io/wingspan-forms/examples/faceted-se...
comment 12y ago · link · parent
comment 12y ago · link · parent
All the design work was done by an actual designer who maintained the JSX directly. He knows enough javascript to get around but basically he just pretended it was HTML. JSX is awesome because it means designers can commit directly without involving engineering.
comment 12y ago · link · parent
Your website demonstrates who you say you are. Github work demonstrates who you actually are.
comment 12y ago · link · parent
I attempted to explain this here: http://www.dustingetz.com/2013/03/26/orm.html
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
comment 12y ago · link · parent
[0] http://restcookbook.com/Basics/hateoas/
RESTful Web APIs (2013)[1] is a very, very good book about this stuff. The book has a mailing list with some good discussion about this stuff [2].
[1] http://www.amazon.com/RESTful-Web-APIs-Leonard-Richardson/dp... [2] https://groups.google.com/forum/?fromgroups=#!searchin/colle...
I'm still exploring this stuff myself so maybe I am wrong or misunderstanding you.
comment 12y ago · link · parent
Backbone is terribly devious in that it tricks you into thinking that it is unrestrictive and unopinionated. Backbone manages state with mutable models and model change callbacks, so Backbone's opinion naturally is that models and change callbacks are a good way to organize your application. "I want to write hundreds of callbacks to keep everything in sync" said no UI developer ever.
comment 12y ago · link · parent
Please forgive the bluntness; as a guy who is about halfway down "the road to Haskell", it seems like none of the shops that say they value FP are willing to pay more for it. For me, it's been easier to extract money from a javashop that's starved for talent and just figure out a way to install FP there. DK effect might also be clouding my self valuation.
comment 12y ago · link · parent
comment 12y ago · link · parent
2699.
Facebook React Community Round-up #17(facebook.github.io ↗)
1 points · by dustingetz · 12y ago · discuss