Friday 9 March 2012

Scala Dojo 02 - funs with lists


This weeks dojo should start to push you a little harder and you may need more than the hour to complete all the challenges. Along the way you will be introduced to Scala's Lists and functions, these two pages are good starts on the subject;

Funs with Lists

There are 8 tests that you will need to go green, plus a bonus one at the end for 2 additional points. This week the tests are not exhaustive and so a certain amount of good sport is expected and as such points will be deducted for implementations that are not in the spirit of the game, for example hard coding return values. You'll also find some tests offer bonus points for implementing them in a particular way. The skeleton maven project I have created for the dojo can be found here on github, as last time you should not change the existing tests, but feel free to add new ones along the way.

Getting the code

To get started you can go to the repo and fork the project into your own github repository by clicking the fork button on the top right. This is the preferred method as it means we can easily share our solutions with each other but if you don't wish to do this you can create a local copy from my repository by simply executing the git clone command.
  1. go to
  2. click fork button on the top right of the screen
  3. git clone<GIT_HUB_NAME>/scala_dojo_02_funswithlists.git
git clone

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


No comments:

Post a Comment