About the author
In Delphi, when I want to set a boolean variable depending on the result of a comparison, I normally do something like,
Result := Value <> 0;
or
Result := Pos('Substr', SomeString)>0;
and when I need to do a boolean check before taking a code path, I code up something like,
if SomeBoolean then ...
if not SomeBoolean then ...
I always imagine that programmers of lesser enlightenment would write code such as,
if SomeBoolean = true then ...
or perhaps,
if SomeBoolean = false then ...
or even stuff like
if Value <> 0 then Result := True else Result := False;
On a hunch, I launched my favourite text editor, and do a search, on “ = False”, eg, comparing something to False, and found lots of them in Delphi 7's source directory. (Of course, the above search condition will trigger for cases where it's not just doing plain comparison.) And it's not just limited to Borland source codes. Even Indy has them!
Sigh... I leave you to draw your own conclusions...
How to free more space on your home drive by redirecting the location for SDKs in RAD Studio
Learn the command line used to compile System.pas in Delphi
A method to design records so that they're allocated on a specific byte boundary, such as 16 bytes, 512 bytes, 4096 bytes, etc.
Learn why the map is cool in Go!