Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

An engineer is someone who does list processing in FORTRAN.


devel / comp.lang.misc / a plain English "FizzBuZZ" idiom

SubjectAuthor
* a plain English "FizzBuZZ" idiomMike Gonta
`* Re: a plain English "FizzBuZZ" idiomBruce Axtens
 +- Re: a plain English "FizzBuZZ" idiomMike Gonta
 +* Re: a plain English "FizzBuZZ" idiomTim Rentsch
 |`* Re: a plain English "FizzBuZZ" idiomMike Gonta
 | `- Re: a plain English "FizzBuZZ" idiomTim Rentsch
 `- Re: a plain English "FizzBuZZ" idiomLawrence D'Oliveiro

1
a plain English "FizzBuZZ" idiom

<XnsB128999EB7A28mikegontagmailcom@135.181.20.170>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10015&group=comp.lang.misc#10015

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikego...@gmail.com (Mike Gonta)
Newsgroups: comp.lang.misc
Subject: a plain English "FizzBuZZ" idiom
Date: Fri, 1 Mar 2024 20:06:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170>
Injection-Date: Fri, 1 Mar 2024 20:06:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3db530d0ba08f93ad8523a88294ac9c7";
logging-data="1499805"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eLzxp0U6gjTv+wdshxh9oapMskYX1G/c="
User-Agent: Xnews/5.04.25
Cancel-Lock: sha1:NepBk45yK/AszPf1dcQi/s0y8/A=
 by: Mike Gonta - Fri, 1 Mar 2024 20:06 UTC

Here is a plain English "FizzBuZZ" idiom (AKA pseudo code).
Not coincidentally, it's also written in the idiom programming language
which compiles to machine code as a Win32 PE.
In fact, this entire post (including this and the following commentaries)
will compile as is.
[

to fizz buzz up to a number is:
loop
break when a counter is past the number;
set a flag;
if the counter is divisible by 3 then
display "Fizz"; clear the flag;
and then;
if the counter is divisible by 5 then
display "Buzz"; clear the flag;
and then;
if the flag is set ? display the counter;
display "\n";
repeat;

] the-idiom has reached the end of the line, where all good things must end.
There is no "end" in idiom, for idiom is an end in itself.

Mike Gonta
look and see - many look but few see

https://mikegonta.com

Re: a plain English "FizzBuZZ" idiom

<utg2bf$1qhdj$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10025&group=comp.lang.misc#10025

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: sne...@hotmail.com (Bruce Axtens)
Newsgroups: comp.lang.misc
Subject: Re: a plain English "FizzBuZZ" idiom
Date: Thu, 21 Mar 2024 09:26:07 +0800
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <utg2bf$1qhdj$1@dont-email.me>
References: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 Mar 2024 01:26:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="510c392e1567296ed009b3b598f60626";
logging-data="1918387"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19T8wtVVpKqLyKBqsttQPBq"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:dmWTEiFeeA5s/VwAx2NxJvySW+c=
Content-Language: en-US
In-Reply-To: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170>
 by: Bruce Axtens - Thu, 21 Mar 2024 01:26 UTC

On 2/03/2024 4:06 am, Mike Gonta wrote:
> if the counter is divisible by 3 then

The counter is always divisible by 3. It is not always *evenly*
divisible by 3. Maybe you want to make that more obvious.

-Bruce

Re: a plain English "FizzBuZZ" idiom

<uth1ov$24qh0$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10026&group=comp.lang.misc#10026

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikego...@gmail.com (Mike Gonta)
Newsgroups: comp.lang.misc
Subject: Re: a plain English "FizzBuZZ" idiom
Date: Thu, 21 Mar 2024 06:22:23 -0400
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <uth1ov$24qh0$1@dont-email.me>
References: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170>
<utg2bf$1qhdj$1@dont-email.me>
Reply-To: mikegonta@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Mar 2024 10:22:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="dbb5fbd02a4801c95587e2b2486b7e64";
logging-data="2255392"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+R7B8FWZ0P2aAqZHlqRDLdJIAN9EL5ns4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:FPfq554A2ELwNKnXh5e3L8p32wI=
In-Reply-To: <utg2bf$1qhdj$1@dont-email.me>
Content-Language: en-US
 by: Mike Gonta - Thu, 21 Mar 2024 10:22 UTC

