Skip to content

An experiment in writing FizzBuzz in every language, each with its own Docker container

License

Notifications You must be signed in to change notification settings

jdan/fizzbuzz-polyglot

Repository files navigation

fizzbuzz-polyglot

An experiment in writing FizzBuzz in every language.

rake test
[1/7] ruby...OK
[2/7] javascript...OK
[3/7] javascript/from-npm...OK
[4/7] ocaml...OK
[5/7] ocaml/peano...OK
[6/7] j...OK
[7/7] factor...OK
rake test javascript
javascript...OK

Adding a new language

Example: factor - https://factorcode.org

  1. Create a folder with the language name
  2. Write code in your language to print the first 100 numbers in FizzBuzz
  3. Add a Dockerfile which will execute your code
  4. Test your code with rake test DIRECTORY_NAME

Adding an additional solution to a language

Example: javascript/from-npm

Wanna show off a new technique/framework/etc? Feel free to follow the same steps above, in a separate folder under your language's directory. rake test LANGUAGE/FEATURE (i.e. rake test javascript/from-npm) will still work.

About

An experiment in writing FizzBuzz in every language, each with its own Docker container

Topics

Resources

License

Stars

Watchers

Forks