News for hackers. Stuff that matters.

jefftchan

Re:A Deep Dive into React Perf Debugging on Thursday February 25, 2016 @03:13PM (#11177427)
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

Re:Zenefits Software Helped Brokers Cheat On Licensing Process on Thursday February 11, 2016 @05:48PM (#11083952)
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?

Re:Fenwick Trees on Monday August 17, 2015 @10:46PM (#10077346)
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.
Re:Google Hangouts on Monday August 17, 2015 @07:56PM (#10076856)
Totally agree. See Facebook's messenger.com for a similar thing, done much better.
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

Re:GraphQL Introduction on Friday May 01, 2015 @06:15PM (#9474859)
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?
Re:Bidding farewell to Google Code on Thursday March 12, 2015 @12:48PM (#9192003)
Chromium is already on Github. https://github.com/chromium
Re:What the Flux? on Tuesday January 27, 2015 @02:19PM (#8955073)
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

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.

Re:Ask HN: How to use small chunks of time productively on Saturday December 27, 2014 @05:30PM (#8804212)
Any recommendations for software to manage workspaces on OS X?
Re:15-440: Distributed Systems Syllabus on Wednesday December 24, 2014 @03:52AM (#8792159)
MIT's distributed systems class is also taught in Go - http://css.csail.mit.edu/6.824/2014/schedule.html
Re:Focus – Steal back your productivity on Monday December 15, 2014 @02:49AM (#8751036)
Here's an open source alternative: https://github.com/SelfControlApp/selfcontrol/
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

Re:Stripe and Apple Pay on Tuesday September 09, 2014 @03:40PM (#8292257)
Can we now use Stripe + Apple Pay to circumvent 30% revenue cut?
Re:Introducing split diffs on Wednesday September 03, 2014 @05:05PM (#8265453)
The page width awkwardly jumps when toggling between unified and split diff. Is this a glitch, or intentional?
Yes, a chain of actions (for example, a sequence of AJAX requests that need to be fired)
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?

Re:At on Wednesday June 04, 2014 @11:17PM (#7850033)
In China, it's called "circle a" (圈a), "flowery a" (花a), or "little mouse" (小老鼠). In Taiwan, it's most commonly called "little mouse"
Re:$10 Of Free Bitcoin For College Students on Thursday May 15, 2014 @01:24AM (#7747975)
It seems like they're detecting browser user agent (and possibly IP)
Re:App Links: Link Anywhere on Mobile on Wednesday April 30, 2014 @02:00PM (#7675072)
How does this work in the case of namespace collision? Will we have squatters on the uri schemes?
Re:Why We Do All-Hands Support at Olark on Wednesday April 16, 2014 @06:45PM (#7600985)
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...
Re:Prefer mercurial to git on Sunday February 16, 2014 @12:38PM (#7248393)
Relevant: Facebook migrated from git to hg awhile back.

Here's a blog post on how they are scaling hg for their monolithic repos https://code.facebook.com/posts/218678814984400/scaling-merc...

Older »