r/programming • • Dec 05 '15

Microsoft Edge’s JavaScript engine to go open-source

https://blogs.windows.com/msedgedev/2015/12/05/open-source-chakra-core/
1.6k Upvotes

504 comments sorted by

View all comments

Show parent comments

12

u/speedisavirus Dec 06 '15 edited Dec 06 '15

Its incredibly mature, complex, and has tons of backwards compatibility. Think about everything it does out of the box and has for like a decade now. It's monumentally complex. Now, if they make a clean cut I bet its size would drop down to around 25 million.

The real wtf in all this is that the healthcare.gov site has 500,000,000 lines of code. No wonder why it was such a piece of shit. Whoever was in charge of that...well...should never run a project again.

9

u/[deleted] Dec 06 '15 edited Dec 06 '15

*500 Million lines of code for healthcare.gov according to the graph.

How the hell is that possible ?

19

u/tornato7 Dec 06 '15

I saw the code for healthcare.gov, I'll paste some of the it here:

Healthcare.giveHealthcare(citizens[0]);
Healthcare.giveHealthcare(citizens[1]);
Healthcare.giveHealthcare(citizens[2]);
...
Healthcare.giveHealthcare(citizens[297000000]);

Apparently they were getting paid per line of code.

10

u/Throwaway_Kiwi Dec 06 '15

....I seriously hope you're kidding.

2

u/cr42yh17m4n Dec 06 '15

Lol, the developers might have created a sub program to only do that.

2

u/[deleted] Dec 06 '15

I sincerely hope that is a joke.

1

u/immibis Dec 06 '15

The giveHealthcare method dispatches robotic surgeon drones*, right?

7

u/speedisavirus Dec 06 '15 edited Dec 06 '15

I know. I can't possibly comprehend how that is possible. They had to have hired an enormous amount of the most incompetent people on the planet for that to happen. Definitely a fuck ton of people to write 500,000,000 lines in that time period regardless of how shitty they were.

7

u/OMG_Ponies Dec 06 '15

welcome to government contracting.

7

u/[deleted] Dec 06 '15

Not to be that guy, but:

500,000 = 500 thousand
500,000,000 = 500 million

You keep writing 500,000. It's 500,000,000 ( 500 million ) lines of code, which I can't even fathom.

2

u/speedisavirus Dec 06 '15

I don't know why. 500,000 isn't that big of a project. I swear I was saying 500,000,000 in my head. Not sure why I wasn't typing it. Probably because I'm replying between breaks while working on a project.

1

u/j0hnGa1t Dec 06 '15

Easy: Just think 10 million lines of useful code and 490 million lines of auto generated IDE boilerplate getters and setters.

1

u/Thought_Ninja Dec 06 '15

I would argue that such a figure is highly improbable... Maybe if they're counting JSON objects or some other generated "code," but 500,000,000 simply doesn't make sense.

Source: web developer

-1

u/NewDark90 Dec 06 '15

Here, I can help you write healthcare.gov. Just a little Javascript magic:

for(var i = 0; i < 500000000; i++){
    console.log("var healthcareVariable" + i + " = " + i ";");
}
→ More replies (6)

3

u/dpgaspard Dec 06 '15

That whole project was stupid from the beginning. It's 50 state ran health-care systems, not 1 universal system. They should have made every state responsible for their site, not try to make a site that does everything, for groups it can't govern

1

u/jangxx Dec 06 '15

Wait, I thought this 500,000,000 loc was a joke. Are you telling me that this is an actual estimation?

1

u/speedisavirus Dec 06 '15

It doesn't sound like it is. Now, the question comes to whether they are counting the web components, the glue code, and the code of all the separately developed systems that they integrate with. I couldn't fathom how any web system could reach even a 5th of this side unless is was a complete shit system...which it was...so maybe it is true?

Slate says it is 500,000,000 as well. Apparently they thought 5,000,000 had to be rewritten. No idea how they even did it in that time.

http://www.slate.com/blogs/future_tense/2013/10/21/healthcare_gov_problems_why_5_million_lines_of_code_is_the_wrong_way_to.html

EDIT: sorry updated to match what I meant.

If the site really contains 500 million lines of code, they say, that’s a strong hint that the programmers involved are doing something wrong.

No shit, yo

1

u/jangxx Dec 06 '15

500,000,000 still sounds completely crazy. I mean with that many lines their codebase would be serveral gigabytes in size. I don't think it's possible for anyone to think that's okay. But what do I know.

0

u/speedisavirus Dec 06 '15

Oh I know but it would also explain why it was so incredibly dysfunctional. I can't help to think that someone has a decimal off by even one. At one off it is still tremendously over bloated and still not believable.

I can't help but wonder how much manpower was involved. If someone had the number of contractors hired for this it would be awesome. I agree with the slate article. If they were anywhere near this amount of code they were doing something really really really really wrong.

1

u/mickey_kneecaps Dec 06 '15

I simply don't believe that it is accurate.

1

u/speedisavirus Dec 06 '15

If it is I can't fathom how much it cost and how many extremely shitty developers were involved.