Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Flow of Program  RSS feed

 
Kinu Kanwar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on one Java project that has around 1000+
classes and average of class length would be 500.

Some times I have to change existing code like I have
to add new fields on screen or have to change some
logic in existing classes but its very difficult(read
impossible) to determine what class is generating
particular screen. I could not know wat function is
called on clicking particular button.

Is there a way that could help me in determining the
flow of program atleast at high level.

I just joined the project and we do not have
any proper documentation.

Regards

Kinu
 
Thomas Mcfarrow
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

You could try using a tool called Doxygen. This tool will create call diagrams which is very helpful for following code flow. It also creates a documentation, inheritance diagrams, etc.


Doxygen --> Doxygen

Regards
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can be a pain because there are zillions of techniques for wiring events to code. You'll have to find the UI widget and find how it gets a listener attached, then follow the code in the listener to the code that does the work. If you're lucky there is a solid framework and everyone followed good standards and this gets easier every time you do it.
 
Jeffrey Spaulding
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
U sure you wanna participate in a project with 1000+ classes and no proper documentation?

Brave man that.

UhOh

J.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!