Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I'm the best c coder here.

87 views
Skip to first unread message

Jeff-Relf.Me

unread,
Sep 5, 2017, 1:59:39 PM9/5/17
to
Speaking of me, you ( ChrisV ) wrote:
> The Relf kook once described some of his unreadable garbage
> as "the finest code you'll ever see".

As near as I can tell, I'm the best c coder here.
I don't recall your Fizz Buzz code, by the way.
http://Jeff-Relf.Me/FizBuz.HTM

I reduced Owls 43 lines, 74 columns to 5 lines, 71 columns:

  char *Say[16] = { "%d", "Fiz", "Buz", "FizBuz", "Goz", "FizGoz",
    "BuzGoz", "FizBuzGoz", "Kaz", "FizKaz", "BuzKaz", "FizBuzKaz", 
    "GozKaz", "FizGozKaz", "BuzGozKaz", "FizBuzGozKaz" };  int x = 0 ;
  while ( x++ < 100 ) printf(", "),
    printf( Say[ 8*!(x%11) + 4*!(x%7) + 2*!(x%5) + !(x%3) ], x );

  Output:

    86, Fiz, Kaz, 89, FizBuz, Goz, 92, Fiz, 94, Buz, Fiz, 97, Goz

Fabian and Owl never realized that I/O was the bottleneck.

Snit

unread,
Sep 5, 2017, 2:07:58 PM9/5/17
to
On 9/5/17, 10:59 AM, in article Jeff-R...@Sep.5--10.59am.Seattle.2017,
"<Jeff-Relf.Me @.>" <> wrote:

