Hacker Way: Rethinking Web App Development at Facebook

Channel:Meta Developers · Length:44:36 · Published:2014-05-05 · Views:899978

Watch on YouTube

Summary

Facebook engineers explain why they abandoned the traditional MVC paradigm for a more functional architecture, introducing Flux and React. They use the unread-message-count bug as a case study of the problems of bidirectional data flow at scale.

Why HN recommends it

HN points to it as the original talk that explains the motivation behind React, Flux and Redux, and that sold some commenters on React.

these talks, they are the ones that sold me on React — HN, 2023

Functional programming · Web development · Software architecture & design

Subtitles (excerpt)

Hello everybody and welcome to F8. Okay, so this afternoon's track here in the blue room is the hackaway track. So this is a little bit different to what you heard this morning, a little different to what's happening in some of the other tracks, but we hope this session is going to give you a little bit of insight into what we do at Facebook ourselves to build our own apps and to launch them to the world. So one of the things I love about Facebook engineering and the teams here is that they love to tell stories. stories about our culture, how we like to move fast and break things or ship stable infrastructure and how we ship love to our users around the world. We also like to tell stories about the challenges that we constantly face as an organization, as a company. We like to talk about those challenges brought on by moving at the speed we move and at the scale of our business. But more importantly, we like to talk about the solutions that we've come up with to those challenges, whether they be innovative ideas, software libraries, tools, processes. and we like to talk about how we then go on and share those with the world through our open source program and through forums like this

On Hacker News

I'll try one last time: > Sorry none of this makes any sense to me. If you're not familiar with the MVC variants (MVVM, MVP, MVI, MOVE)[0][1] we should start there. Next you should read through some common mistakes of Backbone.js like applications [LINK] and some criticisms of MVC on HackerNews in 2012[0]. Finally if you haven't before these talks, they are the ones that sold me on React: - [LINK… — yazaddaruvala, 2023-06
If you have state changes within your render cycle, then you can't write pure functions anymore, you have a stateful class. And if you have a stateful class, then React can't control when you render, because it can't know when you update a variable. So the onus is on you to decide when your component needs to re-render. This is extremely easy to screw up. You will end up in scenarios where the UI… — phailhaus, 2024-12
Exactly, this is the same as saying Redux has two methodologies, the "setter system" and the "event system"; since it wasn't that well documented initially doesn't mean that the setter way was ever recommended (it's not). In fact if you watched the Flux youtube talk, something highly recommended to learn the philosophy behind Redux, it was pretty clear. Edit: here's the video (from 10:20) [VIDEO] — franciscop, 2023-05
Redux is an implementation of Flux. I don't use Redux, but the original Facebook engineering announcement videos helped me understand React and Flux tremendously: [VIDEO] If you're talking about Redux specifically -- I agree with you. I think it's ugly and confusing. — danesparza, 2017-07
Video seems to start discussion of Flux just after the 10 minute mark. Direct Link: [VIDEO] EDIT: So far, the video is much more helpful to me in terms of bringing the concepts of Flux to life. Jing does a terrific job explaining in my opinion. — rattray, 2014-05

Related videos