Re: Avoiding Booleans & Danny Thorpe




"Andre Kaufmann" <andre.kaufmann.bei@xxxxxxxxxxx> wrote

> CreateFile(cmCreateNew);
> is much more readable than
> CreateFile(true);
> With the latter one I don't have any clue what's the parameter for.

Which is why I try to code
CreateFile( {CreateNew}true );
where comment CreateNew will give the reader a hint as
to what the parameter is for.

--JohnH
.



Relevant Pages

  • Re: Avoiding Booleans & Danny Thorpe
    ... John Herbster wrote: ... With the latter one I don't have any clue what's the parameter for. ... CreateFile({CreateNew}true); ... the benefit of using a boolean parameter and additionally adding it's purpose as comment compared to adding it to the variable name itself? ...
    (borland.public.delphi.non-technical)
  • Re: Outlook custom forms
    ... custom form is: ... Under column 'Operation' it says 'CreateFile' and the 'Result' column ... says 'NAME COLLISION' ... clue if those lines are relevant. ...
    (microsoft.public.outlook.program_forms)
  • API Hooking
    ... Anyone has already manage to do a system wide API Hooking. ... I would like to intercept every call to CreateFile .... ...
    (microsoft.public.windowsce.embedded)
  • Re: SEO Story
    ... Roy Schestowitz wrote: ... > this group (hint: URL gives a good clue). ... Prev by Date: ...
    (alt.internet.search-engines)
  • Re: SEO Story
    ... >> this group (hint: URL gives a good clue). ... Roy ... Prev by Date: ...
    (alt.internet.search-engines)