Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: David Brown Newsgroups: comp.lang.c Subject: Re: Loops (was Re: do { quit; } else { }) Date: Wed, 23 Apr 2025 17:41:39 +0200 Organization: A noiseless patient Spider Lines: 35 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Wed, 23 Apr 2025 17:41:39 +0200 (CEST) Injection-Info: dont-email.me; posting-host="9c60b54993b1503c0c34a5be768da3e9"; logging-data="3581597"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1989XPJKC7MiH9LW0VhTYiMkV/gMo8Mqak=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:zl1sP1uJtlTQS6XYKq60Zsth5jw= Content-Language: en-GB In-Reply-To: On 22/04/2025 21:43, bart wrote: > On 22/04/2025 20:11, David Brown wrote: >> On 22/04/2025 20:54, bart wrote: > >>> Well C's would be: >>> >>>     For (first ingredient; ingredient; next ingredient) >> >> The point was that you claimed your loop matches how you would >> describe things in English. > > And it does exactly that. I get why people decide to go up several > levels to try score some points, but we're not talking about AI here > where we are trying to extract the exact algorithm that might have been > in the mind of the programmer. > I think it was Djikstra who said that one of the most important skills for a programmer is a mastery of your mother tongue. You seem to be failing here. No one is doubting your ability to translate some code directly into English words. What you are failing to do, however, is write a sensible, normal English language description of the task for the code, and then translate that into code. You can't expect people to take you seriously when you say a C for-loop does not match a normal English description when your own looping alternatives are equally bad matches. Let me put it simply for you: It is true that no one uses C for-loops in normal English. It is equally true that no one uses while-loops in normal English.