Git Product home page Git Product logo

scala-for-the-impatient--exercises's Introduction

Solutions to exercises from "Scala for the Impatient" by Cay S. Horstmann

I (Călin-Andrei Burloiu) created this project to include my solutions to exercises from the book "Scala for the Impatient" by Cay S. Horstmann. Feel free to fork this project in order to add unsolved exercises, better solutions or alternatives. You may issue a pull request so I can update this project if I find your solutions appropriate.

DISCLAIMER: I (Călin-Andrei Burloiu) do not guarantee that the solutions are correct or are the most efficient. The project does not include solutions for all exercises, but it does include most of them.

How do I find a particular exercise?

If you have a UNIX-like environment (Linux, Mac OS X, cygwin, UNIX etc.) and you can run bash scripts, you can use find-exercise.sh script to locate an exercise. Run it without arguments to prompt usage. To find an exercise pass the chapter number as the first argument and the exercise number as the second one. For example, to locate Exercise 6 of Chapter 17 run:

./find-exercise.sh 17 6
Exercise 06 from Chapter 17 can be found in:
  file 'src/exercises/c17_type_parameters/package.scala',
  line 4.

Exercises are grouped by chapters in packages following this package name format:

package exercises.c<no>_<description>

where <no> is the chapter number and <description> is a short form for the chapter name. Each package has its directory and all the code is placed in src. For example package exercises.c17_type_parameters, located in src/exercises/c17_type_parameters/, corresponds to Chapter 17, "Type Parameters".

The solution to any exercise should be in a Scala file after a comment with this format:

// Exer<no>

where <no> is the number of the exercise with two digits format (eg. // Exer02, // Exer10).

scala-for-the-impatient--exercises's People

Contributors

calinburloiu avatar

Watchers

 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.