Skip to content

Miscellaneous practice code samples in various new languages.

Notifications You must be signed in to change notification settings

seanohue/exploration-station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

So, in an effort to broaden my horizons, I've started trying to learn a few other languages, including Crystal and Dart.

Here are some miscellaneous code samples.

#####Running the Dart examples:

Follow the Dart installation directions then run code by doing dart fizzbuzz.dart.

#####Running the Crystal examples:

Follow the Crystal installation directions then crystal fizzbuzz.cr.

#####Running the Rust examples:

You can run them as an executable in your terminal. For example, ./fizzbuzz while in the Rust directory.

If you want to mess around with them and recompile the executable, follow the Rust installation directions then compile with rustc fizzbuzz.rs.

#####Running the Haskell examples:

Install runhaskell using brew install ghc cabal-install first, then do runhaskell fizzbuzz.hs.

#####Running the Erlang examples:

Install erl using brew install erlang then do erl. In the REPL, type c(fizzbuzz) to compile then fizzbuzz:fizzbuzzer(100).

######Running the TypeScript examples:

If you have node installed, you can run it using node dice.js.