Why is it so difficult to copy source code that is not “open source”?

874 views

It’s been in my mind if we are using the software/program or even hardware of a tech company, we can play around, install-unsinstall and more. Then how is it so difficult for someone to “unhide” the source code that the device uses? Technically the code is in the device somewhere hidden in it, so it’s there, but still, it’s almost impossible to obtain the source code. How do they achieve this so no one copies their code?

In: 366

42 Answers

Anonymous 0 Comments

The biggest reason why you cannot get source code from a binary file is that the compiler will remove everything that is unnecessary for the computer to run the program. This includes everything that makes it easier for a programmer to understand what the code does.

Let’s take this one line of code: `totalPixels = resolutionX * resolutionY`

The names of the variables? They are unnecessary for the computer to run, so instead it would look like this: `$a = $b + $c`

So when you try to get the source code again, you no longer have the information what the variables were called. The information that you wanted to get the total number of Pixels is lost.

You are viewing 1 out of 42 answers, click here to view all answers.