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 

code Maintainance-Understanding legacy code

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





PostPosted: Fri Jan 19, 2007 11:59 pm    Post subject: code Maintainance-Understanding legacy code Reply with quote



I am(team) working with a huge delphi application having 3500+ stored
proc and 700+ pas files and it is neither well document in code or
externally.Although Visual form inhertiance and dynamic tab(using
registerclass) is in code and some coding conventions are
followed.Please suggest
a) a way to understand this code... (ie audit)
b) to make it more object oriented (ie applying
oops,refactoring,patterns etc)
c)to make it more maintainable
Back to top
Peter Below (TeamB)
Guest





PostPosted: Sat Jan 20, 2007 6:13 pm    Post subject: Re: code Maintainance-Understanding legacy code Reply with quote



dpk wrote:

Quote:
I am(team) working with a huge delphi application having 3500+ stored
proc and 700+ pas files and it is neither well document in code or
externally.Although Visual form inhertiance and dynamic tab(using
registerclass) is in code and some coding conventions are
followed.Please suggest
a) a way to understand this code... (ie audit)
b) to make it more object oriented (ie applying
oops,refactoring,patterns etc)
c)to make it more maintainable

My condolences <g>.

The first step when faced with such a monster is analysis. There are
tools to help with that. One that got a favourable review in the April
2006 issue of The Delphi Magazine was "Understand for Delphi"
(www.scitools.com). You may also want to take a look at tools like
CodeHealer and CodeFactor (not sure of the name, just google).

--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
Back to top
Gerrit Beuze
Guest





PostPosted: Sun Jan 21, 2007 9:12 am    Post subject: Re: code Maintainance-Understanding legacy code Reply with quote



Quote:
followed.Please suggest
a) a way to understand this code... (ie audit)
b) to make it more object oriented (ie applying
oops,refactoring,patterns etc)

ModelMaker Code Explorer will help understand code,
simply by showing class members - optionally filtered on type / visibility.
Fully integrated in the Delpih 5 - 2006 IDEs.
http://www.modelmakertools.com/code-explorer/index.html

Restructuring and refactorings are also instantly available.

For example:
Instantly copy, paste classes, methods, properties etc. between classes and files.
Convert a plain procedure procedure to a method with drag/drop or copy/paste


Live Metrics will show some basic metrics for the opened file:
Movie: http://modelmakertools.com/movies/mmx-live-metrics.htm
and also help fixing problems.

Live Documentation can help documentating while you go along.
Movie: http://www.modelmakertools.com/i/o/mmx-doc-movie.html


The Source Indexer can help finding where identifiers are used:
Movie: http://www.modelmakertools.com/i/o/mmx-source-indexer.html

And lot and lots more.


If UML is your thing: ModelMaker 9 (or UML Explorer) can be used to visualize
existing code in class diagrams showing classes and their relations.
Very good for understanding complex code.
http://www.modelmakertools.com/modelmaker/index.html
and
http://www.modelmakertools.com/modelmaker/screenshots/page2.html

Gerrit Beuze
ModelMaker Tools
Back to top
Stephen Quinn
Guest





PostPosted: Mon Jan 29, 2007 9:12 am    Post subject: Re: code Maintainance-Understanding legacy code Reply with quote

As well as what Peter said

Quote:
I am(team) working with a huge delphi application having 3500+ stored
proc and 700+ pas files and it is neither well document in code or
externally.Although Visual form inhertiance and dynamic tab(using
registerclass) is in code and some coding conventions are
followed.Please suggest
a) a way to understand this code... (ie audit)

Pascal Analyser - http://www.peganza.com
ClassViz - http://www.toolsfactory.com/classviz.html

Quote:
b) to make it more object oriented (ie applying
oops,refactoring,patterns etc)
MMX - see Gerrits post


CodeHealer - http://www.socksoftware.com

HTH
Steve
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.