Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #16774

Re: “Booleans Considered Harmful”

Path csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From Julio Di Egidio <julio@diegidio.name>
Newsgroups comp.programming
Subject Re: “Booleans Considered Harmful”
Date Thu, 22 May 2025 11:14:17 +0200
Organization A noiseless patient Spider
Lines 19
Message-ID <100mpta$32gho$1@dont-email.me> (permalink)
References <100mhh5$3b9hp$3@dont-email.me>
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Thu, 22 May 2025 11:14:19 +0200 (CEST)
Injection-Info dont-email.me; posting-host="982abdda2b1bb3b14ada760c28c7713c"; logging-data="3228216"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18jdlQBp+Sc7IhgA4kicV4eT4aU7qbhwwA="
User-Agent Mozilla Thunderbird
Cancel-Lock sha1:jH7THEfI9KNScqUx6JXrJGGXVyI=
Content-Language en-GB, it
In-Reply-To <100mhh5$3b9hp$3@dont-email.me>
Xref csiph.com comp.programming:16774

Show key headers only | View raw


On 22/05/2025 08:51, Lawrence D'Oliveiro wrote:

> I think most of this article is a load of nonsense, myself.
> 
> <https://www.infoworld.com/article/3990923/booleans-considered-harmful.html>
> 
> Thoughts?

Yeah, it's mostly balderdash, especially the "think positive"
part: rules of dumb I call those, in fact reinventing the wheel
and reinventing it wrong.

But we know better: the one best practice that would be relevant
there is *do not use magic values*.  And of course we could rather
say more about that.  And of course it still wouldn't be just a
rule of dumb, rather learn the art of incremental/evolutionary...

-Julio

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

“Booleans Considered Harmful” Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-22 06:51 +0000
  Re: “Booleans Considered Harmful” Julio Di Egidio <julio@diegidio.name> - 2025-05-22 11:14 +0200
    Re: “Booleans Considered Harmful” Julio Di Egidio <julio@diegidio.name> - 2025-05-22 12:04 +0200
    Re: “Booleans Considered Harmful” Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-22 22:33 +0000
      Re: “Booleans Considered Harmful” Julio Di Egidio <julio@diegidio.name> - 2025-05-23 07:04 +0200
  Re: “Booleans Considered Harmful” David Brown <david.brown@hesbynett.no> - 2025-05-22 13:51 +0200
    Re: “Booleans Considered Harmful” Julio Di Egidio <julio@diegidio.name> - 2025-05-22 14:43 +0200
      Re: “Booleans Considered Harmful” Julio Di Egidio <julio@diegidio.name> - 2025-05-22 14:57 +0200
  Re: “Booleans Considered Harmful” Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-05-22 12:27 -0700
  Re: “Booleans Considered Harmful” JJ <jj4public@outlook.com> - 2025-05-23 16:56 +0700
    Re: “Booleans Considered Harmful” Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-23 22:58 +0000
  Re: “Booleans Considered Harmful” Lawrence D'Oliveiro <ldo@nz.invalid> - 2025-05-23 22:48 +0000
  Re: “Booleans Considered Harmful” c186282 <c186282@nnada.net> - 2025-06-18 02:40 -0400

csiph-web