[DUG] Related try..finally question

Alister Christie alister at salespartner.co.nz
Fri Jul 21 15:05:53 NZST 2006


I have a lot of monolithic procedures and functions - so large that they 
are just scary.  yes this is bad, yes I'm refactoring them (as in Martin 
Fowler's book - which is great by the way) - but I'm digressing somewhat 
from the original question.
So my answer is no there is not a 1:1 relationship in my code.
 From my current readings on OO design and implementation small methods 
(with meaningful names) are they way to go, and is something that I will 
work towards (over the next few years), but even so there will not in 
general be a 1:1 correspondence of methods to try finally blocks.

I hope this reply is not to rambling - am listening to the latest delphi 
hour <http://bdn.borland.com/article/33612> while typing and 
multitasking is not my strong point (I think it's a guy thing in general)

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 



Conor Boyd wrote:
> I'm getting the impression here that a lot of people only have a 1:1
> relationship between try.finallys and procedures/functions?
>
> Sounds a bit dangerous.
>
> Should realistically be a try..finally for each object you instantiate
> in a method.
>
> Comments, anyone?
>
> C.
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060721/e13ed40a/attachment.html


More information about the Delphi mailing list