7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions
https://twitter.com/dustingetz
comment 12y ago · link · parent
comment 12y ago · link · parent
ReactJS expert, using ReactJS since the week it came out, on two enterprise-grade applications, primary author of the wingspan-forms widget library for React [1], screenshots of the first enterprise app here [2], giving a React workshop at Strange Loop 2014 and spoke at QCon on React in May [3]. Available in late august. Strong full-stack application architect (Scala, functional programming). Only accepting work in functional languages, and javascript with React. dustin.getz@gmail.com
[1] https://github.com/wingspan/wingspan-forms [2] https://github.com/wingspan/wingspan-forms#screenshots-from-... [3] https://qconnewyork.com/presentation/functional-programming-... [4] https://www.linkedin.com/in/dustingetz
comment 12y ago · link · parent
If I understand this right, this is a big concern of mine too, I feel strongly that React needs to provide a standard Cursor-like interface to state, otherwise each parochial component system is going to be incompatible with the others.
Here is some discussion on cursors: https://news.ycombinator.com/item?id=7906657
Here is a component library we built at Wingspan: https://github.com/wingspan/wingspan-forms
comment 12y ago · link · parent
I used ExtJS heavily for years and identify with this post, I use React now and couldn't be happier. We had to build our own component library[1] (wrapping KendoUI widgets) but React makes it a breeze to take these primitives and build composites.
comment 12y ago · link · parent
1. hasenhj is correct, Backbone has been superseded for "advanced" webapps for at least two years and should not be used for new webapp development
2. I had the same confusion and question about what exactly ampersand is and what "advanced app" problems it sovles
emotional edit: I've used Backbone, Knockout and React in "advanced" (enterprise-scale) production apps, and studied TodoMVC and skimmed the book for Angular and Ember. My original decision to use backbone & knockout in enterprise scale app almost wrecked my first greenfield project, we spent multiple months ripping out Backbone based code. In 2014, Backbone.Model and Backbone.View are very naive ways to approach frontend problems and it is not obvious why until you've been using them a few months. There is an entire ecosystem of blog posts on HN of people attempting to explain why. Any and all of the above dependencies are better than Backbone/Knockout for new webapp development. They of course have the advantage of learning from Backbone, Knockout, YUI, Sencha etc, so it is no surprise that they tackle the hard problems that backbone makes no attempt to solve.
2652.
Datomic solves the O/R impedance mismatch(dustingetz.com ↗)
3 points · by dustingetz · 12y ago · discuss
comment 12y ago · link · parent
Extreme point free style does not work in javascript, AT ALL!!!! Two reasons:
1) Find the bug: the table sort is glitchy. Is the bug in this suspicious line, or somewhere else? (Real line of code in a codebase I inherited, and yes there is a bug in it)
var sorted = rows.sort(_.unsplat(_.pipeline(
_.partial(_.map, _, accessor),
_.splat(comparator))));
2) I use React, so I can get away with a lot of really functional stuff since React is well suited for functional javascript. React is a great functional abstraction, but under the abstraction is imperative code. Imperative code means you need a debugger. When you write in a point free style, there's nowhere to place a breakpoint!comment 12y ago · link · parent
Just like you want to control a react.dom.input, you also may want to control a tabstrip. Maybe you have some biz logic that says "When you click save, select the next record, and if record.type===2, select the third tab". You never know in advance what state needs to be controlled from the top, I found myself refactoring my viewmodel state higher and higher.
The mouse state is never going to be controlled from the top, so that is component local state.
comment 12y ago · link · parent
comment 12y ago · link · parent
* single mutable ref to normalized app state
* cursors for encapsulation and modularity
* O(1) deep equality checks
* fastest possible react performance
source: I have done it in two large react apps, but i have not documented it yet. Blog post coming soon.Interestingly, as your app state gets bigger, you are actually forced to use something like cursors for all state updates, for performance reasons. Naive immutability in javascript means clone-before-modify, which is far too slow when your state values are large. It quickly bubbled up in our profiler. Funneling all immutable updates through a cursor means the cursor can use structure sharing on the state value, skipping the defensive clone and preserving reference equality for equal subtrees. Also afaik, implementing a general shouldComponentUpdate (edit: in js) without something like cursors is not possible, because you need === equality for onChange props.
2660.
James Shore (The Art of Agile Development) currently doing AMA on reddit(reddit.com ↗)
1 points · by dustingetz · 12y ago · discuss
comment 12y ago · link · parent
edit: i'm not willing to give extension access to private repos, that would defeat the point of being private
comment 12y ago · link · parent
The old guys vastly underestimate the productivity difference between old tech and hip new tech.
The young guys vastly overestimate how much of their productivity is due to their own smarts rather than using hip tech, and don't sufficiently appreciate that when they get older, the experience they've accumulated won't be worth much, either. Re-learning everything every 5 years is only fun the first and second times.
But certainly, years of experience with some tech is becoming less and less valuable, as the tech is changing faster and faster.
comment 12y ago · link · parent
https://github.com/wingspan/wingspan-cursor/blob/master/js/C...
comment 12y ago · link · parent
comment 12y ago · link · parent
https://github.com/wingspan/wingspan-cursor/blob/master/js/C...