>
> Speaking of me, you ( ChrisV ) wrote:
>> The Relf kook once described some of his unreadable garbage
>> as "the finest code you'll ever see".
>
> As near as I can tell, I'm the best c coder here.
> I don't recall your Fizz Buzz code, by the way.
> http://Jeff-Relf.Me/FizBuz.HTM
>
> I reduced Owls 43 lines, 74 columns to 5 lines, 71 columns:
>
> char *Say[16] = { "%d", "Fiz", "Buz", "FizBuz", "Goz", "FizGoz",
> "BuzGoz", "FizBuzGoz", "Kaz", "FizKaz", "BuzKaz", "FizBuzKaz",
> "GozKaz", "FizGozKaz", "BuzGozKaz", "FizBuzGozKaz" }; int x = 0 ;
> while ( x++

A count of lines is hardly a good sign of quality... heck, I noted that when
speaking to Marek and noting how my solution was only 17 lines (or
whatever). It was noted to speak to how simple the program is (few lines and
nothing "clever" to keep it short -- could have made it shorter) but not a
sign that it is better than, say, a 50 line solution.

--
Personal attacks from those who troll show their own insecurity. They cannot
use reason to show the message to be wrong so they try to feel somehow
superior by attacking the messenger.

They cling to their attacks and ignore the message time and time again.

<https://youtu.be/H4NW-Cqh308>

Jeff-Relf.Me

unread,
Sep 5, 2017, 2:29:20 PM9/5/17
to
You ( Michael Glasser ) replied:
> > http://Jeff-Relf.Me/FizBuz.HTM
> > I reduced Owl's 43 lines, 74 columns to 5 lines, 71 columns:
> > 
> >   char *Say[16] = { "%d", "Fiz", "Buz", "FizBuz", "Goz", "FizGoz",
> >     "BuzGoz", "FizBuzGoz", "Kaz", "FizKaz", "BuzKaz", "FizBuzKaz", 
> >     "GozKaz", "FizGozKaz", "BuzGozKaz", "FizBuzGozKaz" };  int x = 0 ;
> >   while ( x++ < 100 ) printf(", "),
> >     printf( Say[ 8*!(x%11) + 4*!(x%7) + 2*!(x%5) + !(x%3) ], x );
> 
> A count of lines is hardly a good sign of quality.

My version had a higher SignalToNoise ratio, compared to Owl's.
You, on the other hand, are 
THE UNDISPUTED KING of low SignalToNoise ratios.

Your "From:" line says it all:

  In a "Snit", you flood us with "Galloping Insanity".

From 9/8 to 9/11 last year, 2016, you posted 589 times in 4 days.
That's almost 150 per day, for 4 straight days, leading up to 9/11.
"insane", "Galloping", in a "Snit".

Snit

unread,
Sep 5, 2017, 2:43:32 PM9/5/17
to
On 9/5/17, 11:28 AM, in article Jeff-R...@Sep.5--11.28am.Seattle.2017,
"<Jeff-Relf.Me @.>" <> wrote:

>
> You ( Michael Glasser ) replied:
>>> http://Jeff-Relf.Me/FizBuz.HTM
>>> I reduced Owl's 43 lines, 74 columns to 5 lines, 71 columns:
>>>
>>> char *Say[16] = { "%d", "Fiz", "Buz", "FizBuz", "Goz", "FizGoz",
>>> "BuzGoz", "FizBuzGoz", "Kaz", "FizKaz", "BuzKaz", "FizBuzKaz",
>>> "GozKaz", "FizGozKaz", "BuzGozKaz", "FizBuzGozKaz" }; int x = 0 ;
>>> while ( x++ > printf( Say[ 8*!(x%11) + 4*!(x%7) + 2*!(x%5) + !(x%3)
>>> ], x );
>>
>> A count of lines is hardly a good sign of quality.
>
> My version had a higher SignalToNoise ratio, compared to Owl's.
> You, on the other hand, are
> THE UNDISPUTED KING of low SignalToNoise ratios.
>
> Your "From:" line says it all:
>
> In a "Snit", you flood us with "Galloping Insanity".
>
> From 9/8 to 9/11 last year, 2016, you posted 589 times in 4 days.
> That's almost 150 per day, for 4 straight days, leading up to 9/11.
> "insane", "Galloping", in a "Snit".
>

You just said nothing with a lot of words.

Oh, and my Usenet provider caps me at 100 posts per day... not possible for
me to post what you claimed.

Jeff-Relf.Me

unread,
Sep 5, 2017, 9:04:14 PM9/5/17
to
Speaking of "Jeff-Relf.Me/FizBuz.HTM", you ( Michael Glasser ) wrote:
> "smaller is better" or "fewer lines is better" seems absurd to me.

SignalToNoise matters, many YouTube tutorials mention it.
Comments can make code LESS readable, for example.

> > My code is easier to read (hold on Jeff) in the sense that even a
> > beginner can read and understand it just by looking at it. 
> > But it won't scale. Jeff's code is smarter. 
> >     [...]
> > Jeff, your solution is the best I've seen, in my humble opinion.
> 
> I certainly have no issue with it and it blows away what I offered 
> ( as does, well, pretty much every other example posted here ).

I enjoyed what FizzBuzz told me about others here;
what others think of me is far less interesting.

My "FizBuzGozKaz" array of strings is harder to grasp;
but, if simplicity were the only standard, comics would rule.

Marek Novotny wrote in the style I see on YouTube,
-- he did better than Owl, Fabian or Snit; but, because he'd use bash,
not C, I think that makes me more of a C programmer than him.

Jeff-Relf.Me

unread,
Sep 5, 2017, 10:30:17 PM9/5/17
to
Speaking of "Jeff-Relf.Me/FizBuz.HTM", you ( Steve Carroll ) told me:
> there are too many places you may have seen the example you put up 
> ( or something similar ) and then reproduced it while not even being 
> aware that's what you did. 

Here's 6 versions of it, in C, including mine:

  https://rosettacode.org/wiki/FizzBuzz#C

One is similar to mine ( except I do 4 primes too );
I hadn't seen it before now.

One C# version took 121 lines, 125 columns;
One C++ version took 165 lines, 285 columns;
mine is 2 lines, 71 columns, indented.

I don't see any implementations, in any language,
smaller than mine.

> you need something that goes far more in depth
> than fizz buzz to assess who is 'the best' at any given language. 

FizzBuzz is a FANTASTIC way to see who has what skills;
anything more complex would obscure the issue.

Rick C. Hodgin

unread,
Sep 5, 2017, 10:45:50 PM9/5/17
to
Is that a gauntlet I see?

http://oi43.tinypic.com/9h5rue.jpg

Thank you,
Rick C. Hodginn

Jeff-Relf.Me

unread,
Sep 6, 2017, 4:45:15 AM9/6/17
to
The following was inspired by the lowest SignalToNoise,
EasiestToModify solution; to wit, (JavaScript):

  for(i=0;i<100;console.log((++i%3?"":"Fizz")+(i%5?"":"Buzz")||i));

With 2 prime numbers, the C code is:

  int i = 0 ;  char B[88] ;
  while ( i++ < 100 )
    !sprintf( B, "%s%s", i%3 ? "":"Fizz", i%5 ? "":"Buzz" )
    ? sprintf( B, "%d", i ):0, printf( ", %s", B );

With 4 prime numbers:

  int i = 0 ;  char B[88] ;
  while ( i++ < 100 )
    !sprintf( B, "%s%s%s%s", 
       i%3 ? "":"Fiz", i%5 ? "":"Buz", i%7 ? "":"Goz", i%11 ? "":"Kaz" )
    ? sprintf( B, "%d", i ):0, printf( ", %s", B );

Output:

  ..., 89, FizBuz, Goz, 92, Fiz, 94, Buz, Fiz, 97, Goz, FizKaz, Buz

fir

unread,
Sep 7, 2017, 3:46:32 AM9/7/17
to
how you post with fixed-size (probably courier) font here? - i looks mucjh better than default one on gougle groups

Öö Tiib

unread,
Sep 7, 2017, 7:11:24 AM9/7/17
to
<PRE Style='Font-Family: OCR A, monospace !important;'>

On Thursday, 7 September 2017 10:46:32 UTC+3, fir wrote:
>
> how you post with fixed-size (probably courier) font here? - i looks mucjh better than default one on gougle groups

I tried above but perhaps we can't make google web client to add that <PRE Style='Font-Family: OCR A, monospace !important;'> at start of post but it does render it fine.



fir

unread,
Sep 7, 2017, 2:11:08 PM9/7/17
to
it do not work, but those post of jeff ref are fixedsize and it looks oldschool way great
0 new messages