iphone 2016
Shodor > SUCCEED > Workshops > Archive > iphone 2016

Aaron began by reviewing some material from the preceding day. He made sure the students understood functions, their use, and the passing of arguments to a function. After a brief review, Aaron began introducing if statements. If statements take a condition and evaluate it. If the condition is true, the code inside the if statement will run. Without 'if' statements, programs would always perform the same operations no matter what. If statements allow the program to decide between different courses of action depending on user input. After talking about if statements, Aaron talked about while loops. A while loop is a loop that continuously runs as long as a given condition holds true on every iteration. Loops can help you write more efficient code because you don't need to repeat code that you want to run multiple times. You can simply wrap the code in a while loop and run it as long as you want. After talking about while loops, Aaron transitioned into the for loop, which is a more advanced version of the while loop. For loops allow you to set a counter variable that keeps track of the current iteration. This is especially useful when iterating over arrays. You can use the counter variable to access every element of an array in order. Near the end of the workshop, Aaron showed the students an example of a program that could be created using Objective C. The program was a hangman game. Aaron demonstrated how programming concepts actually come together to form a cohesive program. The text in the program was created with strings. To check if a guessed letter was in the word, the program had to loop through all of the letters in the word. Aaron made sure to highlight all of the prerequisites and dependencies before moving on so students have the building blocks to move on to more advanced topics. I think the students absorbed a lot of information today and Aaron was able to teach efficiently through the use of different learning tactics such as intuition and examples.