Skip to content

inner-product/essential-scala-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Essential Scala Code

This repository contains exercises and solutions for Inner Product's Essential Scala training course.

If you want to discuss the content or exercises with the authors, drop us an email.

Using the Source Code

This repository contains two branches: one for exercises and one for solutions. The directory structure is the same in each branch.

You will need to have Git, the JDK, and an internet connection to run the exercises. All other dependencies are either included with the repo or downloaded on demand during compilation.

Notes on Editors and IDEs

If you don't have a particular preference for a Scala editor or IDE, we recommend you do the exercises for this course using the Visual Studio Code editor with the Metals and Scala syntax extensions.

If you want to use IntelliJ we suggest installing it via the Scala Bundle, which includes all the plugins you need for Scala development.

Getting Started on Linux or OS X

To get started:

  1. To run these exercises, you need a Java 8 compatible JDK on your machine. If you don't have this already, you can download and install one from OpenJDK.

  2. Clone this repository to a directory on your hard drive, e.g. ~/essential-scala-code:

    bash$ git clone https://github.com/inner-product/essential-scala-code.git
    
  3. Change to the root directory in the repository:

    bash$ cd essential-scala-code
    
  4. Run the sbt.sh script. You may have to wait while SBT downloads various dependencies:

    bash$ ./sbt.sh
    # Lots of output here...
    # The first run will take a while...
    
    >
    
  5. Type runMain intro.HelloWorld at the SBT prompt. You may have to wait while SBT downloads various dependencies.

  6. If you see the message "Hello world!", you're ready to go!

If you have any problems getting started, get in touch via email.

Getting Started on Windows

You will need to have installed Git and the JDK (we recommend OpenJDK). Complete the following steps outlined in Chapter 1 in the section entitled "Setting up SBT for This Book":

  1. To run these exercises, you need a Java 8 compatible JDK on your machine. If you don't have this already, you can download and install one from OpenJDK.

  2. Clone this repository to a directory on your hard drive, e.g. C:\essential-scala-code:

    C:\> git clone https://github.com/inner-product/essential-scala-code.git ↩
                     C:\essential-scala-code
    
  3. Change to the root directory in the repository:

    C:\> cd\essential-scala-code
    
  4. Run the sbt.bat script. You may have to wait while SBT downloads various dependencies:

    C:\essential-scala-code> sbt
    # Lots of output here...
    # The first run will take a while...
    
    >
    
  5. Type runMain intro.HelloWorld at the SBT prompt. You may have to wait while SBT downloads various dependencies.

  6. If you see the message "Hello world!", you're ready to go!

If you have any problems getting started, get in touch via email.

About

Exercises for Inner Product's Essential Scala Course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages