Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
So, how does programming work? In programming, there are three steps. Writing the code, compiling the code, and running the code. Writing code involves creating computer commands in a human readable language. While there are a lot of code specific things in here, like braces, and semi colons and equal signs. You'll also notice a lot of English words. Void, view did load, super, value string and mode.
So using a human readable language, we're able to write commands for a computer. The next step is to compile the code. In Xcode, compiling is called building. Building translates your human-readable code into a language that a computer can understand. In addition, compiling creates an app file known as an executable. If this process sounds complicated, rest assured knowing that all you have to do is click a button for this to happen. In compiling the code, you could also designate some lines to be ignored.
These lines are called comments, and comments are prefaced with two forward slashes. You can use comments to temporarily enable or disable a line of code, or to write notes to yourself or other developers you may be working with. Finally, you run the code. When you run the code, the compiled app or executable file is opened up and launched. Code runs sequentially, usually immediately. What that means is that your code runs from top to bottom, in order.
And if there's no visible space in between one line of code running and another line of code running. So usually all the commands are executed, and then the visual interface is updated. And just like building the code this is all done automatically with the press of a button. When we press the Run button in X code, all of these things happen at once. The code was translated into a machine readable language, or built and then ran in a ios simulator.
Get unlimited access to all courses for just $25/month.Become a member
61 Video lessons · 96746 Viewers
56 Video lessons · 110454 Viewers
71 Video lessons · 79283 Viewers
131 Video lessons · 38028 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.