r/eli5_programming • u/timbo10184 • Mar 10 '24
Source code
I enjoy watching development documentaries on YouTube for games, but there is one thing I'm not really clear on. When games are pressed onto disc they are obviously lines of code to tell the processors what to do. Why do developers have such a hard time remaking games when the source code is lost? I know things can be "reverse engineered" but I'm not really clear on how that works either.
9
Upvotes
4
u/omniuni Developer Mar 11 '24
The code for a program is in a language kind of like English, but that's not what computers understand. The code is run through a software called a compiler that makes the code into computer language. Computer language doesn't look anything like what you or I would understand. Everything is in a different order, called different names, and done in a different way. Imagine trying to understand a passage from your favorite book, but every word is represented by a number in an index, and the chapters are sorted with the nouns first and adjectives last. A computer can make sense of compiled code, but for you, it's really hard.
2
u/iamfromtwitter Mar 11 '24
which yt channels are you watching?
5
u/kush-js Apr 12 '24
Echoing what /u/omniuni said but a slightly different analogy:
Think of source code as a language programmers can understand, like English
When it’s compiled, it’s translated into another language, but one computers can understand, this is represented as binary, 1’s and 0’s, think of this as some other language like Russian for example
The computer stores the game on the disc in the Russian language it understands (binary)
Now when the English (source code) version is lost, they have the Russian (binary) version, but it’s extremely difficult to translate back into readable source code
1
u/shinku443 Mar 11 '24
Games are very complex, theyre millions of lines of code, with different uses for different areas (rendering what's on screen, managing network usage if it's online, inventory, states, NPCs, etc.) just imagine having to rewrite the Bible with just having pictures. That's basically what rewriting source code from scratch would be. You have an idea but then you still gotta end up doing all the legwork
1
u/Mission_Library_7034 Mar 15 '24
Hii everyone
I am a bit confused about different full stack developer courses, could you help me with the best full stack developer course which is value for money ?