Re: Tasty exceptions



"Michael C." <Michael@xxxxxxxxxx> wrote in message
news:44a56e87$1@xxxxxxxxxxxxxxxxxxxxxxxxx

A good programmer would know that there is an error by checking the return
value or the function.

A *perfect* programmer would always remember to do that. But a more
pragmatic approach is to realise that by having every function return an
error code - which needs checking and/or passing on up the call stack - your
code becomes an unreadable (and unmaintainable) accident waiting to happen.

I find it strange thate we're even having this discussion in a Delphi
newsgroup: It was Delphi that really introduced me to exceptions, and the
VCL which taught me HOW and WHY to use them...

- Roddy


.



Relevant Pages

  • Re: What can .Net do for me?
    ... I'm a win32 programmer, that has only merely dabbled with the ... >> I'm looking for a business reason to upgrade to Delphi 2005. ... > programmer productivity (you didn't want to hear that right? ... Your customers can also be subject to microsoft's marketing machine ...
    (borland.public.delphi.non-technical)
  • Re: The New Roadmap
    ... The Pascal market is larger with both Delphi, Free Pascal, ... Stories about foxes and hens miss this point completely and ... anymore then, the strongest compiler wins. ... Still, this is a relatively minor problem, since should the situation change, the programmer can be won back. ...
    (borland.public.delphi.non-technical)
  • Re: D8 may be 32 bit only
    ... > available for people with knowledge of Borland's Delphi language but it ... Software Developer: ... TEK systems is looking for a Sr Level Tester to work for our client ... Our Client is looking for 5 Senior Programmer Analysts. ...
    (borland.public.delphi.non-technical)
  • Re: .NET and Delphis future
    ... Big name products are still being built for API. ... Real objects, decent languages, business apps ... The world's best kept secret is that an experienced programmer when writing ... desktop apps gets the most value for $ with Delphi. ...
    (borland.public.delphi.non-technical)
  • Re: Replacing Delphi developers
    ... Pascal as a language 'forces' the programmer to perhaps be a bit ... used in real life, ... So have your son learn Delphi. ...
    (comp.lang.pascal.delphi.misc)