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

  • Learn Scala Programming
  • Slava Schmidt
  • 298字
  • 2021-06-10 19:35:37

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.

主站蜘蛛池模板: 松滋市| 延津县| 马公市| 龙海市| 泗阳县| 大庆市| 娱乐| 滦南县| 皮山县| 双鸭山市| 奈曼旗| 疏附县| 永川市| 宜都市| 厦门市| 陕西省| 伊川县| 区。| 连城县| 平利县| 巴林左旗| 文山县| 迭部县| 关岭| 安丘市| 鄂州市| 长宁区| 海丰县| 曲靖市| 连平县| 太和县| 博乐市| 威海市| 罗平县| 宁远县| 云浮市| 武陟县| 海阳市| 福清市| 江源县| 五大连池市|