BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Refactoring of event-driven GUI

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Stefan Meisner
Guest





PostPosted: Fri Jan 28, 2005 12:46 pm    Post subject: Refactoring of event-driven GUI Reply with quote



Hello!
Currently I am refactoring parts of a software. Things did work well until I
got down to the GUI. There's a lot of event-driven code, which is hard to
trace and understand; frames do access other one's published components,
even calls to FindComponent can be seen. I already did start extracting
common-methods, introducing template methods, but I do not feel very
comfortable with it at the moment. Is there any book on refactorings of
event-driven guis? Anyone can point me to the right direction?
Thanks a lot
Stefan Meisner


Back to top
Jim Cooper
Guest





PostPosted: Fri Jan 28, 2005 1:49 pm    Post subject: Re: Refactoring of event-driven GUI Reply with quote




I'd start by using Extract Method on the code in event handlers. You can
then start examining that from common functionalty/data and start
grouping things into classes.

Better still, pay me to come and help you :-)

Cheers,
Jim Cooper

_______________________________________________

Jim Cooper [email]jim (AT) falafelsoft (DOT) com[/email]
Falafel Software http://www.falafelsoft.com
_______________________________________________
Back to top
Quicoli
Guest





PostPosted: Fri Jan 28, 2005 2:26 pm    Post subject: Re: Refactoring of event-driven GUI Reply with quote



Stefan Meisner escreveu:
Quote:
Hello!
Currently I am refactoring parts of a software. Things did work well until I
got down to the GUI. There's a lot of event-driven code, which is hard to
trace and understand; frames do access other one's published components,
even calls to FindComponent can be seen. I already did start extracting
common-methods, introducing template methods, but I do not feel very
comfortable with it at the moment. Is there any book on refactorings of
event-driven guis? Anyone can point me to the right direction?
Thanks a lot
Stefan Meisner



what is your intending ? Moving from event-driven to real object-driven ?

here, unhapply, my systems are event-driven, and i just tried
to extract some methods, finishing with duplicated code....

I think that in an event-driven code there is not much we can do...
thats 'cause Refactoring theory is about real OO code..

But we can do some simple and good refactorings in event-driven code.

Bye

--
Paulo R. Quicoli
---------------------
Analista Programador
Control-M Informática Ltda.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.