Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou Newsgroups: comp.lang.c Subject: Re: Which code style do you prefer the most? Date: Wed, 26 Feb 2025 14:06:47 +0100 Organization: A noiseless patient Spider Lines: 30 Message-ID: References: <20250225104754.267@kylheku.com> <874j0g2a8u.fsf@onesoftnet.eu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Wed, 26 Feb 2025 14:06:48 +0100 (CET) Injection-Info: dont-email.me; posting-host="4f0782fc39d9cc4b721840988cfbfa82"; logging-data="2713484"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wgpjU35jpuCxRI0k9iuFo" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cancel-Lock: sha1:RrEJun1vysAm6ASwCH6Bml9qlXo= In-Reply-To: <874j0g2a8u.fsf@onesoftnet.eu.org> X-Enigmail-Draft-Status: N1110 Bytes: 2070 On 26.02.2025 12:53, Ar Rakin wrote: > Janis Papanagnou writes: >> >> Re "goofy style"; I've seen someone preferring >> >> while (q(a,b)) >> { >> a=b; >> f(x); >> if (c>d) >> { >> g(y); >> } >> } >> >> To each his own. > > That looks like a nightmare for the code reviewers. I cannot tell where that comes from; the person who uses it is an experienced Perl programmer - may that be some convention in that specific language context? (I can't tell.) WRT code reviews; in the past I had horrendous code that I needed to reformat using a code-beautifier before I could review it. But those were extreme (and only rare) cases. (And above yet isn't as bad as those other artworks I had.) Janis