Giter Site home page Giter Site logo

jdan / fizzbuzz-polyglot Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 7.0 114 KB

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

License: MIT License

Ruby 7.68% Dockerfile 19.32% JavaScript 2.95% Factor 3.15% J 3.70% OCaml 11.42% Rust 2.28% Python 2.14% Swift 2.97% F# 2.42% Lean 21.73% Elixir 2.57% C 2.84% Go 2.88% PowerShell 1.97% Shell 1.84% Haskell 2.21% PHP 2.00% Julia 1.80% Racket 2.14%
fizzbuzz docker

fizzbuzz-polyglot's Introduction

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.

fizzbuzz-polyglot's People

Contributors

102 avatar amarantedaniel avatar hougesen avatar jdan avatar jocelyn-stericker avatar lesclarke avatar onelson avatar ryechus avatar wilsonehusin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fizzbuzz-polyglot's Issues

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.