 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stefan Meisner Guest
|
Posted: Fri Jan 28, 2005 12:46 pm Post subject: Refactoring of event-driven GUI |
|
|
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
|
Posted: Fri Jan 28, 2005 1:49 pm Post subject: Re: Refactoring of event-driven GUI |
|
|
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
|
Posted: Fri Jan 28, 2005 2:26 pm Post subject: Re: Refactoring of event-driven GUI |
|
|
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 |
|
 |
|
|
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
|
|