On 2024-03-20 9:26 p.m., Bruce Axtens wrote:
> On 2/03/2024 4:06 am, Mike Gonta wrote:
>>      if the counter is divisible by 3 then
>
> The counter is always divisible by 3. It is not always *evenly*
> divisible by 3. Maybe you want to make that more obvious.
>
> -Bruce
>
Thanks Bruce, you're absolutely right.
[ to decide if a number is evenly divisible by another number is:
divide the number by the other number returning a quotient number and
a remainder number;
return true if the remainder is null;
] Of course, in plain English idiom, the opposite (in this case) return
false default statement should be obvious (as it is to the-idiom) and
need not be written.

there is no "end" in idiom, for idiom is an end in itself;

--
Mike Gonta
look and see - many look but few see

https://mikegonta.com

Re: a plain English "FizzBuZZ" idiom

<86il1el8lp.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10027&group=comp.lang.misc#10027

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.misc
Subject: Re: a plain English "FizzBuZZ" idiom
Date: Fri, 22 Mar 2024 06:05:54 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <86il1el8lp.fsf@linuxsc.com>
References: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170> <utg2bf$1qhdj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="43a124101bc8549bfa1c6f6d248b1944";
logging-data="3091143"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kxuShOwOVRBRwstED/r+AfSlAgrn/zcU="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:W6vpcyG5iK6OV7vF9hjv0LWYFYs=
sha1:fl/aQXkhA2P8hAvj6OYvwiOL73o=
 by: Tim Rentsch - Fri, 22 Mar 2024 13:05 UTC

Bruce Axtens <snetxa@hotmail.com> writes:

> On 2/03/2024 4:06 am, Mike Gonta wrote:
>
>> if the counter is divisible by 3 then
>
> The counter is always divisible by 3. It is not always *evenly*
> divisible by 3.

In mathematics standard terminology uses "a is divisible by b"
to mean "a is an integer multiple of b". The "evenly" is not
needed.

Re: a plain English "FizzBuZZ" idiom

<utk9no$2q558$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10028&group=comp.lang.misc#10028

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mikego...@gmail.com (Mike Gonta)
Newsgroups: comp.lang.misc
Subject: Re: a plain English "FizzBuZZ" idiom
Date: Fri, 22 Mar 2024 11:56:40 -0400
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <utk9no$2q558$1@dont-email.me>
References: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170>
<utg2bf$1qhdj$1@dont-email.me> <86il1el8lp.fsf@linuxsc.com>
Reply-To: mikegonta@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 22 Mar 2024 15:56:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fa1f8c8009fa0af2181eeea4ff0455d9";
logging-data="2954408"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ffG18QH0O6VKnTxnHEZt6spuxWlQUUBc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:PiC18R3ekskkIXOQLT8+q06sG4o=
Content-Language: en-US
In-Reply-To: <86il1el8lp.fsf@linuxsc.com>
 by: Mike Gonta - Fri, 22 Mar 2024 15:56 UTC

On 2024-03-22 9:05 a.m., Tim Rentsch wrote:
> Bruce Axtens <snetxa@hotmail.com> writes:
>
>> On 2/03/2024 4:06 am, Mike Gonta wrote:
>>
>>> if the counter is divisible by 3 then
>>
>> The counter is always divisible by 3. It is not always *evenly*
>> divisible by 3.
>
> In mathematics standard terminology uses "a is divisible by b"
> to mean "a is an integer multiple of b". The "evenly" is not
> needed.

