Re: Code mapping software?

2004-07-16 Thread Dave Carabetta
On Fri, 16 Jul 2004 09:31:44 -0400, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
> I'm at work now and my first job is to finish it up. I'm hoping it'll
> be done today. Ive added some notes to it and will submit it to MM
> both for them to see what I did and to (maybe) redo it into a standard
> blackstone debug template. I like the CFTREE idea of display and would
> love to see the flash tree used first thing.
> Another piece of blackstone code I'm writing before it comes out. :)
> (I've already put together gateway ideas and code)
> 

I'm not so sure it's a good idea to use the flash tree. Since the
flash stuff in Blackstone is ripped from Flex, and Flex has no concept
of runtime shared libraries, you're looking at at least 100K-120K in
additional file size just for the tree. In a request/response
architecture (i.e., traditional web applications), that's a gi-normous
amount of overhead for what you're trying to accomplish. Obviously,
it's your code and feel free to do as you wish, but I just thought I'd
share that tidbit before you spend hours on a feature that will
probably cause more headaches than it's worth.

Regards.
Dave.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Code mapping software?

2004-07-16 Thread Hugo Ahlenius
... sounds like a good argument for using a framework with a central
dispatcher -- like Mach-II or Fusebox (which you might be using?). It
doesn't map everything, but the main program flow.

--
Hugo Ahlenius

-
Hugo Ahlenius  E-Mail: [EMAIL PROTECTED]
Project Officer    Phone:+46 8 230460
UNEP GRID-Arendal  Fax:  +46 8 230441
Stockholm Office   Mobile: +46 733 467111
   WWW:   http://www.grida.no
- 



| -Original Message-
| From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
| Sent: Friday, July 16, 2004 01:02
| To: CF-Talk
| Subject: Code mapping software?
|
| I'm trying to trace down the includes and CFCs in a large,
| complex site written by a few different programmers. Is there
| any software out there that can be pointed to a directory and
| will map out what includes are used where, what CFCs are
| called where, etc?
| If not, does anyone want to write one? ;)
| --
| Michael Dinowitz
| http://www.houseoffusion.com
| For all your ColdFusion needs
|
|
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-16 Thread Michael Dinowitz
I'm at work now and my first job is to finish it up. I'm hoping it'll
be done today. Ive added some notes to it and will submit it to MM
both for them to see what I did and to (maybe) redo it into a standard
blackstone debug template. I like the CFTREE idea of display and would
love to see the flash tree used first thing.
Another piece of blackstone code I'm writing before it comes out. :)
(I've already put together gateway ideas and code)

- Original Message -
From: DURETTE, STEVEN J (AIT) <[EMAIL PROTECTED]>
Date: Fri, 16 Jul 2004 08:52:39 -0400
Subject: RE: Code mapping software?
To: CF-Talk <[EMAIL PROTECTED]>

Will you let us know when it's available?  It sounds great!



I tried modifying the template to get more info on queries before.  I left

in the original code and added more so I could see if it was working, but

something was wrong and my parts always returned nothing.  After about an

hour I had to drop it and do actual work.



If you don't mind I'd like to the code to maybe find out what I was doing

wrong.



Thanks,

Steve



-Original Message-

From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 

Sent: Friday, July 16, 2004 2:11 AM

To: CF-Talk

Subject: Re: Code mapping software?

Meant basket. :)

What I'm doing is a few things. The first is tracing through the debug

modules and removing things that are just not used. After that, I'm

cleaning up the logic some. Then I'm getting more information for the

debug, but limited to what information comes from the factory.

Finally, I'm threading all the templates called in a page in CFTREE.

This will include cfincludes, modules and CFCs. It's all for better

debugging. I'm not going to go outside of that limited field yet.

When I'm done, anyone can take the template and use it with a file

scanner to get more specific file data.

I just needed to see all the templates in a single pare run, what

called what and where. That's all available through the factory.

On Jul 15, 2004, at 7:44 PM, Michael Dinowitz wrote:

> Well, I've decided that the best thing for me to do is to rewrite the 

> debugging template to my specifications.

>  Holy hell in a hand backet Batman!

Wha's a hand backet?

Are you going to write a source-code analyzer or a runtime-trace?

