Git Product home page Git Product logo

erlang_koans-1's Introduction

Erlang Koans

Inspired by the ruby koans.

Usage

The koans are intended to only rely on erlang and the erlang scripting environment escript. The testing framework is eunit.

To run the koans use the koans executable with the command escript koans. This will compile your code and provide the next failing test in the suite to pass.

To run the development tests with substituted answers from answers.config use the command escript koans test.

To show a hint for the current koan, use escript koans hint.

Erlang Installation

OSX

Homebrew can be used to install Erlang, but it has an out-of-date version (R15B). To get the most updated version (R16B), you can tap into the homebrew/homebrew-versions repo, and get the erlang-r16 formula from there. To do this, run brew tap homebrew/versions followed by brew install erlang-r16.

Ubuntu

Unfortunately, aptitude has an old version of erlang which is less than ideal.

First, install all necessary dependencies apt-get -y install build-essential m4 libncurses5-dev libssh-dev unixodbc-dev libgmp3-dev libwxgtk2.8-dev libglu1-mesa-dev fop xsltproc default-jdk

Next, move to some place to install erlang and pull the .tar.gz wget http://www.erlang.org/download/otp_src_R16B.tar.gz

Followed by tar -xvzf otp_src_R16B.tar.gz and chmod -R 777 otp_src_R16B

Move to the install directory cd otp_src_R16B

Then run ./configure, make, make install which will produce a bin/ directory. Place this bin/ directory on your path. Specifically, the koans require the erl, erlc, and escript binaries.

Development Goals

  • Cover many more topics
  • Include erlang installation instructions (for all environments not yet mentioned) in this README

erlang_koans-1's People

Contributors

pszals avatar

Watchers

none-p avatar James Cloos 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.