Therefore, if this is your first exposure to programming, I feel that you would get more out of the course if you already have a general understanding of basic programming concepts such as declaring variables, understanding data types, programming syntax, how to write methods and functions, etc. If this is you and you need to get more experience with programming prior to this course, I suggest starting with an introduction to a programming language such as Up and Running with Java, which is here in our library, then come back to this Scala first look.
To view Scala, we have a several options. There is a Scala IDE, a Scala build tool called sbt, and Scala is integrated with several popular integrated development environments or IDEs. One of the powerful features of Scala for beginning developers is the ability to run it interactively and what we call a REPL session; R-E-P-L which stands for read, evaluate, print, loop; this allows us to get used to the syntax and the interactive environment, which provides instant feedback on syntax errors and results of our expressions.
A general knowledge of installing software and an understanding of file and photo structure on the computer is always a plus, but not necessary. In this first look, we will dive quickly into the Scala basics; as you will see, there's a lot of overlap with Java; this course consists of programming examples using the interactive Scala Environment to help you get started with this new language. It is recommended that you plan to follow alone at your own pace, frequently stopping to try some of the new code introduced in this course.
- Installing Scala
- Integrating with IDEs
- Creating variables
- Using special functions
- Basic types and operations
- Tuples, sets, maps, arrays, and lists
- Classes, fields, and methods
- Singleton objects