Thanks Tim, that's an excellent point.
And while some think that redundancy in grammar is bad, it definitely
has it's uses. Since plain English idiom is more grammar than math,
the-idiom can be very forgiving.
[ to decide if a number is divisible by another number is:
to decide if a number is evenly divisible by another number is:
divide the number by the other number returning a quotient number and
a remainder number;
return true if the remainder is null;
] Now you can have your cake and eat it too.
There is no "end" in idiom, for idiom is an end in itself.

--
Mike Gonta
look and see - many look but few see

https://mikegonta.com

Re: a plain English "FizzBuZZ" idiom

<861q80ltp9.fsf@linuxsc.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10029&group=comp.lang.misc#10029

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.misc
Subject: Re: a plain English "FizzBuZZ" idiom
Date: Sat, 23 Mar 2024 10:54:42 -0700
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <861q80ltp9.fsf@linuxsc.com>
References: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170> <utg2bf$1qhdj$1@dont-email.me> <86il1el8lp.fsf@linuxsc.com> <utk9no$2q558$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="6af46d5f1415f729bb6ec55b5ea784b7";
logging-data="3979034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GG1ErZGOzaJXq4eqDmQU9LA5oSAj8oR0="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:awTONCh7P7liOhyt7lSV2e6Waxw=
sha1:voBPC8A/wQVHUFg6nHg/Lax8nA4=
 by: Tim Rentsch - Sat, 23 Mar 2024 17:54 UTC

Mike Gonta <mikegonta@gmail.com> writes:

> On 2024-03-22 9:05 a.m., Tim Rentsch wrote:
>
>> Bruce Axtens <snetxa@hotmail.com> writes:
>>
>>> On 2/03/2024 4:06 am, Mike Gonta wrote:
>>>
>>>> if the counter is divisible by 3 then
>>>
>>> The counter is always divisible by 3. It is not always *evenly*
>>> divisible by 3.
>>
>> In mathematics standard terminology uses "a is divisible by b"
>> to mean "a is an integer multiple of b". The "evenly" is not
>> needed.
>
> Thanks Tim, that's an excellent point.
> And while some think that redundancy in grammar is bad, it definitely
> has it's uses. [...]

I feel obliged to point out that the word here is "its", not "it's".
The word "it's" is a contraction for "it is". "It" is a personal
pronoun, and the possessive forms of personal pronouns are always
spelled without apostrophes, as for example "he" and "his". The
word "it" follows this rule.

If you feel a need to add some redundancy, I suggest

if the counter is divisible by 3 (meant in the mathematical
sense of being an integer multiple of 3)

In answer to your other question, thank you for asking. My
preference is not to be attributed in your website pages.
The more impersonal form "It was pointed out that ..." conveys
the most important information, and focuses readers' attention
on that information without distracting them with extraneous
information about who did the pointing.

Re: a plain English "FizzBuZZ" idiom

<uu5qgh$54gr$7@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10037&group=comp.lang.misc#10037

  copy link   Newsgroups: comp.lang.misc
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.misc
Subject: Re: a plain English "FizzBuZZ" idiom
Date: Fri, 29 Mar 2024 07:27:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <uu5qgh$54gr$7@dont-email.me>
References: <XnsB128999EB7A28mikegontagmailcom@135.181.20.170>
<utg2bf$1qhdj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 29 Mar 2024 07:27:14 +0100 (CET)
Injection-Info: dont-email.me; posting-host="521a9234fa531f5fbb354bce794424cb";
logging-data="168475"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DcD0OKAM1Y6QTNxg5CtdE"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:w9UbZ86cR7AF2TFKnm8Us45lFIw=
 by: Lawrence D'Oliv - Fri, 29 Mar 2024 07:27 UTC

On Thu, 21 Mar 2024 09:26:07 +0800, Bruce Axtens wrote:

> The counter is always divisible by 3.

Not if you require the result to be in the integers.

If the OP had said “integer” rather than “number”, that would have helped.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor