Code Monkey home page Code Monkey logo

learning-scala's Introduction

Learning Scala

This is a project where I plan to aggregate small pieces of code to help communicate what I've learned while studying Scala.

Organization

I'm going to try to keep the project clean enough that the code is self-documenting. The project divides into three variants of code:

  • tests under src/test/scala

  • main methods under src/main/scala that print to the console upon execution

  • code that is instructive just in that it compiles (see src/main/scala/curryhoward.scala).

There are a few modules designed for reuse, but in general, I've tried to map complete discussions to single files so they read more like short articles.

However, this project is not a tutorial. It's not designed to teach any kind of cirruculum. It's just a assortment of things I found interesting and wrote up.

Using This Project

This project builds with Simple Build Tool (SBT), which is extremely powerful and for simple projects like this one pretty easy to use. The documentation for SBT much improved now, so see SBT's Getting Starting Guide for details on running the tool.

This project provides binaries and scripts to bootstrap SBT, so all you need installed on your system is a recent release of a Java runtime.

For Windows users run

$ .\sbt.cmd

or for Macintosh or GNU/Linux users run

$ ./sbt

which will download dependencies and launch into SBT's interactive shell. At the shell's prompt you can issue commands to work with the code. Some useful commands are

  • compile: to validate that everything compiles
  • test: to run tests under src/test/scala
  • run: to run main methods under src/main/scala
  • doc: to generate Scaladocs for code under src/main/scala
  • test:doc: to generate Scaladocs for code under src/test/scala
  • console: to play around with the code in a Scala REPL
  • exit: to exit SBT

But really, you shouldn't need all this fanciness to follow along. Just reading the code will probably suffice.

learning-scala's People

Contributors

shajra avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.