News for hackers. Stuff that matters.
Re:Tesla engineers were on-site to evaluate the Twitter staf... by 8192kjshad09- on Saturday October 29, 2022 @08:49PM (#33389664)
Really interesting story, approximately how many lines of code were in that codebase?

It's hard for me to imagine someone grokking a 10M+ line codebase without external help, but I've never tried it. I do agree with the assertion that most codebases are not as _special_ as they like to think.

Re:Tesla engineers were on-site to evaluate the Twitter staf... by alchemist1e9 on Saturday October 29, 2022 @09:09PM (#33389816)
This was just over 600k of mostly c++ code. It’s certainly true that it helped I was familiar with the domain and the various technologies they had used, like CORBA and xml, this was late 90s.

10M is a pretty massive codebase like the entire linux kernel with all drivers is somewhere in that size. Most corporate systems aren’t that big and even for Linux you wouldn’t need to understand all drivers to understand the core kernel, I suspect the core kernel is maybe max 1M.

Re:Tesla engineers were on-site to evaluate the Twitter staf... by nogzio on Saturday October 29, 2022 @09:59PM (#33390190)
For reference, Facebook's android Messenger app is about 10M lines of code:

https://engineering.fb.com/2022/10/24/android/android-java-k...

Re:Tesla engineers were on-site to evaluate the Twitter staf... by alchemist1e9 on Saturday October 29, 2022 @10:35PM (#33390462)
That is interesting. I wondering how the 15 people that had created the ~600K c++ codebase I’m talking about compares to the FB headcount on android Messanger, does anyone know how big that team is? loc/head is a curious measure.

Regardless it’s a bit concerning that it takes 10M loc for a messaging app.

Re:Tesla engineers were on-site to evaluate the Twitter staf... by govg on Sunday October 30, 2022 @12:38AM (#33391139)
Does lines of code have any meaningful use as a statistic when I can simply include a bunch of libraries and headers to inflate it?
Re:Tesla engineers were on-site to evaluate the Twitter staf... by chris_wot on Sunday October 30, 2022 @06:36AM (#33393170)
Not forgetting of course that Twitter almost certainly uses several languages on the backend, and has it entwined in their infrastructure. As TFA says:

"One former Tesla engineer, who spoke on the condition of anonymity to candidly describe the matter but was not involved, said Tesla engineers would have trouble capably assessing Twitter’s code. Distributed systems, the large-scale and spread-out network that Twitter is composed of, are not the automaker’s specialty, the person said."

Re:Tesla engineers were on-site to evaluate the Twitter staf... by newZWhoDis on Sunday October 30, 2022 @12:24AM (#33391056)
9M of that is probably localization files, 500k licenses

:P

Re:Tesla engineers were on-site to evaluate the Twitter staf... by fooker on Sunday October 30, 2022 @01:25AM (#33391359)
A lot of the android code at Facebook is auto generated boiler plate.
Re:Tesla engineers were on-site to evaluate the Twitter staf... by JohnBooty on Sunday October 30, 2022 @01:40AM (#33391468)
I'm not doubting this is your story, but this is not the norm in my experience.

    It’s certainly true that it helped I was 
    familiar with the domain
The big tangled enterprise codebases I've dealt with had absolute metric tons of undocumented domain and company-specific "tribal" knowledge baked into them.

Technical prowess helps, obviously. But is not enough on its own.

Domain knowledge helps too, obviously. But even combined with technical prowess it is still typically not enough because of all the embedded tribal knowledge.

Re:Tesla engineers were on-site to evaluate the Twitter staf... by ilaksh on Sunday October 30, 2022 @01:21AM (#33391340)
Why would anyone think Twitter has 10 million lines of code? Does it have some type of hidden features etc that I am not aware of?
Re:Tesla engineers were on-site to evaluate the Twitter staf... by wiseowise on Sunday October 30, 2022 @03:19AM (#33391998)
Why would you think that it doesn’t have 10 million lines of code?
Re:Tesla engineers were on-site to evaluate the Twitter staf... by ilaksh on Sunday October 30, 2022 @03:28AM (#33392036)
Because that's a ludicrous amount of code for almost anything and Twitter has a relatively limited scope.