Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Hints to achieve FizzBuzz golf in < 56B
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Damien Wyart  
View profile  
 More options Sep 30 2012, 7:59 am
Newsgroups: comp.lang.ruby
From: Damien Wyart <damien.wy...@free.fr>
Date: Sun, 30 Sep 2012 13:59:20 +0200
Local: Sun, Sep 30 2012 7:59 am
Subject: Hints to achieve FizzBuzz golf in < 56B
Hi,

I've been stuck with improving the "canonical" (from comp.lang.ruby in
2007) FizzBuzz golf solution for several weeks now, and can't get this
out of my head... Very frustrating!

I've tested many approaches, based on various data structures, but
I really can't make progress (I always stay around 56B).

I know the current record is at 50B and this drives me mad :-)

Could someone who know how these records have been reached give me some
hints? I am willing to go on by myself (not getting the full solution),
so this would *really* be greatly appreciated.

Seems like golfing is less popular these days than some years ago, but
once you try to play on a problem it is very addicting...

Many thanks in advance if some people can help,
--
DW


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Krzysztof Wilczynski  
View profile  
 More options Oct 9 2012, 7:13 am
Newsgroups: comp.lang.ruby
From: Krzysztof Wilczynski <krzysztof.wilczyn...@linux.com>
Date: Tue, 9 Oct 2012 04:13:34 -0700 (PDT)
Local: Tues, Oct 9 2012 7:13 am
Subject: Re: Hints to achieve FizzBuzz golf in < 56B
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Damien Wyart  
View profile  
 More options Oct 9 2012, 9:14 am
Newsgroups: comp.lang.ruby
From: Damien Wyart <damien.wy...@free.fr>
Date: Tue, 09 Oct 2012 15:14:02 +0200
Local: Tues, Oct 9 2012 9:14 am
Subject: Re: Hints to achieve FizzBuzz golf in < 56B
* Krzysztof Wilczynski <krzysztof.wilczyn...@linux.com> in comp.lang.ruby:

> Haha! There was a stream of FizzBuzz question on the IRC (#ruby on
> irc.freenode.net) for some bizarre reason :)

I'm not on IRC, so I do not understand what you mean...

--
DW


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Krzysztof Wilczynski  
View profile  
 More options Oct 9 2012, 11:34 am
Newsgroups: comp.lang.ruby
From: Krzysztof Wilczynski <krzysztof.wilczyn...@linux.com>
Date: Tue, 9 Oct 2012 08:34:17 -0700 (PDT)
Local: Tues, Oct 9 2012 11:34 am
Subject: Re: Hints to achieve FizzBuzz golf in < 56B
Hey,

[...]

> I'm not on IRC, so I do not understand what you mean...

What I meant was that a lot of people in a course of one day / night (depending on your time zone) was asking about FizzBuzz and how to implement it and how to make it quicker, etc. Which was rather odd that many people in short time frame were asking about it :) I found it inspiring, and hence my take on it was born.

Anyway, good luck with your pursue :)

KW


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »