Better HN
topnewbestaskshowjobs
Log inSign up

jefftchan

1,333 karma · joined Sep 21, 2011 (15y ago) · 50 submissions

twitter.com/jeffchan
Submissions

comment 9y ago · link · parent

For context, "Names/blames me for account deletes" is probably related to: http://www.complex.com/life/2017/02/uber-users-deleting-app-...

https://twitter.com/FamousCeleb/status/834567373214539776/ph...

2.

Comparison of JavaScript Engines on Android(quizlet.com ↗)

3 points · by jefftchan · 9y ago · discuss

3.

Lessons on How to Start a Hard Tech Startup, with Sam Altman(mitadmissions.org ↗)

52 points · by jefftchan · 10y ago · 9 comments

4.

Hot Reloading for React Native(facebook.github.io ↗)

3 points · by jefftchan · 10y ago · discuss

comment 10y ago · link · parent

Relatedly, I wanted to highlight that Dan Abramov is currently working on a refactor of ReactPerf [1] which will make the performance measurements more accurate.

[1] https://github.com/facebook/react/pull/6046

comment 10y ago · link · parent

https://www.ycombinator.com/ethics/

> Some examples of ethical behavior we expect from founders are:

> ...

> - Not using misleading, illegal or dishonest sales tactics.

> ...

Does this mean Parker is no longer a YC Founder, if the allegations turn out to be true?

7.

Falcon 9 stage 1 rocket lands successfully(twitter.com ↗)

13 points · by jefftchan · 10y ago · discuss

8.

Quizlet raises $12m from USV and Costanoa after bootstrapping for 10 years(avc.com ↗)

2 points · by jefftchan · 11y ago · discuss

9.

Quizlet(avc.com ↗)

4 points · by jefftchan · 11y ago · discuss

comment 11y ago · link · parent

Great post! I found Fenwick trees particularly useful when I was implementing layout / view recycling. The problem is that you need to keep track of a large number of vertically stacked elements with dynamic & varying heights, and you need a way to efficiently get the prefix sum. Would be curious if anyone else has real life use cases of these.

comment 11y ago · link · parent

Totally agree. See Facebook's messenger.com for a similar thing, done much better.

comment 11y ago · link · parent

What about Ripple.js [1] [2], which Segment also released ~1 year ago? Is that dead now?

[1] https://ripplejs.github.io [2] https://news.ycombinator.com/item?id=7609816

comment 11y ago · link · parent

This is great. Can't wait for the actual release. One question I have is how GraphQL/Relay works for writing/modifying data on the server?

comment 11y ago · link · parent

Chromium is already on Github. https://github.com/chromium

comment 11y ago · link · parent

For me, the part of Flux that's difficult to understand is how server data flows into the cycle (left-hand side of the diagram). The Flux docs only recommends that server interactions should be done from the Action Creators. However, things are actually more complicated than that:

- how do you resolve server / client data conflicts?

- how do stores work with a RESTful API?

- how do you handle network failures, retries, etc?

At Quizlet, we designed a hybrid solution [1] with "syncers" that act as the gateway for network I/O. Syncers are responsible for taking view-level data (ViewModels) and exchanging them with the server (ServerModels). It works well with our REST API. Yahoo has also released their own thing called Fetchr [2] which is more tightly integrated to stores.

I'm curious to see how other people are approaching this problem.

[1] https://news.ycombinator.com/item?id=8954733

[2] https://github.com/yahoo/fetchr

comment 11y ago · link · parent

I'd like to see scoping added so it's possible to easily switch keyboard bindings based on the feature/context.

https://github.com/madrobby/keymaster does an OK job with this, and too bad it's not being actively maintained.

comment 11y ago · link · parent

Any recommendations for software to manage workspaces on OS X?

comment 11y ago · link · parent

MIT's distributed systems class is also taught in Go - http://css.csail.mit.edu/6.824/2014/schedule.html

comment 11y ago · link · parent

Here's an open source alternative: https://github.com/SelfControlApp/selfcontrol/

comment 12y ago · link · parent

Point #2 is especially spot on. Right now TransitionGroup clones every child [1] to preserve children for unmounting, but it's incredibly inefficient, especially if you have thousands of elements. Not to mention, as a side-effect, it requires wrappers to preserve refs. [2]

[1] https://github.com/facebook/react/blob/master/src/addons/tra... [2] https://github.com/facebook/react/issues/1950

comment 12y ago · link · parent

Can we now use Stripe + Apple Pay to circumvent 30% revenue cut?

comment 12y ago · link · parent

The page width awkwardly jumps when toggling between unified and split diff. Is this a glitch, or intentional?

23.

Announcing UberPool(blog.uber.com ↗)

430 points · by jefftchan · 12y ago · 155 comments

comment 12y ago · link · parent

Yes, a chain of actions (for example, a sequence of AJAX requests that need to be fired)

comment 12y ago · link · parent

It's great to see Facebook releasing code for Flux. Hope to see more in the future. Here are some other implementations of Flux for anyone who's interested: https://github.com/BinaryMuse/fluxxor https://github.com/jmreidy/fluxy https://github.com/yahoo/flux-example

We recently adopted this architecture for a medium-scale project. The unidirectional data flow has greatly reduced code complexity for us. We're still not satisfied with our server syncing strategy. Seems like actions are the best place to sync data, but how do you deal with interdependent actions?

comment 12y ago · link · parent

In China, it's called "circle a" (圈a), "flowery a" (花a), or "little mouse" (小老鼠). In Taiwan, it's most commonly called "little mouse"

comment 12y ago · link · parent

It seems like they're detecting browser user agent (and possibly IP)

comment 12y ago · link · parent

How does this work in the case of namespace collision? Will we have squatters on the uri schemes?

comment 12y ago · link · parent

I think doing all-hands support in a way that's efficient (not taking too much out of engineer's time) and scalable requires a well-designed system to support it. Quizlet, where I've worked before, does a good job of this. See: http://quizlet.com/inside-quizlet/quizlets-incredible-feedba...
12