- 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.
- ExtGWT Rich Internet Application Cookbook
- Python自動化運維快速入門(第2版)
- Wireshark Network Security
- Serverless架構(gòu)
- JAVA程序設(shè)計實驗教程
- Mastering JavaScript High Performance
- Nginx實戰(zhàn):基于Lua語言的配置、開發(fā)與架構(gòu)詳解
- PHP從入門到精通(第4版)(軟件開發(fā)視頻大講堂)
- SQL Server實用教程(SQL Server 2008版)
- AutoCAD 2009實訓(xùn)指導(dǎo)
- Python Data Science Cookbook
- Penetration Testing with the Bash shell
- Photoshop智能手機APP界面設(shè)計
- HTML5移動Web開發(fā)
- Java自然語言處理(原書第2版)