Office LifeDec 22, 2018
Googlefr1end

Unit testing at Facebook?

I'm considering moving to FB, but my co-worker told me, that there is no unit testing and code quality culture at Facebook, like what we have here at Google, they just submit their code with no style review or unit testing. This is a big deal for me, as I forgot how to work with crappy looking and untested code. I don't believe my colleague. Anyone working at FB, is this true? Do you unit-test your code, also do you have tools to make sure it is not broken due to external dependency changes? Is there a style guide which is strongly enforced? 15 yoe🌲fiddy

Add a comment
Darkstore (>’’)> Dec 22, 2018

Highly doubt that

Amazon aSoL84 Dec 22, 2018

Not from fb but You cant unit test for external dependency changes.. that would be integration testing..

Google fr1end OP Dec 22, 2018

Yes, this is in addition to unit tests.

Amazon WicH21 Dec 22, 2018

I highly doubt they can get away without unit testing. That is insanity. You could have pockets of teams with bad coding standards but clubbing entire company in this bucket seems unfair

Facebook MetricMan Dec 22, 2018

Hahahahahahahhahahahahahahahhahha. Boy do I have news for you.

Facebook Seft Dec 22, 2018

Yeah. Lol. Everything OP heard is mostly true. Except in some low level infra projects like data stores there is hardly any testing. Somehow we make it on prayers, monitoring, quick reaction and a type of hacking skill.

Uber 5b Dec 22, 2018

My fb friends confirmed. Whoever wrote thorough tests are not moving fast enough!

Microsoft Diabfldiqb Dec 22, 2018

Not true. There are unit tests.

VMware BobbleHat Dec 23, 2018

3 of them

Facebook pipirupiru Dec 22, 2018

It took me a while, but after sifting through the codebase, I can confirm I found at least one unit test in there so we're solid.

Facebook TioViejo Dec 22, 2018

If these are things that are important to you, then Facebook is probably not the company for you. Quality on that scale varies across that company. However people that are pedantic really don't do well here, stay at Google. (I've worked at both BTW, and wouldn't go back)

Google fr1end OP Dec 22, 2018

Yes, these are important to me, also I'm pedantic. Could you please elaborate more on why I better stay and why you wouldn't go back to G? Thanks.

Facebook TioViejo Dec 22, 2018

Because I'm not pedantic :). I care more about function than form, which is pretty universal at Facebook. Basically, it takes too long to accomplish things at Google. I had projects that took 3 years at Google I could accomplish at Facebook in a year or less. I used to run 3-4 projects in parallel at Google while they waited for something else to happen. My last major project at Google, and admittedly, it was very large and high... risk?, over half of our time in software dev was spent in unit tests. None caught much of anything, but some systems tests I cooked up in a few days caught a bunch of problems. Anyway, I spent a long time at Google, and I appreciate a lot of things about the company, but I believe a lot of people are wasting their talents there.

Uber 5b Dec 22, 2018

OP, can you share the reason to join fb, not that you leave google.

Google fr1end OP Dec 22, 2018

Learned a lot of stuff at G. Want to start learning new stuff again and work with and get to know new people. Also a higher comp.

Microsoft Tier 1 Dec 23, 2018

Apply to a prestigious tech oriented trading firm, like Jane Street. JS primarily uses OCaml. They value elegance, testing, intellect, and objectively measure results. You’ll definitely have something to learn. And they can offer much more than Google or Facebook. (Although most of your TC is from the annual bonus)

Facebook TimeSinks Dec 22, 2018

Google was a little heavy on the unit testing for my taste. However Facebook takes it nearly to an opposite extreme. Most tests I do see are integration tests, but it's fairly rare to see a lot of systems with good test coverage. They get away with this through good deployment methodologies. It works fairly well, but it certainly feels wrong coming from Google. The code at Facebook and Google is dog shit in my experience. Testing your dog shit code doesn't really change anything.

New
monomo Dec 23, 2018

Dogshit code? Even with the best engineers they're hiring?

Facebook Cjddjc Dec 23, 2018

No design, just roll shit code into production and see if it causes serious damage to your own services. If it breaks other services, that is someone else's problem #embraceforimpact

Apple howudoin Dec 22, 2018

Tc?

Google fr1end OP Dec 22, 2018

Sorry, updated the post.

Amazon Chad_ Dec 23, 2018

This joke was old in May and now people take it seriously