Live data from Hacker News

Rebuilding our tech stack for the new facebook.com

engineering.fb.com

241–250 of 489 posts

Re: Rebuilding our tech stack for the new facebook.com

#241

Earlier quoted context omitted.

They aren't though. You have a cache.

Facebook release multiple times a day (or they did), so the browser cache is irreLevant.

Perhaps but thankfully not all webapps are like Facebook.

Re: Rebuilding our tech stack for the new facebook.com

#242
post #68

Quite sincerely, it's a total failure. I got the chance to try the new interface, and it's so slow that it's barely usable. It's even slower than the old website, that was already painfully slow. Loading a random profile takes 8 seconds. Opening a messenger discussion takes 6 seconds. It reminds me of the new Reddit website. Facebook was more enjoyable to use 12 years ago. It's really sad that in 2020, 10k+ engineers…

The problem there is that '10k+' "engineers" are trying to make the same 'photo, video, post and message-sharing website'. It's a structural problem and little more: the website (and app) is their main money-maker, so they're going to give it a disproportionate amount of resources. Imagine you hire ten thousand people to lay one railroad track. [note; see end of post] If any single one of them doesn't contribute dire…

I don't know how many people FB actually allocates for their main app, but this reminds me of a chapter in The Mythical Man-Month. It is said over 1000 people and 5000 man-years went into OS/360. I don't see it anywhere today.

Instead, the book proposes The Surgical Team, i.e. about 10 people taking specialized roles, with the system being the product of the mind of a few key people. I wonder how well this aged.

Re: Rebuilding our tech stack for the new facebook.com

#244

Quite sincerely, it's a total failure. I got the chance to try the new interface, and it's so slow that it's barely usable. It's even slower than the old website, that was already painfully slow. Loading a random profile takes 8 seconds. Opening a messenger discussion takes 6 seconds. It reminds me of the new Reddit website. Facebook was more enjoyable to use 12 years ago. It's really sad that in 2020, 10k+ engineers…

Sorry, I won’t take blame for that. Still haven’t found a use case for React/Angular or SASS/whatever. If I’m guilty of something is not recognizing the validity of those tools, as I’m sure there are. But 2MB CSS is simply inconceivable to me.

React, Vue, and Angular all use a virtual DOM, which means they're already deprecated 5 years from now. A virtual DOM is dumb.

SASS, SCSS, LESS, etc are kind of great though. It sucks you have to compile them to css, but you can do this:

    .App {
      .Topbar {
        .Logo { color: green }
      }
      .Content {
        h2 { color: orange; }
      }
    }
Saves a lot of time and effort.

Re: Rebuilding our tech stack for the new facebook.com

#245

Earlier quoted context omitted.

It's slow, requires JS, and fails around.. 50% of loads, I think?

ok I guess YMMV. It doesn’t fail for me, so I guessed it’s like that for everyone. everything requires javascript nowadays, that’s just a default

"Oh there's radioactive material in every food now, why would you complain about that? That's just a default."

Re: Rebuilding our tech stack for the new facebook.com

#246
post #68

Earlier quoted context omitted.

The problem there is that '10k+' "engineers" are trying to make the same 'photo, video, post and message-sharing website'. It's a structural problem and little more: the website (and app) is their main money-maker, so they're going to give it a disproportionate amount of resources. Imagine you hire ten thousand people to lay one railroad track. [note; see end of post] If any single one of them doesn't contribute dire…

I don't know how many people FB actually allocates for their main app, but this reminds me of a chapter in The Mythical Man-Month. It is said over 1000 people and 5000 man-years went into OS/360. I don't see it anywhere today. Instead, the book proposes The Surgical Team, i.e. about 10 people taking specialized roles, with the system being the product of the mind of a few key people. I wonder how well this aged.

Fred Brooks was accurate about most things, yeah. It's hard not to envy him; he got to work with (and write a book with) Ken Iverson. Can you imagine? People back then really had all the luck!

...at least as far as computers go, anyway.

Re: Rebuilding our tech stack for the new facebook.com

#247
post #25

I saw no mention of Reason or ReasonReact. I thought they rewrote Messenger in Reason, and so I figured facebook.com would be next. Did Reason fall out of favor or something?

lol no, "Did Reason fall out of favor" does not logically follow from "I figured facebook.com would be next". you were simply too optimistic on Reason.

Re: Rebuilding our tech stack for the new facebook.com

#248
post #199

Earlier quoted context omitted.

It’s not. HoCs don’t add nesting. If they do, you’re doing it wrong. React <15 (2yrs old), did nudge you in the direction of div-itis, because all components that rendered something had to render a single root element. The more recent versions did away with that constraint. HoCs don’t even need to return markup; they’re functions which return functions. The general expectation should be that an HoC behaves like a fac…

So every React app can be effortlessly refactored to use whatever shiny new latest and greatest architecture abstraction React comes up with?

No, and FB themselves discourage this in their documentation.

Regardless of upgrade paths, React I don’t contest that the older React tended towards div-itis if you weren’t careful with how you used it. But this thread was about Higher Order Components (or wrapper functions), which don’t have any inherent effect on nesting.

Post reply on HN