Code Monkey home page Code Monkey logo

scala_dojo_03_funswithoo's Introduction

Summary

This weeks dojo will delve into the other halve of Scala's dual personality, Object Orientation. We will be looking at how objects are created and operated on as well as discovering how Traits can help modularise your code and remove more duplication than Interfaces alone.

Funs with Object Orientation

This week you will find 6 tests that you will have to complete as well as then make them pass, though you will find a couple of helper methods that assert some of their functionality. Along with tests there is an Item object hierarchy, a User and a couple of Traits with only the method signatures implemented. The skeleton maven project I have created for the dojo can be found here on github.

SBT

You will find that this project now builds with both Maven and SimpleBuildTool. SBT is incredabilly easy to to install and it is highly recommended you give it a try as it is the standard Scala build tool.

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 https://github.com/leneghan/scala_dojo_03_funswithoo
  2. click fork button on the top right of the screen
  3. git clone https://github.com/<GIT_HUB_NAME>/scala_dojo_03_funswithoo.git
or
git clone https://github.com/leneghan/scala_dojo_03_funswithoo.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

scala_dojo_03_funswithoo's People

Contributors

leneghan avatar toddmowen avatar

Watchers

 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.