Coding has many layers to it. In order to explain some of the layers of coding I built a small game. The first layer of coding is language, the language is what we type that the compiler can turn into ones and zeros that the computer can read. For example there is an online compiler on the khan academy website that turns the code language you type into computer commands and then executes them to the screen section next to the editor. My game uses the khan academy compiler in an obvious way, it is what is running my program. Some examples of coding language would be variables if statements for and while loops, these all remain almost the same throughout all compilers/languages.
It is because of the next layer of coding that I can’t embed my code into this weebly website. The next layer of code is the library, this is basicly a ton of pre-written functions that allow the writer or editor of the code to sort of abbreviate when coding. An example would be like ‘ellipse’, even though you did not write that function it is a function that is prewritten in the khan academy library. This library can only be accessed through the khan academy code editor. There are other parts to the khan academy library like ‘mouseX’, ‘mouseY’, or even ‘rect’.
The next layer of coding is the program, an example of a program would be my Galaga game. There are millions of programs in the world from apps to Microsoft and they can be used to do just about anything from calculators to simulators. Most things you do on computers are programs.
The next layer of coding is functions, other than specific lines of code functions are the smallest division of coding. Programs are made up of functions, there are many different functions out there an example would be the ‘draw function’ or any function you make to call later.