- Learning Swift(Second Edition)
- Andrew J Wagner
- 284字
- 2021-07-16 12:33:06
Chapter 2. Building Blocks – Variables, Collections, and Flow Control
One of the coolest things about programming is the way that concepts build on each other. If you've never programmed anything before, even the most basic app can seem very complex. The reality is that, if you analyze everything going on in an app down to the ones and zeros flowing through the processor, it is incredibly complex. However, every aspect of using a computer is an abstraction. When you use an app, the complexity of the programming is being abstracted away for you. Learning to program is just going one level deeper in making a computer work for you.
As you learn the basic concepts behind programming, they will become second nature and this will free your mind to grasp even more complex concepts. When you first learn to read, sounding out each word is challenging. However, eventually, you reach a level where you glance at a word and you know the meaning instantaneously. This frees you up to start looking for deeper meaning from the text.
In this chapter, we will build up your knowledge of the building blocks of programming in Swift. Each of these building blocks is exciting on its own and they will become even more exciting as we start to see the possibilities they open up. No matter how complex programming might seem to you now, I guarantee that one day you will look back and marvel at how all of these concepts have become second nature.
In this chapter, we will cover:
- Core Swift types
- Swift's type system
- Printing to the console
- Controlling the flow of your program
- A comprehensive example of all concepts covered
- 物聯(lián)網(wǎng)標(biāo)準(zhǔn)化指南
- Modern JavaScript Web Development Cookbook
- SD-WAN架構(gòu)與技術(shù)(第2版)
- 無人機(jī)通信
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- C/C++串口通信:典型應(yīng)用實(shí)例編程實(shí)踐
- 物聯(lián)網(wǎng)長距離無線通信技術(shù)應(yīng)用與開發(fā)
- 新手易學(xué):新手學(xué)淘寶開店
- 網(wǎng)絡(luò)綜合布線(第2版)
- 現(xiàn)代通信系統(tǒng)(第5版)
- Selenium WebDriver 3 Practical Guide
- 華為HCIA-Datacom認(rèn)證指南
- 物聯(lián)網(wǎng)傳感器技術(shù)與應(yīng)用
- 互聯(lián)網(wǎng)視覺設(shè)計(jì)(全彩慕課版)
- Learning IoT with Particle Photon and Electron