266 karma · joined September 12, 2011
https://ianobermiller.com
> “Nothing?”
> The old woman had her spiel ready. “Physicists long since determined that most of space was empty, and most of each atom was empty, so that the overwhelming nature of the universe is nothingness, with tiny interruptions that contain all of existence. So their library is named for this Nothing that comprises most of the universe. And the mathematicians share the space, because they are proud to say that what they study is even less real than what the physicists study, so their portion is called the Library of Less than Nothing.”
> Rigg decided he was going to like the physicists. It seemed to him, though, that the mathematicians must have an annoying competitive streak.
Pathfinder (2010) by Orson Scott Card
[1] https://codesandbox.io/s/recursing-glitter-h4c83u?file=/src/...
[1] https://gist.github.com/ianobermiller/9f17f1022bc75c2228d742... [2] https://bl.ocks.org/ianobermiller/raw/9f17f1022bc75c2228d742...
One of my favorite features was a panel with every comment on the PR, sorted and organized by status. Because all files in the PR were preloaded clicking a comment instantly took you to the specific code and version. So good!
[1] https://gist.github.com/ianobermiller/9f17f1022bc75c2228d742...
[2] https://bl.ocks.org/ianobermiller/raw/9f17f1022bc75c2228d742...
In short:
- Don't pass around components and call methods on them; prefer to pass props instead
- Conditional rendering instead of hiding, exactly as [3]
- Use the JSX harmony transforms
- Declare props
- Use classSet
- setState only needs to include props that change, rest stay the same
[1] https://github.com/ianobermiller/reactexperiment/commits/
The importance of keeping actions fire-and-forget is that data must live in the store; if actions have callbacks, the views would be using state to keep themselves updated with data that should be in the store.