If the latter, you might consider accepting hints from the various 

modules as they execute.  I did this in some complex code I wrote and I 

think that FB did something like this in one of their implementations.

All I did was have a simple variable that I set in each routine-- 

something like:

Trace...#trace#]

I would paste this at the front of any line I wanted to watch ( at 

least template entry & exit points)

I could turn trace on or off interactively.

You could do this by logging instead of tracing.

Anyway, this helped me quickly isolate any problem areas, then focus, 

in more detail, by adding more tracepoints,

At the time CF didn't have any such facility.   And I found it very 

useful in determining application flow when it depended on external 

events such as CC auth, or CFHttp requests.

Dick 

  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Code mapping software?

2004-07-16 Thread DURETTE, STEVEN J (AIT)
Will you let us know when it's available?  It sounds great!

 
I tried modifying the template to get more info on queries before.  I left
in the original code and added more so I could see if it was working, but
something was wrong and my parts always returned nothing.  After about an
hour I had to drop it and do actual work.

 
If you don't mind I'd like to the code to maybe find out what I was doing
wrong.

 
Thanks,
Steve

-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 16, 2004 2:11 AM
To: CF-Talk
Subject: Re: Code mapping software?

Meant basket. :)

What I'm doing is a few things. The first is tracing through the debug
modules and removing things that are just not used. After that, I'm
cleaning up the logic some. Then I'm getting more information for the
debug, but limited to what information comes from the factory.
Finally, I'm threading all the templates called in a page in CFTREE.
This will include cfincludes, modules and CFCs. It's all for better
debugging. I'm not going to go outside of that limited field yet.
When I'm done, anyone can take the template and use it with a file
scanner to get more specific file data.
I just needed to see all the templates in a single pare run, what
called what and where. That's all available through the factory.

On Jul 15, 2004, at 7:44 PM, Michael Dinowitz wrote:

> Well, I've decided that the best thing for me to do is to rewrite the 

> debugging template to my specifications.

>  Holy hell in a hand backet Batman!

Wha's a hand backet?

Are you going to write a source-code analyzer or a runtime-trace?

If the latter, you might consider accepting hints from the various 

modules as they execute.  I did this in some complex code I wrote and I 

think that FB did something like this in one of their implementations.

All I did was have a simple variable that I set in each routine-- 

something like:

Trace...#trace#]

I would paste this at the front of any line I wanted to watch ( at 

least template entry & exit points)

I could turn trace on or off interactively.

You could do this by logging instead of tracing.

Anyway, this helped me quickly isolate any problem areas, then focus, 

in more detail, by adding more tracepoints,

At the time CF didn't have any such facility.   And I found it very 

useful in determining application flow when it depended on external 

events such as CC auth, or CFHttp requests.

Dick 
  _
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-15 Thread Michael Dinowitz
Meant basket. :)

What I'm doing is a few things. The first is tracing through the debug
modules and removing things that are just not used. After that, I'm
cleaning up the logic some. Then I'm getting more information for the
debug, but limited to what information comes from the factory.
Finally, I'm threading all the templates called in a page in CFTREE.
This will include cfincludes, modules and CFCs. It's all for better
debugging. I'm not going to go outside of that limited field yet.
When I'm done, anyone can take the template and use it with a file
scanner to get more specific file data.
I just needed to see all the templates in a single pare run, what
called what and where. That's all available through the factory.

On Jul 15, 2004, at 7:44 PM, Michael Dinowitz wrote:

> Well, I've decided that the best thing for me to do is to rewrite the 

> debugging template to my specifications.

>  Holy hell in a hand backet Batman!

Wha's a hand backet?

Are you going to write a source-code analyzer or a runtime-trace?

If the latter, you might consider accepting hints from the various 

modules as they execute.  I did this in some complex code I wrote and I 

think that FB did something like this in one of their implementations.

All I did was have a simple variable that I set in each routine-- 

something like:

Trace...#trace#]

I would paste this at the front of any line I wanted to watch ( at 

least template entry & exit points)

I could turn trace on or off interactively.

You could do this by logging instead of tracing.

Anyway, this helped me quickly isolate any problem areas, then focus, 

