Once I got past the basic Hello World beginner applications, I quickly began to realize the shortcomings of variables, especially with the Mad Libs (http://en.wikipedia.org/wiki/Mad_Libs) style applications that I was starting to write. These applications requested that the user enter in numerous strings and I was creating a separate variable for each input field that the user entered. Having all of these separate variables quickly became very cumbersome. I remember talking to a friend about this and he asked me why I was not using arrays. At the time, I was not familiar with arrays, so I asked him to show me what they were. Even though he had a TI-99/4A and I had a Commodore Vic-20, the concept of arrays was the same. Even today, the arrays found in modern development languages have the same basic concepts as the arrays I used on my Commodore Vic-20. While it is definitely possible to create a useful application without using collections...
Mastering Swift
By :
Mastering Swift
By:
Overview of this book
Table of Contents (22 chapters)
Mastering Swift
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Taking the First Steps with Swift
Learning about Variables, Constants, Strings, and Operators
Using Collections and Cocoa Data Types
Control Flow and Functions
Classes and Structures
Working with XML and JSON Data
Custom Subscripting
Using Optional Type and Optional Chaining
Working with Generics
Working with Closures
Using Mix and Match
Concurrency and Parallelism in Swift
Swift Formatting and Style Guide
Network Development with Swift
Adopting Design Patterns in Swift
Index
Customer Reviews