- Scala Functional Programming Patterns
- Atul S. Khot
- 130字
- 2021-07-30 09:44:24
Summary
We looked at three creational design patterns—Singleton, Factory method, and builder— specifically the rationale behind them and the Java implementations. We also learnt about a special singleton—Null
Object. We saw how Scala helps avoid null using Options.
We looked at multiple Scala idioms with respect to Options and saw how Options as a container theme helps. We also saw the special apply
method and learned how this syntactic sugar sweetens the code. Finally we looked at builders—a design pattern for creating objects with many attributes. We also saw how Scala's case classes help us with the creation of objects having many attributes. Take a deep breath readers, grab a cup of your favorite hot beverage and settle down to read about recursion.
- DevOps:軟件架構師行動指南
- SpringMVC+MyBatis快速開發與項目實戰
- Building a Game with Unity and Blender
- Xcode 7 Essentials(Second Edition)
- 微服務設計原理與架構
- 編程珠璣(續)
- Vue.js 3.0源碼解析(微課視頻版)
- Git高手之路
- C語言從入門到精通
- JSP程序設計實例教程(第2版)
- 編程改變生活:用Python提升你的能力(進階篇·微課視頻版)
- Learning Android Application Testing
- R的極客理想:量化投資篇
- Parallel Programming with Python
- Developer,Advocate!