While looking at existing code and my own applications, sometimes it’s easy to get lost in the application logic flow in terms of where I am in the framework and what dependency files were processed before the final view.
Is there diagram generation script that is able to give a diagram of all of the dependencies from the start of a request evaluation to when a page is drawn? Heck, I’d even not mind to be able to drill down into variables visually across the structure similar to ddd.
For example, it might go something like:
other dependencies -> app/views/layout/application.html.haml ->
app/views/shared/_header.html.haml -> layout/application.html.haml ->
app/views/home/index.html.haml
If this diagram were visual then you could show loop backs or just demonstrate a hierarchy of repetitive access, or even this might work:
other dependencies
app/views/layout/application.html.haml
shared/_header.html.haml
home/index.html.haml
Ultimately something like fseventer app for Mac OS X could perhaps have been a close enough match, however it doesn’t seem to show the shell spawned activity. If it did it could be a wonderful example of perhaps what I’m talking about.
Look for railroad.
http://railroad.rubyforge.org/