1. 充分利用各种库 (Leverage Libraries)
2.拥抱泛型 (Embrace Generics)
3.必要时考虑使用协议 (Consider Protocols)
4.活用函数式编程 (Live Functionally)
5.避免使用全局函数 (Avoid Global Functions)
6.别忘了编写测试以及文档 (Think Tests and Documents)
7.使用良好的 Swift 语法规范 (Prefer Good Swiftsmanship)
网友评论