官术网_书友最值得收藏!

Preface

Today's Scala is quite different from its earlier versions.

The second version of the language is more than twelve years old, and underwent multiple changes related to supported features and library implementation. Many features then considered crucial, such as support for XML literals, Swing, and Actors, were moved from the language core to the external libraries or replaced by open source alternatives. Another functionality that makes Scala the programming language as we know it today were added directly, or by including yet another open source library in the distribution. The most notable example is adopting Akka in version 2.10.

Scala 2.13, with its focus on modularizing standard libraries and simplifying collections, entails a further change. The changes, however, do not only affect the technical side of Scala. Years of using it to solve real problems have helped us to collect more knowledge about structuring functional programs and using object-oriented features in new ways to our advantage. The same way as it was customary to use earlier versions of Scala as "Java without semicolons," it is now routine to build programs using monad transformers and type-level programming techniques.

This book addresses both technical and architectural changes by providing a comprehensive guide to the redesigned standard library and collections, as well as covering type systems and first-level support for functions in depth. It discusses implicits as a primary mechanism for building type classes and looks at different ways of testing Scala code. It covers in detail abstract building blocks used in functional programming, affording sufficient knowledge to pick up and use any existing functional programming library out there. It explores reactive programming by covering the Akka framework and reactive streams. Finally, it talks about microservices and how to implement them with Scala and the Lagom framework.

主站蜘蛛池模板: 临海市| 栾川县| 高雄市| 临江市| 威远县| 汕尾市| 鹤峰县| 禹城市| 措美县| 老河口市| 新泰市| 吉安市| 永和县| 伊宁县| 兴宁市| 海宁市| 柞水县| 河池市| 怀来县| 上思县| 定兴县| 梅州市| 永年县| 荃湾区| 潜江市| 时尚| 张家界市| 河曲县| 衡南县| 澎湖县| 香港| 曲水县| 丹阳市| 内黄县| 彭泽县| 无棣县| 华容县| 凭祥市| 舟山市| 高青县| 郎溪县|