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

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.

主站蜘蛛池模板: 安丘市| 兴隆县| 廉江市| 静乐县| 黄浦区| 杭州市| 鄂伦春自治旗| 平阴县| 曲阜市| 辉县市| 湖南省| 宁化县| 西乌珠穆沁旗| 阳城县| 宣武区| 新密市| 洛隆县| 宾阳县| 资溪县| 怀安县| 威海市| 色达县| 怀宁县| 鄯善县| 加查县| 延寿县| 筠连县| 南丰县| 米易县| 循化| 廉江市| 合阳县| 岱山县| 和平区| 古田县| 太康县| 留坝县| 弥渡县| 甘谷县| 九龙城区| 和林格尔县|