Skip to content

Latest commit

 

History

History
54 lines (31 loc) · 1.66 KB

README.md

File metadata and controls

54 lines (31 loc) · 1.66 KB

scala-samples

Preface

Sometimes we have to read some articles, forums, blogs to understand the thing.

But if we want just remind ourselves something we already knew, then is better just look at code sample. You could easily change it and play with it and see what's going on.

In this case "the thing" is: q

Scala Language (lang folder) and its satellites technologies, such as ScalaJS, Apache Spark, Akka and more.

There are samples of these in form of code that explains how to use it all.

This code is supposed to be isolated as much as possible - like if we wish to explain/remember one feature of Scala then we are not going to use 5 more extra features for that (which might not be gotten yet by a reader of this code).

Each example has no more than 100 lines of code. Also there is tagging is used in order to show to the reader what feature is involved for particular example. Like #feature-1 #feature-3.

HOW TO INSTALL & RUN

Make sure your build properties set the same sbt version as your global sbt version you use to build this project. see: build.properties (especially if run from console

sbt & nodejs (to work with ScalaJS samples) should be installed

NOTE: as SBT project, the project/Build.scala defines the dependencies and sub-projects. So, to build run a particular project, say ScalaJS:

Start sbt-console:

sbt

Switch to that project, for example:

project ScalaJS

Run:

run

-- Spec: http://www.scala-lang.org/files/archive/spec/2.11/

NOTE: after 12 years of this project.

Even with GPT, it still makes sense to have this project, since it gives you a chance to play with Scala.