Giter VIP home page Giter VIP logo

sg-scala-labs's Introduction

Singapore Scala lab

This repository, intended for the Spring User Group Meetup on 28th Sep 2016, is an introductory lab to the scala language.

It is a patchwork of exercises taken from scala-labs and the Coursera course Functional Programming Principles in Scala.

Before starting the lab, make sure to setup your environment (section below) and optionally go through this Scala quick tour.

Environment Setup

  • First make sure a version of the JDK is installed. Preferably java 8, although Java 6 and 7 will work too with scala-2.11.x used in this lab.

    $ java -version
    java version "1.8.0_51"
    Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
    Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
    
  • Then install the latest version of SBT (stands for "Simple Build Tool") the de facto build tool for Scala applications. After adding the sbt command to your PATH, validate with the command line

    $ sbt about
    [info] Set current project to redmart (in build file:/Users/redmart/)
    [info] This is sbt 0.13.12
    ...
    
  • Finally Install a scala-compatible IDE, for example

  • Optionally, it is good to install Scala itself so you have access to its command-line REPL for experimenting

Start the lab

  • Clone this repo
$ git clone https://github.com/damien-neveu/sg-scala-labs.git
  • Navigate to the sg-scala-labs folder and compile the project

    • $ cd sg-scala-labs/
    • $ sbt clean compile
  • Open the project within your IDE

    • In IntelliJ : File -> Open -> /path/to/folder/sg-scala-labs -> Choose SBT -> Check Auto-Import only -> OK
  • Fix all exercises so their tests pass

    • $ sbt test

USeful Links

sg-scala-labs's People

Watchers

PHAM THE TRUNG avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.