|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/learn-by-example-scala/
课程评论:没有评论
课程名称:通过示例学习:Scala 课程概述:本课程通过65个示例,让您将Scala这位新兴语言变成您可靠的朋友。Scala因其在大数据应用中的流行而被认为很酷,同时它比Java更为复杂和优雅。然而,Java是一位稳定可靠的朋友,是一门可以依赖且能充分表达自我的语言。本课程的65个示例将帮助您像信任Java一样信任Scala。每个示例都是自成一体的,附有源代码,涵盖特定的Scala用例。示例简洁但不简单。 课程内容包括: 1. 大思想:在学习如何使用Scala之前,我们应先了解为什么需要Scala,即使Java已经很出色。 2. 关键细节:在Scala中,模式匹配、if表达式、for循环和yield的使用等与Java有所不同。这些区别非常重要,课程将对此进行深入探讨。 3. 一等函数:这是Scala在功能编程支持方面的显著新特性。 4. 集合:Scala中的列表、选项以及fold/reduce/shift等操作,这些都与传统的面向对象语言有显著不同,我们将对此进行详细讲解。 5. 类、伴生对象、特征、自类型和依赖注入:这些是Scala提供的面向对象支持的方式,其中一些概念与Java相似,我们将快速浏览,而另一些则很不同,我们将深入讨论。 总之,通过这些示例,您将能够理解Scala的独特之处,并有效应用于实际问题。
These 65 examples will make this cool-new-kid-on-the-block your steady, reliable friend Let's parse that. Scala is cool because its all the rage for big data applications, and because it manages to be more sophisticated and elegant than Java. That said, Java is a steady, reliable friend - a language you can depend upon, and in which you can express yourself. These 65 examples will help you trust Scala the way you trust Java. Each is self-contained, has its source code attached, and gets across a specific Scala use-case. Each example is simple, but not simplistic. What's Included: The Big Ideas: Before we get to the how, we better understand the why - this course will help clarify why we even need Scala when Java serves us so well The Little Details That Matter: Pattern Matching, If Expressions, For Loops & Yield: Java has if-statements, while Scala has if-expressions. Differences like these matter, this course will cover them. First Class Functions are perhaps the most dramatically new feature of Scala - the foundation of functional programming support. Collections - Lists, Options, the Details of fold/reduce/shift in Scala are yet another bit of the language that differs significantly from other traditional object-oriented languages. We will spend a lot of time on these topics too. Classes, Companion Objects, Traits, Self Types and Dependency Injection are Scala's way of providing Object Oriented support. Some of these concepts are similar to Java - those we will skim over. Others are quite different - we will be sure to cover these in detail.