News for hackers. Stuff that matters.
Re:Happy Birthday, Ruby by dmitriid on Thursday January 10, 2019 @09:21AM (#18873981)
Sounds like a question for Code Golf[1] :)

[1] https://codegolf.stackexchange.com

Off-topic, take a look at "Add a language to Polyglot" which was concluded at 194 languages, but people kept adding more: https://codegolf.stackexchange.com/questions/102370/add-a-la...

Re:Happy Birthday, Ruby by mbel on Thursday January 10, 2019 @09:25AM (#18874011)
Let's not forget about immortal RosettaCode: http://www.rosettacode.org/wiki/FizzBuzz
Re:Happy Birthday, Ruby by vram22 on Thursday January 10, 2019 @11:10AM (#18874870)
One interesting thing about this set of solutions is that many of the languages seem to use a pattern-matching approach (e.g. Elixir, F#, Rust, others, IIRC). As a result, having been reading about pattern-matching recently (in F# and OCaml), I was able to understand the gist of the solutions in those languages, although I did not know those languages well or even somewhat, in some cases. Of course, this is for FizzBuzz, for which the logic is easy, which makes it easy to make guesses about how the code works (for many languages at least).