First Day of iOS!
iOS is primarily written in Swift 2.0, the new standard programming language of Apple. Swift, like Java is very strongly-typed, meaning there are very little room for interpretations, as every single variable and function and returns must be explicitly stated what type these data will come in and out as. It was cool to write in an internal environment like Xcode as it reminds of jGrasp but much more appealing on the eyes. I spent the day finishing up the rest of the Intro to Swift chapter which is more or less algorithm problems to help us write in Swift.
By the end of the day, I went on to the Intermediate Swift chapter and learned about closures. Functions are closures with a name. Closures are bits of code that can be executed or invoked. They can be passed through as an argument as well as be used as a return. Now, I'm not gonna lie, the learning platform is not a great resource for closure as I instead read the Swift documentation on closures. We can consider closures as lambdas from Python and Javascript. Remember the underscore library? Closures are useful they are easily passable as arguments in higher-order functions (functions with more than one argument).
Anyways, uneventful first day. We'll see what tomorrow brings.
No comments:
Post a Comment