News for hackers. Stuff that matters.
Re:EA got hacked and games source code leaked including new ... by ryanjshaw on Friday June 11, 2021 @04:53AM (#27470847)
Wow: "Source code is a version of computer software which is usually much easier to read and understand than the end version in a finished product, and could be used to reverse engineer parts of the product."
Re:EA got hacked and games source code leaked including new ... by dlkf on Friday June 11, 2021 @05:55AM (#27471218)
I felt that this was well written. Do you have a better definition of source code that is:

- Accessible to the general public (it's a BBC article)

- One sentence long (you will lose readers if this becomes a cs101 lecture)

- Articulates why a source code leak matters

Re:EA got hacked and games source code leaked including new ... by scrps on Friday June 11, 2021 @06:28AM (#27471454)
I've always described source code to non-technical people as the recipe and ingredients, compiling as the baking, and the software as the bread loaf. Seems to land for most people
Re:EA got hacked and games source code leaked including new ... by Wowfunhappy on Friday June 11, 2021 @01:05PM (#27475847)
That's a fine way to put it, but it's not as relevant in the context of the BBC article, particularly focusing on why the leak matters.
Re:EA got hacked and games source code leaked including new ... by whateveracct on Friday June 11, 2021 @12:09PM (#27475130)
Source code is also the mixing & prep. Compiling is just the heat of the oven in the metaphor.
Re:EA got hacked and games source code leaked including new ... by jfrunyon on Friday June 11, 2021 @12:18PM (#27475223)
The mixing & prep already begin to change the substance of the ingredients, just like 'compiling' is in fact usually multiple steps which all change the substance (for example, preprocessor=cutting, compiler=mixing, assembler=baking, linker=cooling)
Re:EA got hacked and games source code leaked including new ... by mandeepj on Friday June 11, 2021 @03:22PM (#27477404)
> I've always described source code to non-technical people as the recipe and ingredients

Not bad. What would you say about saying - " a source code is a set of instructions for a computer to execute". That way, we can still keep the conversation (some what) technical.

Re:EA got hacked and games source code leaked including new ... by robtaylor on Friday June 11, 2021 @07:36AM (#27471912)
I love this - thank you.
Re:EA got hacked and games source code leaked including new ... by StavrosK on Friday June 11, 2021 @07:47AM (#27472013)
Ooh I like this one, thanks!
Re:EA got hacked and games source code leaked including new ... by heavenlyblue on Friday June 11, 2021 @08:32AM (#27472398)
What do you achieve with this explanation? This metaphor literally has zero predictive value.

For example, it may be quite hard to reverse-engineer a loaf of bread, but reading assembly is actually quite easy to understand what the program actually does.

Re:EA got hacked and games source code leaked including new ... by yoz-y on Friday June 11, 2021 @09:47AM (#27473259)
When you know the recipe for a bread you can make another one and maybe add or remove some ingredient. If you only have the loaf then indeed you can't reverse engineer the recipe unless you are a very experienced baker. Same with code.
Re:EA got hacked and games source code leaked including new ... by apocalyptic0n3 on Friday June 11, 2021 @10:54AM (#27474226)
Reading Assembly may not be difficult, but reverse engineering and figuring out what it is doing is. Same as with bread. Pulling a loaf of bread apart and seeing the individual grains and how the connect isn't difficult, figuring out the process for making it is.

If you're trying to explain to a non-technical person what source code is, the bread example from OP is actually a great analogy. It's simple, to the point, and almost everyone will know how bread is made. Is it oversimplified? Sure. But that's the entire point of trying to give a real brief overview to someone with no technical experience.

Re:EA got hacked and games source code leaked including new ... by wizzwizz4 on Friday June 11, 2021 @12:24PM (#27475309)
The only difference is that we have the equivalent of molecular nanoassemblers for code, but not for bread.
Re:EA got hacked and games source code leaked including new ... by apocalyptic0n3 on Friday June 11, 2021 @01:04PM (#27475825)
Which is true and fair. But as a method of describing a very technical thing to non-technical people, it seems like a useful tool. We're not trying to give them a CS degree here, just give them enough information to continue reading the article without being totally confused.
Re:EA got hacked and games source code leaked including new ... by nexuist on Friday June 11, 2021 @09:53AM (#27473334)
Reading assembly is not really easy, especially in the context of video games using proprietary GPU I/O, it might as well be obfuscated because there is no way you're figuring out how Frostbite handles bullet drop from a page of x86 instructions. Maybe if you're willing to spend years reverse engineering game engines, you can start to form patterns in your head, but even then we're talking about niche specialties inside niche specialties. In no way is it accessible to an average software developer, unlike source code which most developers can read and understand after a few dozen hours.
Re:EA got hacked and games source code leaked including new ... by GuB-42 on Friday June 11, 2021 @06:02AM (#27471282)
I like the GPL definition.

> The “source code” for a work means the preferred form of the work for making modifications to it.

But the BBC article definition, while less precise, is more relevant to the subject.

Re:EA got hacked and games source code leaked including new ... by bayindirh on Friday June 11, 2021 @06:00AM (#27471267)
I don't think it's a bad definition but, it sounds a little bit inaccurate here and there.

Something in the lines of "Source code is the human readable version of the end product before it's packaged for computers, and it's much easier to read and understand. Also, the source code may allow reverse engineering of the product in question" would be more precise and similarly understandable IMHO.

Re:EA got hacked and games source code leaked including new ... by DonHopkins on Friday June 11, 2021 @09:31AM (#27473066)
"Human readable" presumes a lot -- remember we're talking EA here! ;)

https://news.ycombinator.com/item?id=27471488

Re:EA got hacked and games source code leaked including new ... by phist_mcgee on Friday June 11, 2021 @06:28AM (#27471449)
- packaged is a word that doesn't make sense unless you explain it. Do you mean putting the end product in a box?

- I would say even that reverse engineering, as mentioned, is not something the layman understands.

Re:EA got hacked and games source code leaked including new ... by kevincox on Friday June 11, 2021 @07:29AM (#27471864)
> packaged is a word that doesn't make sense unless you explain it. Do you mean putting the end product in a box?

I mean yes. It isn't that long ago that software was sold in boxes. So the packaging analogy is probably within reach of most people.

But maybe "released" or similar would be more widely understood.

Re:EA got hacked and games source code leaked including new ... by amarant on Friday June 11, 2021 @06:49AM (#27471596)
Yeah i also reacted to the reverse engineering part. But mostly that if you have the original source code, can you really call it reverse engineering?

Other than that the article was fine IMO

Re:EA got hacked and games source code leaked including new ... by lewispollard on Friday June 11, 2021 @08:11AM (#27472220)
I also thought that was funny wording, but I guess if you only have partial source code of a program, it can help to reverse engineer the full program (as you'll have some access to symbol names, structures, patterns etc)
Re:EA got hacked and games source code leaked including new ... by slowmovintarget on Friday June 11, 2021 @12:52PM (#27475686)
"Source code is like the Lego instruction booklet. If the computer follows the instructions, it gets a nice rocket ship to play with."

(This is what I used for my child.)

Re:EA got hacked and games source code leaked including new ... by designium on Friday June 11, 2021 @11:56AM (#27474965)
I agree that is well written.

You can open the binary file in a text editor and it will be much harder to actually read it. Next best solution is to use a HEX editor but having the source code will make it much easier to understand.

Re:EA got hacked and games source code leaked including new ... by flatiron on Friday June 11, 2021 @12:47PM (#27475625)
Now a days a lot of games you can’t even do that. They run the games in a vm so crackers and hackers can’t mod it.
Re:EA got hacked and games source code leaked including new ... by FridayoLeary on Friday June 11, 2021 @12:44PM (#27475578)
I think the phrase "source code" is basically self- explanatory.
Re:EA got hacked and games source code leaked including new ... by flatiron on Friday June 11, 2021 @12:46PM (#27475605)
To this audience yes. My wife a 38 year old college grad in law school has no clue what source code is and she’s married to a computer programmer.
Re:EA got hacked and games source code leaked including new ... by mulander on Friday June 11, 2021 @01:14PM (#27475981)
I would say that "source code is the blueprint of a computer program". If you look at the wikipedia entry:

> A blueprint is a reproduction of a technical drawing or engineering drawing [...] allowed rapid and accurate production of an unlimited number of copies.

and even if no-one reads the definition, the term is in common use. Spies stealing blueprints of weapons in movies / real-life being an immediate example.

Re:EA got hacked and games source code leaked including new ... by tshaddox on Friday June 11, 2021 @01:28PM (#27476128)
Yeah, I think that “blueprint” or “plans” works pretty well, especially if you think about it like the plans for a weapon (say, an advanced airplane) that one country wants to keep a secret so that other countries can’t figure out how to build the same weapon. The other countries will be able to see the airplane, they may even get their hands on one of them, but you definitely don’t want them to get their hands on the plans.
Re:EA got hacked and games source code leaked including new ... by kenjackson on Friday June 11, 2021 @02:01PM (#27476561)
I'm not sure I like the definition given. It makes it sound like it is an alternative version of the program that is often easier to read.

I think the key element of source code is that this is what is written and read by programmers -- it is akin to the secret recipe for Coke.

Re:EA got hacked and games source code leaked including new ... by aurbano on Friday June 11, 2021 @05:13AM (#27470951)
> usually much easier to read and understand

They would be doing something seriously wrong if that wasn't always the case haha

Re:EA got hacked and games source code leaked including new ... by ejolto on Friday June 11, 2021 @05:17AM (#27470979)
Maybe EA writes their games in brainfuck.
Re:EA got hacked and games source code leaked including new ... by Retr0spectrum on Friday June 11, 2021 @07:32AM (#27471888)
Codebases with high levels of abstraction and metaprogramming are often easier to understand in IDA/Ghidra, if your goal is to understand how a specific part of the program works.
Re:EA got hacked and games source code leaked including new ... by meowface on Friday June 11, 2021 @09:53AM (#27473345)
If a (non-malware) application is easier to understand in IDA than from its source code, something has gone horribly wrong.
Re:EA got hacked and games source code leaked including new ... by Retr0spectrum on Friday June 11, 2021 @01:08PM (#27475893)
Going horribly wrong is somewhat typical for large software projects.
Re:EA got hacked and games source code leaked including new ... by dkdbejwi383 on Friday June 11, 2021 @11:02AM (#27474330)
Game programming in particular is often full of interesting hacks and difficult to read code, because in game programming performance trumps all else.
Re:EA got hacked and games source code leaked including new ... by meowface on Friday June 11, 2021 @11:05AM (#27474360)
Sure, I understand that. But I imagine the IDA views would still be even more difficult to read.
Re:EA got hacked and games source code leaked including new ... by odiroot on Friday June 11, 2021 @05:28AM (#27471042)
Remember the golden days of Perl?
Re:EA got hacked and games source code leaked including new ... by xarope on Friday June 11, 2021 @06:13AM (#27471348)
I remember in ye-olde days going back to modify my perl code from 2 days ago and scratching my head...

So yes, never forget...!

Re:EA got hacked and games source code leaked including new ... by dev_tty01 on Friday June 11, 2021 @10:54AM (#27474221)
This. And 2 days ago it seemed so obvious that there was no reason to leave any bread crumbs.
Re:EA got hacked and games source code leaked including new ... by koheripbal on Friday June 11, 2021 @08:24AM (#27472338)
I downvote comments like this, not because I disagree with them, but because they digress the conversation from what I think is more important - the hack itself.

Hope that's ok.

Re:EA got hacked and games source code leaked including new ... by rchaud on Friday June 11, 2021 @11:10AM (#27474430)
It's a cultural quirk of HN to go into linguistic hair-splitting mode when it comes cybersecurity incidents as described by a media outlet whose audience is the general public.

All I can say is thank you to danG for implementing expand/collapse on comment threads so you can quickly move on to comments discussing the topic itself.

Re:EA got hacked and games source code leaked including new ... by bayindirh on Friday June 11, 2021 @05:14AM (#27470954)
Oh really? Didn't know that! Wish we had this source code thingy available for the critical programs that we use everyday, so I can look to them and understand how they work.
Re:EA got hacked and games source code leaked including new ... by SilasX on Friday June 11, 2021 @12:06PM (#27475090)
I'm sorry, what's the objection here? Source code is better for understanding how a program works in a big-picture sense, compared to the binary. This sentence conveys that in a way that a lay audience can understand. What's the problem?
Re:EA got hacked and games source code leaked including new ... by bayindirh on Monday June 14, 2021 @04:28AM (#27500490)
It was just a light hearted take on the wording of the definition, combined with a slight irony that we indeed have some critical stuff open sourced with pretty neat (read xGPL) licenses, which was unimaginable ~20 years ago.

Maybe it's an outdated type of humor, but I didn't see a reason to stop myself. While this is HN, we can use some old Slashdot style now and then IMHO.

Re:EA got hacked and games source code leaked including new ... by scollet on Friday June 11, 2021 @10:15AM (#27473648)
One day, only the machines will understand.
Re:EA got hacked and games source code leaked including new ... by chtitux on Friday June 11, 2021 @06:10AM (#27471328)
So where is the source code of this Perl script ?
Re:EA got hacked and games source code leaked including new ... by bserge on Friday June 11, 2021 @06:22AM (#27471403)
Yeah, EA source code is probably much easier to understand than their end products.
Re:EA got hacked and games source code leaked including new ... by acallaghan on Friday June 11, 2021 @12:04PM (#27475071)
All the BBC articles are meant for everyone to understand, they are not aimed at engineers, or CS grads (or even graduates of any kind, for that matter).

Did you really need to read what source code was again from the BBC? If you know already, great - but if you don't, why do you need to know what a compiler is?

It's similar to their general coverage of the covid vaccine - does everyone that reads an article about the vaccine really need to know the scientific debate, context, cohort data, vaccine action detail? Or just that the vaccine works & is safe?

Re:EA got hacked and games source code leaked including new ... by scrps on Friday June 11, 2021 @06:27AM (#27471440)
I've always described source code to non-technical people as the recipe and ingredients, compiling as the baking, and the software as the bread loaf. Seems to land for most people.
Re:EA got hacked and games source code leaked including new ... by tus89 on Friday June 11, 2021 @12:34PM (#27475425)
I feel the "usually" might be ironic humor.
Re:EA got hacked and games source code leaked including new ... by NmAmDa on Friday June 11, 2021 @05:17AM (#27470984)
isn't that what we call "well documented code following best coding practices" in our world ?
Re:EA got hacked and games source code leaked including new ... by kizer on Friday June 11, 2021 @11:02AM (#27474323)
I know, right. They tried their best.