- Learning Swift
- Andrew J Wagner
- 165字
- 2021-07-16 13:54:09
Chapter 3. One Piece at a Time – Types, Scopes, and Projects
In Chapter 2, Building Blocks – Variables, Collections, and Flow Control, we developed a very simple program that helped us organize a party. Even though we separated parts of the code in a logical way, everything was written in a single file and our functions were all lumped together. As projects grow in complexity, this way of organizing code is not sustainable. Just as we use functions to separate out logical components of our code, at scale, we also need to be able to separate out logical components of our functions and data. To do this, we can define code in different files and we can also create our own types that contain custom data and functionality. These types are commonly referred to as objects, as a part of the programming technique called object-oriented programming. In this chapter, we will cover:
- Structs
- Classes and inheritance
- Enumerations
- Projects
- Extensions
- Scope
- Access control
- Facebook Application Development with Graph API Cookbook
- 程序設計與實踐(VB.NET)
- Practical Internet of Things Security
- Python網絡爬蟲從入門到實踐(第2版)
- Julia Cookbook
- Scala編程實戰(原書第2版)
- Building Serverless Applications with Python
- 數據結構與算法分析(C++語言版)
- Mastering Backbone.js
- R數據科學實戰:工具詳解與案例分析
- 實戰Java高并發程序設計(第2版)
- Instant Pygame for Python Game Development How-to
- Koa與Node.js開發實戰
- 輕松學Scratch 3.0 少兒編程(全彩)
- 趣學數據結構