COMPSCI 220 Programming Methodology

Week 02 Syllabus: Scala, Version Control, Documentation, and Testing

Overview

This week will provide additional coverage of the Scala programming language. In particular, we will look at classes, objects, packages, and inheritance in Scala. In addition, we will be investigating version control with Git, documentation with Scaladoc, and testing with ScalaTest. We will highlight these important topics, however, you are expected to follow up with the reading to gain complete understanding and practice programming in Scala, Git, etc. as you read.

Tasks

  1. Please attempt the following exercises in Scala for the Impatient. You do not need to submit anything, however, we assume that you have reviewed these exercises. To firm up your understanding and use of IntelliJ we recommend that you create a new Scala project and try them out!

    1. Chapter 5, Exercises 7, 8, and 10 (page 63)
    2. Chapter 6, Exercises 4 and 5 (page 71)
    3. Chapter 7, Exercises 3, 5, and 9 (pages 81 - 82)
    4. Chapter 8, Exercises 4, 7, and 10 (page 97)

Reading

Resources