Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6640
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2012-10-09 04:13 -0700 |
| References | <50683419$0$6454$426a74cc@news.free.fr> |
| Message-ID | <68ce8adc-53fc-4a67-81b6-a2c07a435d36@googlegroups.com> (permalink) |
| Subject | Re: Hints to achieve FizzBuzz golf in < 56B |
| From | Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> |
Hey, [...] > Very frustrating! [...] Haha! There was a stream of FizzBuzz question on the IRC (#ruby on irc.freenode.net) for some bizarre reason :) Not really an answer to your question, but one day I could not sleep and was reading said channel looking at all the FizzBuzz implementations, and this was born: http://github.com/kwilczynski/fizzbuzz This will give you: FB.fizzbuzz(1, 100); or if you do this: class FizzBuzz ; class << self ; alias :fb :fizzbuzz ; end ; end Then even this: FB.fb(1, 100). Anyway, its a silly project :) And different approach to solving this problem :) KW
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar
Hints to achieve FizzBuzz golf in < 56B Damien Wyart <damien.wyart@free.fr> - 2012-09-30 13:59 +0200
Re: Hints to achieve FizzBuzz golf in < 56B Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> - 2012-10-09 04:13 -0700
Re: Hints to achieve FizzBuzz golf in < 56B Damien Wyart <damien.wyart@free.fr> - 2012-10-09 15:14 +0200
Re: Hints to achieve FizzBuzz golf in < 56B Krzysztof Wilczynski <krzysztof.wilczynski@linux.com> - 2012-10-09 08:34 -0700
csiph-web