# 如何理解设计模式？

- Link: https://www.ixiqin.com/2019/02/20/how-to-understand-design-patterns/
- Published: 2019-02-20T19:06:49+08:00
- Author: 白宦成

我一个朋友，一直想问我，有没有什么书，可以告诉他到底应该怎么写代码？

我一直也很迷惑，因为我自己的写代码的过程并不是通过某一本书而来的，而是通过不断的
编程实现的。因此，我不知道到底什么才是所谓的**编程思想。**

直到今天我在 Lynda 上看一个[视频教程](https://www.lynda.com/Swift-tutorials/iOS-12-Development-Essential-Training-1-Fundamentals-UI-Architecture/751326-2.html)，
我才明白，设计模式就是编程思想！

掌握了设计模式，你就明白了代码是怎么写的了。剩下的，不过是最基础的语法问题罢了。
