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

Summary

Scala is expressive and rich with tools that help us to eliminate boilerplates. It allows us to concisely express the intention of programming. Functions help us reuse the common facilities, freeing us from coding them every time.

Pure functions are simpler to reason about, as there are lot less moving parts. We can think of them in terms of referential transparency. Impure functions are hard to reason with. We saw how making things immutable also helps in reducing these moving parts.

Idioms are what make us use a language effectively. This is true for programming languages. Scala is a feature-rich functional programming language. We got a bird's eye view of a few Scala features, such as recursion and functions.

Design patterns are a programmer's vocabulary. Scala gives us a fresh perspective of patterns, and we saw how the use of functions makes using design patterns so very easy in Scala.

We implemented the solution to a problem in Java and Scala. We saw how succinct and expressive the Scala code is compared to its Java counterpart.

We got our feet wet in the Scala land. Let's look at these features in detail and see how Scala makes programming cool and fun again. We will start with singleton and factories. Get, set, and go!

主站蜘蛛池模板: 昌乐县| 顺义区| 富裕县| 黔南| 汤阴县| 玛纳斯县| 兴山县| 奎屯市| 温州市| 庆云县| 电白县| 奇台县| 肇州县| 宣汉县| 娱乐| 河北区| 长海县| 肇庆市| 衡山县| 宜章县| 乐业县| 佛冈县| 莱芜市| 鞍山市| 绥滨县| 方正县| 甘南县| 诸暨市| 建昌县| 宁安市| 增城市| 朝阳县| 永顺县| 博客| 扶沟县| 蒙城县| 都江堰市| 镇平县| 阿鲁科尔沁旗| 茌平县| 磴口县|