`
sakakokiya
  • 浏览: 491147 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Scala Basic

阅读更多
Running Scala
  • Discuss the usage of scala tool.
  • Explain how to compile for Scala with scalac and fsc.
  • Understand what the scala interpreter is and how to use it.
Control Structures Demonstrate comprehension of the built-in control structures
  • Write code using the basic control structures:
    • if expressions
    • while loops
    • for expressions
  • Be able to correctly handle exceptions with try expressions.
  • Display correct usage of match expressions.
  • Describe the variable scope.
  • Provide understanding of looping without break or continue.
Comments

Define comments inside a Scala code fragment, using // and /* */

Write basic ScalaDoc comments using /**

Classes and Objects This category specifically covers how to use classes and singleton objects.
  • Define and instantiate classes.
  • Declare variables and methods.
  • Demonstrate comprehension of the semicolon inference.
  • Be able to implement singleton objects.
  • Show how to create Scala applications using any singleton object with a main method.
Composition and Inheritance
  • Display the knowledge required to extend classes and how to invoke superclass constructors.
  • Show how to use abstract classes.
  • Demonstrate correct usage of override modifier when overriding methods and fields.
  • Display comprehension of polymorphism and dynamic binding.
Be able to define parametric fields. Functional Data Structures
  • Display comprehension about object's immutability.
  • Show how to use the basic data structures (available in scala package):
    • List
    • Tuple
    • Map
    • Set
  • Display correct usage of for-comprehensions and filters using them.
Functions and Closures
  • Show how to use functions through:
    • methods
    • local functions
    • first-class functions
    • function literals
  • Write code using the placeholder syntax.
  • Display comprehension of partially applied functions, aka, currying.
  • Display the knowledge required to use closures.
  • Define methods which use repeat parameters.
  • Demonstrate correct usage of tail recursion.
Traits and Self-type annotations
  • Be able to define traits.
  • Explain the distinctions between types of traits (Rich interfaces, Stackable modifications).
  • Display correct usage of self-type annotations.
Case Classes and Pattern Matching
  • Be able to define case classes.
  • Display correct usage of following kinds of patterns:
    • Wild-card patterns
    • Constant patterns
    • Variable patterns
    • Constructor patterns
    • Sequence patterns
    • Tuple patterns
    • Typed patterns
    • Show how to use pattern guards.
  • Demonstrate comprehension of the sealed classes.
  • Write code using the standard type named Option for optional values.
Implicit Conversions and Parameters
  • Write code using implicit conversions.
  • Display comprehension of rules for implicits usage:
    • Marking Rule
    • Non-Ambiguity Rule
    • One-at-a-time Rule
    • Explicits-First Rule
  • Define methods which use implicit parameters.
  • Demonstrate correct usage of views and view bounds.
分享到:
评论

相关推荐

    2018 Scala for Java Developers: A Practical Primer

    Tour Scala and learn the basic syntax, constructs, and how to use the REPLTranslate Java syntax that you already know into Scala Learn what Scala offers over and above JavaBecome familiar with ...

    scala-2.10.2

    scala.math - Basic math functions and additional numeric types. scala.sys - Interaction with other processes and the operating system. scala.util.matching - Pattern matching in text using regular ...

    Scala and Spark for Big Data Analytics.pdf

    starting point, we will discuss a brief introduction to Scala, such as the basic aspects of its history, purposes, and how to install Scala on Windows, Linux, and Mac OS. After that, the Scala web ...

    Functional Programming in Scala

    The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, you'll find concrete examples and exercises that open up the world of functional ...

    scala-basic2advanced

    scala-basic2advanced

    Scala and Spark for Big Data Analytics

    It then moves on to Spark to cover the basic abstractions using RDD and DataFrame. This will help you develop scalable and fault-tolerant streaming applications by analyzing structured and ...

    Scala.Functional.Programming.Patterns.178398

    If you have done Java programming before and have a basic knowledge of Scala and its syntax, then this book is an ideal choice to help you to understand the context, the traditional design pattern ...

    scala for the impatient

    Hands-on activities guide you through well-defined stages of competency, from basic to expert. Coverage includes * Getting started quickly with Scala's interpreter, syntax, tools, and unique idioms *...

    The Definitive Guide To Lift a scala based web framework

    This concise book is designed to provide a reference for every aspect of designing a Lift application, from basic pages to database access and advanced URL handling. We leverage Lift’s use of Maven ...

    Basic-SquerylRecord-User-Setup:Scala Lift simplefasttrack 用户注册登录示例

    使用 SquerylRecord 的用户认证授权这个 Scala/Lift 基本程序集示例项目演示了一个非常基本的 squeryl-record ORM/DSL 用户(身份验证/授权)设置,其中包含注册/登录/用户页面片段。 该示例还演示了在发布到数据库...

    basic-scala:实用的Scala基础知识

    基本标量实用的Scala基础知识

    scala-in-action_ZH_CN:《Scala in Action》中文翻译

    2.2.1 Basic types 2.2.2 Defining variables 2.2.3 Defining functions 2.3 Working with Array and List 2.4 Controlling flow with loops and ifs 2.5 For-comprehensions 2.6 Pattern matching 2.7

    scalac-plugin-basic

    发出BASIC的Scala编译器插件 如何为Scala编译器编写插件的示例。 此插件添加了一个阶段,该阶段遍历AST的选定部分,生成相应的BASIC代码并将其写入文件。 仅支持Scala / BASIC语法的一小部分。 用法 首先将插件...

    Mastering Play Framework for Scala(PACKT,2015)

    Starting off by building a basic application with minimal features, you get a detailed insight into handling data transactions and designing models in Play. Next, you venture into the concepts of ...

    tuplez:Scala元组组成

    Scala和Scala.js中的元组组成。 // tupleN + scalar, scalar + tupleN, tupleN + tupleM, up to Tuple22 " app.tulz " %%% " tuplez-full " % " 0.3.4 " // or // tupleN + scalar, scalar + tupleN, tupleN + ...

    java图书馆swing源码-m2eclipse-scala:m2eclipse-scale

    导入项目创建(使用lift-archetype-basic 2.0-scala280-SNAPSHOT) 变化 0.5.1 删除使用 Jobs 来更新类路径(修复 #35 & #36 ) 0.5.0 改进与 Scala-IDE 4.0 的 Scala 版本自动检测的兼容性 0.4.3 在功能中添加许可...

    scala-config:具有Shapeless的Scala,可加载例如INI类型的配置

    Scala配置 每个大型软件项目都有其共享的配置文件来控制设置,执行等。让我们考虑一下配置文件格式,该格式看上去很像标准PHP .ini文件,但有一些调整。 配置文件将如下所示: [common] basic_size_limit = ...

    sbtDockerPOC:通过sbt Docker构建各种Scala应用程序#SE

    通过Docker上方的sbt创建一个简单的Scala应用程序 快速开始 # BasicExample cd BasicExample sbt docker docker run -d --restart=always sbtdocker/basic-example # check docker ps -a docker logs -f # akka...

    scala-ddd-示例

    sbt new codelytv/scala-basic-skeleton.g8 (模板URL: : ) 项目名称:Scala Http Api 在Intellij中打开项目后,打开“ sbt shell”并运行“ t”命令以运行测试 输入到sbt控制台的命令 sbt 运行测试命令(在sbt...

Global site tag (gtag.js) - Google Analytics