Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: Programming exercise/challenge
Date: Sun, 06 Dec 2020 11:58:44 -0800
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <86pn3mk8p7.fsf@linuxsc.com>
References: <86wnxwkyol.fsf@linuxsc.com> <5fcbb652$0$16505$e4fe514c@textnews.kpn.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="048215ee9820886844dd3aade67dded3"; logging-data="28150"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FgaGF/UWtOaqMCElpaGnh5SxBfJn8xeU="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:lIFTEWUz+cdAh+KQeoV+3bJX8hI= sha1:cogeBZ85xSXZ989u4GnFbkxse4g=
Xref: csiph.com comp.lang.c:156995
Sjouke Burry writes:
> On 05.12.20 17:25, Tim Rentsch wrote:
>
>> [statement of problem]
>
> If you show yours , maybe some of us will show theirs........
I'm interested to see what people come up with on their own, and
posting some of my code early would interfere with that. So I
would like to wait until there are two or more submissions that
at least make an effort to follow the guidelines. At some point
I expect I will time out and post something anyway even if there
are no submissions, but I don't have any fixed time in mind for
when that would be.
By the way, the guidelines are not arbitrary. I think everyone
understands that the problem can be solved with a very large
function with lots of goto's, or a very large function with a big
switch() statement in a while() loop. Both goto's and large
functions have been argued against in the earlier thread about
goto's and state machines. Part of my reason for suggesting this
problem (and with the guidelines as stated) is to see how trying
to follow that advice might affect a solution to this kind of
problem.