Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
chenglou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
211.
▲
by
chenglou
12y ago
Have you ever, by coincidence, used Phabricator? If so, what's your opinion of it? I've used Phabricator full-time for a while and it's been really a joy.
212.
▲
by
chenglou
12y ago
In React.js, you can serialize your whole app state through a simple ˋJSON.stringify` and base64 encode that into the url. The nice property of that is that you get to pass that url around to friends, and when they click on it they'll
213.
▲
by
chenglou
12y ago
I don't think it has to do with router; just pure, simple state (router is just another part of a component state anyways). For your example, I think it should support both. You can distinguish an A from another A through a different k
214.
▲
by
chenglou
12y ago
There's been a few React animation experiments (including my own: https://github.com/chenglou/react-tween-state ), but I think there are two main problems here and this library, albeit nice, is mingling the two: -
215.
▲
by
chenglou
12y ago
See my link on sebmarkbage's reply. It's not just for Jest.
216.
▲
by
chenglou
12y ago
Rest assured, see sebmarkbage's and my reply here: https://news.ycombinator.com/item?id=8523732 https://news.ycombinator.com/item?id=8524465
217.
▲
by
chenglou
12y ago
(I'll re-link to sebmarkbage's answer here in case people see this post and get confused: https://news.ycombinator.com/item?id=8523876 ) In short, this is somewhat of a transition step for the (imo) even better w
218.
▲
by
chenglou
12y ago
Don't forget Pete's React Wolfenstein3D demo! I bring it up every time I can =). Check the inspector. http://www.petehunt.net/wolfenstein3D-react/wolf3d.html
219.
▲
by
chenglou
12y ago
(React dev here) I myself have been guilty of spreading this "React is just the view" mentality as an easy argument to convince people to try it. However, in reality, you can't really compare framework X's view with Reac
220.
▲
by
chenglou
12y ago
No, this isn't a React render issue (and React render in general doesn't have this issue. Put a `key` on your component and everything will work correctly). If the item isn't changed then its DOM representation isn't tou
221.
▲
by
chenglou
12y ago
Shameless plug: I maintain Node-huxley ( https://github.com/chenglou/node-huxley ), which accomplishes what this project does, but without the need for writing automation code. Also compares previous/next screenshot
222.
▲
Why Apple doesn’t do MVPs
(bokardo.com)
3 points
by
chenglou
12y ago
|
0 comments
223.
▲
by
chenglou
12y ago
I don't want to go further into a language/library/ecosystem war here. Glad to talk more about it on #reactjs though =).
224.
▲
by
chenglou
12y ago
I contribute to React. I'm definitely a big fan of ClojureScript and I borrow ideas from it when I can. I currently have a few crazy ideas that are direct results of looking into the Clojure (or Haskell) ecosystem and finding that they
225.
▲
by
chenglou
12y ago
https://github.com/chenglou/RCSS
226.
▲
by
chenglou
12y ago
Care to try out https://github.com/chenglou/react-tween-state ? I've been experimenting with animation in React and would love to see the general paradigm behind this and implement it in React.
227.
▲
by
chenglou
12y ago
No, React does internally , for the purpose of its diffing algorithm (which is subject to changes). React's public facing API does not use data-* whatsoever. As a matter of fact, storing user data in data-* attributes is unnecessary i
228.
▲
by
chenglou
12y ago
It does, if you consider that spicyj worked on this and that he's a core React contributor =).
229.
▲
by
chenglou
12y ago
Is there any open source JS library for this kind of movement tracking?
230.
▲
by
chenglou
12y ago
It is indeed displayed on the front page, in vanilla JS, but that doesn't change the fact that it's not a very accurate comparison, providing that the point you're trying to prove is LOC. The React version also showcased attr
231.
▲
by
chenglou
12y ago
Comparing your CoffeeScript example against a vanilla JS React example seems cheap. here's the front page React example in CS: converter = new Showdown.converter() MarkdownEditor = React.createClass getInitialState: ()
232.
▲
by
chenglou
12y ago
This comparison of two-way data bindings assumes that, well, two-way data binding is the way to go. Without taking a stance on whether this is wrong or not, the usage of React here is a bit misleading. React puts emphasis on unidirectional
233.
▲
by
chenglou
12y ago
Shorter feedback loop is always great. Running tests in parallel is a non-brainer. Leveraging Jasmine is great too. Glad to see it's not reinventing the wheel! Here's another interesting part, on dependency injection: http:/
234.
▲
by
chenglou
12y ago
React is a paradigm with only one existing implementation. Ranting against frameworks represented by React is a strawman here. It doesn't include a router, nor a model layer, nor the traditional controller. It's a miracle that it&
235.
▲
by
chenglou
12y ago
Related to the linked article at bottom (coding in color: https://medium.com/p/3a6db2743a1e/ ): I've been using the Sublime Colorcoder plugin ( https://github.com/vprimachenko/Sublime-Color
236.
▲
by
chenglou
13y ago
You're right! In fact, https://github.com/facebook/react-art is a React library we developed at Facebook for rendering graphics to Canvas, SVG, or VML, depending on what's fastest and what the browser support
237.
▲
by
chenglou
13y ago
This makes perfect sense, as Dropbox tries to be a backend to your storage rather than a frontend. Carousel is at the same time a potentially great app and an invitation to try Dropbox's API. Helps the competition to build even better
238.
▲
by
chenglou
13y ago
That's a good, albeit very generic argument where you can switch Angular and React with simply A and B. My guess is that you haven't tried React? It's been in production at Facebook/Instagram for a few years now and powe
239.
▲
by
chenglou
13y ago
Since those accounts don't really look like spam accounts, we'll take that as a compliment =). Even as a contributor, the reactions from the React users surprise me sometimes.
240.
▲
by
chenglou
13y ago
I have a tremendous respect for people who dare to dream big despite all cynicism and common assumptions, and especially people who have the skills to actually make the changes. Please keep doing the work you're doing.
More ›