© Wallace Wang 2017

Wallace Wang, macOS Programming for Absolute Beginners, 10.1007/978-1-4842-2662-9_5

5. Learning Swift with Playgrounds

Wallace Wang

(1)San Diego, California, USA

To write any program, you need to choose a programming language. A programming language lets you define commands for the computer to follow. There’s no one “best” programming language because every programming language is meant to solve a specific problem. This means that a certain programming language may be great at solving certain types of problems, but horrible at solving other types of programs.

With most programming languages, there’s a tradeoff between ease of use and efficiency. For example, the BASIC programming language is meant to be easy to learn and use, ...

Get macOS Programming for Absolute Beginners: Developing Apps Using Swift and Xcode now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.