Mastering macOS Programming
上QQ阅读APP看书,第一时间看更新

Summary

We have no need to be dogmatic about the concepts introduced in this chapter; we will use them à la carte as befits our needs. Think of this chapter as having sown the seeds of several concepts that you'll be using fluently later on; we will certainly revisit them again in this book.

Checking out this stuff elsewhere, in depth, is an extremely good idea. But do remember, whatever you might read, that there is no single best solution, style, or paradigm. Software development is a vast field, there's a lot of stuff out there, and it is entirely up to us to use it appropriately and skillfully.

In this chapter, you have learned the meaning of programming paradigms, the ways in which OOP differs from FP, some of the ways in which concepts from FP are applicable within an OOP context, and the importance of applying encapsulation consistently. Finally, you have also learned the rationale behind some of the coding strategies adhered to in this book.

The next chapter will introduce you to more advanced Swift programming topics, including many features of the language that have been mentioned in this chapter.