Sujet : Re: “Booleans Considered Harmful”
De : julio (at) *nospam* diegidio.name (Julio Di Egidio)
Groupes : comp.programmingDate : 22. May 2025, 10:14:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <100mpta$32gho$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
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