Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 build.sbt
Octocat-spinner-32 pom.xml
README.md

Scala Dojo 01 - The MailBox

Summary

This inaugural dojo challenge should ease you into Scala gently, with the solution only requiring you to write about 6 lines of code. On the way you'll get Scala and Git running on your machine, hopefully set up a GitHub account, started to become familiar with the Scala syntax, patten matching and the ScalaTest framework.

Go here to see an overiew of this series of Scala dojos

The Mailbox problem

This problem involves completing the implementation of the MailBox.scala class, with the rules of how it should respond to different messages expressed in the tests. There is one rule in Dojo Club, get the tests to go green. The skeleton maven project I have created for the dojo can be found here on github. Though you should not change the existing tests feel free to add new tests along the way.

Getting the code

To get started you can fork the project into your own github repository, this is the preferred method as it means we can easily share our solutions with each other. If you don't wish to do this you can create a local copy from my repository by simply executing the following command.
git clone https://github.com/leneghan/scala_dojo.git

Getting started with git

If you dont have git currently installed you can download it here from the git website. When using Git I found this one page cheat sheet useful, it also comes with some pointers about good VCS practice, Git_Cheat_Sheet_grey.pdf

Resources

Something went wrong with that request. Please try again.