in more detail, by adding more tracepoints,

At the time CF didn't have any such facility.   And I found it very 

useful in determining application flow when it depended on external 

events such as CC auth, or CFHttp requests.

Dick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-15 Thread Dick Applebaum
On Jul 15, 2004, at 7:44 PM, Michael Dinowitz wrote:

> Well, I've decided that the best thing for me to do is to rewrite the 
> debugging template to my specifications.
>  Holy hell in a hand backet Batman!

Wha's a hand backet?

Are you going to write a source-code analyzer or a runtime-trace?

If the latter, you might consider accepting hints from the various 
modules as they execute.  I did this in some complex code I wrote and I 
think that FB did something like this in one of their implementations.

All I did was have a simple variable that I set in each routine-- 
something like:

Trace...#trace#]

I would paste this at the front of any line I wanted to watch ( at 
least template entry & exit points)

I could turn trace on or off interactively.

You could do this by logging instead of tracing.

Anyway, this helped me quickly isolate any problem areas, then focus, 
in more detail, by adding more tracepoints,

At the time CF didn't have any such facility.   And I found it very 
useful in determining application flow when it depended on external 
events such as CC auth, or CFHttp requests.

Dick
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-15 Thread Michael Dinowitz
Well, I've decided that the best thing for me to do is to rewrite the debugging template to my specifications. 
Holy hell in a hand backet Batman! 
This code is clean but mostly useless. I see queries that are never used, try/catch blocks thrown in for no reason other to have them and more. Looks like I'm going to have to clean it up before I make use of it. When I'm done, Dinowitz_Debug will be a debug template using a CFTREE (yes, I think it's needed for some sites) to show the flow of templates and information. It will also provide more information about stored procedures than the current debug template does and will reorder the variable dumps.
I kind of need it now, so that's what I'm working on at the moment. Anyone have a suggestion or such, let me know.

Just as an example, the call to the factory is inside a try catch with the catch doing nothing. Then there's a bunch of queries to the factory data. All of these are in try catches with nothing in the catch. Point is, if the factory fails, you should abort the template with an error message rather than going on as all of the debug will fail. If the factory exists, then all the queries will exist (though some may return nothing). Therefore, there's no need for a try/catch around each one. 
Also, queries that are never used should just be removed. Why add query overhead for no reason.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-15 Thread S . Isaac Dealey
It wouldn't work with any of my applications. I almost never use
hard-coded paths in cfinclude, cfmodule or createobject() calls for
cfc's... So the application would never have any idea where to go find
the next template. Luckily I have a system (tm) so it's real easy to
figure out for myself where those files are. :)

> Mike, I actually wrote something like that about a year or
> so ago,
> when I had to produce documentation for a content
> management system
> that I inherited that had no documentation.  It didn't
> handle CFCs (a
> CF 5 environment), but it could with minor adjustments.
> It did a lot
> of it automatically.  I can see if I can find the code.
> It ran with
> an Access DB (was just running on my local machine).

> On Thu, 15 Jul 2004 16:26:45 -0700, Spike
> <[EMAIL PROTECTED]> wrote:
>> This is relatively easy to write in ColdFusion, but it
>> wouldn't necessarily
>> be the fastest thing on earth.
>>
>> It really depends on what exactly you want to find in the
>> code and what you
>> want to do with the results.
>>
>> If you're not too fussy you can use the default Microsoft
>> search on windows
>> to find stuff in files with a specific extension.
>>
>> If you are fussy then chances are that the simplest
>> solution would be to use
>> a recursive cfdirectory call, loop over the results, then
>> load and search
>> the contents of each file for a specific set of strings
>> such as cfinclude,
>> cfinvoke, createObject('component' etc.
>>
>> Or did I misunderstand what you were asking?
>>
>> Spike
>>
>> 
>> Stephen Milligan
>> Code poet for hire
>> http://www.spike.org.uk
>>
>> Do you cfeclipse? http://cfeclipse.tigris.org
>>
>>
>> >-Original Message-
>> >From: [EMAIL PROTECTED]
>> >[mailto:[EMAIL PROTECTED] On Behalf Of
>> >Michael Dinowitz
>> >Sent: Thursday, July 15, 2004 3:02 PM
>> >To: CF-Talk
>> >Subject: Code mapping software?
>> >
>> >I'm trying to trace down the includes and CFCs in a
>> >large, complex
>> >site written by a few different programmers. Is there
>> >any software out
>> >there that can be pointed to a directory and will map
>> >out what
>> >includes are used where, what CFCs are called where,
>> >etc?
>> >If not, does anyone want to write one? ;)
>> >--
>> >Michael Dinowitz
>> >http://www.houseoffusion.com
>> >For all your ColdFusion needs
>> >
>> >
>>
>>

>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-15 Thread S . Isaac Dealey
> I'm trying to trace down the includes and CFCs in a large,
> complex
> site written by a few different programmers. Is there any
> software out
> there that can be pointed to a directory and will map out
> what
> includes are used where, what CFCs are called where, etc?
> If not, does anyone want to write one? ;)

I suppose I could... I'm not sure if I actually _desire_ to. :)

s. isaac dealey 954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
http://www.sys-con.com/story/?storyid=45569&DE=1
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Code mapping software?

2004-07-15 Thread Brian Meloche
Mike, I actually wrote something like that about a year or so ago,
when I had to produce documentation for a content management system
that I inherited that had no documentation.  It didn't handle CFCs (a
CF 5 environment), but it could with minor adjustments.  It did a lot
of it automatically.  I can see if I can find the code.  It ran with
an Access DB (was just running on my local machine).

On Thu, 15 Jul 2004 16:26:45 -0700, Spike <[EMAIL PROTECTED]> wrote:
> This is relatively easy to write in ColdFusion, but it wouldn't necessarily
> be the fastest thing on earth.
> 
> It really depends on what exactly you want to find in the code and what you
> want to do with the results.
> 
> If you're not too fussy you can use the default Microsoft search on windows
> to find stuff in files with a specific extension.
> 
> If you are fussy then chances are that the simplest solution would be to use
> a recursive cfdirectory call, loop over the results, then load and search
> the contents of each file for a specific set of strings such as cfinclude,
> cfinvoke, createObject('component' etc.
> 
> Or did I misunderstand what you were asking?
> 
> Spike
> 
> 
> Stephen Milligan
> Code poet for hire
> http://www.spike.org.uk
> 
> Do you cfeclipse? http://cfeclipse.tigris.org
> 
> 
> >-Original Message-
> >From: [EMAIL PROTECTED]
> >[mailto:[EMAIL PROTECTED] On Behalf Of Michael Dinowitz
> >Sent: Thursday, July 15, 2004 3:02 PM
> >To: CF-Talk
> >Subject: Code mapping software?
> >
> >I'm trying to trace down the includes and CFCs in a large, complex
> >site written by a few different programmers. Is there any software out
> >there that can be pointed to a directory and will map out what
> >includes are used where, what CFCs are called where, etc?
> >If not, does anyone want to write one? ;)
> >--
> >Michael Dinowitz
> >http://www.houseoffusion.com
> >For all your ColdFusion needs
> >
> >
> 
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Code mapping software?

2004-07-15 Thread Spike
This is relatively easy to write in ColdFusion, but it wouldn't necessarily
be the fastest thing on earth.

It really depends on what exactly you want to find in the code and what you
want to do with the results.

If you're not too fussy you can use the default Microsoft search on windows
to find stuff in files with a specific extension.

If you are fussy then chances are that the simplest solution would be to use
a recursive cfdirectory call, loop over the results, then load and search
the contents of each file for a specific set of strings such as cfinclude,
cfinvoke, createObject('component' etc.

Or did I misunderstand what you were asking?

Spike


Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org 


>-Original Message-
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of Michael Dinowitz
>Sent: Thursday, July 15, 2004 3:02 PM
>To: CF-Talk
>Subject: Code mapping software?
>
>I'm trying to trace down the includes and CFCs in a large, complex
>site written by a few different programmers. Is there any software out
>there that can be pointed to a directory and will map out what
>includes are used where, what CFCs are called where, etc?
>If not, does anyone want to write one? ;)
>-- 
>Michael Dinowitz
>http://www.houseoffusion.com
>For all your ColdFusion needs
>
>
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]