RE: Fusebox - is there a trick to following the flow?
You might want to start by flow charting the site (physically speaking). This will give you a map of what the page flow is. Eric -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 7:29 AM To: CF-Talk Subject: Fusebox - is there a trick to following the flow? I have inherited a fusebox4.0 app to maintain that has dozens of circuits that are reused all over the place. I know that's how fusebox is supposed to work, and it makes sense to reuse the fuses, but wow it takes AGES to follow the flow of the program. And i end up with dozens of files open, all called circuit.xml.cfm so its easy to make a mistake following it all along. For example I have to figure out how something works, so i can maintain it, or build something else similar. In order to find out how the task works, i follow one xml file through, seeing dozens of fuses, all of which i have to go to, open the circuits.xml.cfm relating to it, follow that one along, then open more. By the time i've got to the final, actual coldfusoin type tags relating to the functionality, i've almost forgotten what it was i started out to do. Is there a shortcut to working out how everything's bolted together? If i keep taking hours to work out the simplest things i'm not going to last long on this assignment. -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284607 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Fusebox - is there a trick to following the flow?
On 7/25/07, Mike Kear [EMAIL PROTECTED] wrote: Is it a simple/trivial thing to convert to fusebox 5+ ? Well, in *theory* it's just a matter of installing the FB51 core files under your webroot (or elsewhere and add a /fusebox5 mapping) and then you just change your application's index.cfm to cfinclude /fusebox5/fusebox5.cfm instead of the Fuebox 4 runtime. In theory. There are one or two incompatibilities but they are in corner cases so it will depend on whether your scary FB4 app uses exotic plugins or has odd FB code in it. Happy to help you offlist (you know my email / IMs right? :) - we can figure out some suitable approach... -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284612 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Fusebox - is there a trick to following the flow?
I'd say the debugging information with order of execution and execution times and templates and paths is most useful for this. It tells you what templates are being executed and where. -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 8:29 AM To: CF-Talk Subject: Fusebox - is there a trick to following the flow? I have inherited a fusebox4.0 app to maintain that has dozens of circuits that are reused all over the place. I know that's how fusebox is supposed to work, and it makes sense to reuse the fuses, but wow it takes AGES to follow the flow of the program. And i end up with dozens of files open, all called circuit.xml.cfm so its easy to make a mistake following it all along. For example I have to figure out how something works, so i can maintain it, or build something else similar. In order to find out how the task works, i follow one xml file through, seeing dozens of fuses, all of which i have to go to, open the circuits.xml.cfm relating to it, follow that one along, then open more. By the time i've got to the final, actual coldfusoin type tags relating to the functionality, i've almost forgotten what it was i started out to do. Is there a shortcut to working out how everything's bolted together? If i keep taking hours to work out the simplest things i'm not going to last long on this assignment. -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284520 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fusebox - is there a trick to following the flow?
If you have debug access I have an enhanced debug template that shows the full flow of an application. It includes standard templates, components, custom tags and includes in a full tree view. ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284521 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fusebox - is there a trick to following the flow?
Thanks Michael, that sounds interesting. I'd like to have a look at that. I'm new to fusebox, and I have to say I'm yet to be convinced it's better than the way I do my own sites. But i inherited it, and it's not going to be rebuilt any time soon, so I have to roll my sleeves up and learn everything there is to know about it. That wont do me any harm, so I'm not complaining. But as i said in my original post, Im not sure how long the client's going to tolerate my being slow as a wet week getting even the simplest things done while i learn fusebox4.And my body can't take too many more all-nighters just because I'm slow getting things done. So i am under a lot of pressure to find a quicker way to get across this app. the previous guy used all the tricks and techniques in the fusebox arsenal, so it looks nothing like the tutorials I've done either. I've faced steep learning curves before, but this is about the steepest I've ever come across. Thanks for your help Michael. Any help is much appreciated. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/25/07, Michael Dinowitz [EMAIL PROTECTED] wrote: If you have debug access I have an enhanced debug template that shows the full flow of an application. It includes standard templates, components, custom tags and includes in a full tree view. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284523 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Fusebox - is there a trick to following the flow?
Michael, is this available somewhere? I'd really like to check it out. -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 9:13 AM To: CF-Talk Subject: Re: Fusebox - is there a trick to following the flow? If you have debug access I have an enhanced debug template that shows the full flow of an application. It includes standard templates, components, custom tags and includes in a full tree view. ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284531 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fusebox - is there a trick to following the flow?
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote: Michael, is this available somewhere? I'd really like to check it out. Turn on the relevant debug option in the CF admin. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284534 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Fusebox - is there a trick to following the flow?
He said it's a custom template. Like you set in the administrator. -Original Message- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:10 AM To: CF-Talk Subject: Re: Fusebox - is there a trick to following the flow? On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote: Michael, is this available somewhere? I'd really like to check it out. Turn on the relevant debug option in the CF admin. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284540 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Fusebox - is there a trick to following the flow?
It wasn't that steep when I tried learning it, but then again, I learned on FB3. :) The idea is that you only open up 1 circuit.xml file at a time. trace down the error that's causing a fuseaction to go kaput and then move onto the next. It shoulds like you are opening all the pages that have errors and trying to fix them all in one fell swoop. You can't do that with fusebox (and not lose your sanity). Just fix each problem one at a time until the whole app works. Hopefully, that helps. Mike Kear wrote: Thanks Michael, that sounds interesting. I'd like to have a look at that. I'm new to fusebox, and I have to say I'm yet to be convinced it's better than the way I do my own sites. But i inherited it, and it's not going to be rebuilt any time soon, so I have to roll my sleeves up and learn everything there is to know about it. That wont do me any harm, so I'm not complaining. But as i said in my original post, Im not sure how long the client's going to tolerate my being slow as a wet week getting even the simplest things done while i learn fusebox4.And my body can't take too many more all-nighters just because I'm slow getting things done. So i am under a lot of pressure to find a quicker way to get across this app. the previous guy used all the tricks and techniques in the fusebox arsenal, so it looks nothing like the tutorials I've done either. I've faced steep learning curves before, but this is about the steepest I've ever come across. Thanks for your help Michael. Any help is much appreciated. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/25/07, Michael Dinowitz [EMAIL PROTECTED] wrote: If you have debug access I have an enhanced debug template that shows the full flow of an application. It includes standard templates, components, custom tags and includes in a full tree view. ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284539 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Fusebox - is there a trick to following the flow?
Sandra, thank you!That looks extremely helpful. What does parameter name=mode value=development / do? Does it force a reload of the XML files every page view? If so, that's what i've been looking for for days now! And yes, this app seems pretty well written by the previous guy. IT reuses code a LOT. It is built on MVC archtecture everywhere. But it's big though.In the main folder there are 29,547 files to come to grips with! Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/26/07, Sandra Clark [EMAIL PROTECTED] wrote: Couple of things that will help in Debugging a Fusebox 4+ app. 1) Validate the XML in circuit.xml.cfm. Fusebox will burp on bad XML. If an error shows up in the parsed file. (circuit.fuseaction.cfm) then the error is in the circuit. Most well done FB4+ apps usually use MVC. The controller will act as your traffic cop. Noting which parsed file is throwing the error, will enable you to quickly move to the controller circuit and fuseaction. In fusebox.xml.cfm make sure that in the parameters section that parameter name=debug value=true /. This will turn on some debugging in your parsed files so that you can go down to where the error is and find out which circuit file and lines are throwing the actual error. Make sure to turn this off once you go into production. Always develop in parameter name=mode value=development / (for Fusebox 4) and parameter name=mode value=development-full-load / (for Fusebox 5+) Once you go into production parameter name=mode value=production / if you need to change something in your circuits, delete all parsed files, and call your page with http://yourwebsite/index.cfm?fusebox.load=truefusebox.password= (you set your password in the parameters section of fusebox.xml.cfm using parameter name=password value=/. Sandra Clark = http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 8:29 AM To: CF-Talk Subject: Fusebox - is there a trick to following the flow? I have inherited a fusebox4.0 app to maintain that has dozens of circuits that are reused all over the place. I know that's how fusebox is supposed to work, and it makes sense to reuse the fuses, but wow it takes AGES to follow the flow of the program. And i end up with dozens of files open, all called circuit.xml.cfm so its easy to make a mistake following it all along. For example I have to figure out how something works, so i can maintain it, or build something else similar. In order to find out how the task works, i follow one xml file through, seeing dozens of fuses, all of which i have to go to, open the circuits.xml.cfm relating to it, follow that one along, then open more. By the time i've got to the final, actual coldfusoin type tags relating to the functionality, i've almost forgotten what it was i started out to do. Is there a shortcut to working out how everything's bolted together? If i keep taking hours to work out the simplest things i'm not going to last long on this assignment. -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284549 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Fusebox - is there a trick to following the flow?
Couple of things that will help in Debugging a Fusebox 4+ app. 1) Validate the XML in circuit.xml.cfm. Fusebox will burp on bad XML. If an error shows up in the parsed file. (circuit.fuseaction.cfm) then the error is in the circuit. Most well done FB4+ apps usually use MVC. The controller will act as your traffic cop. Noting which parsed file is throwing the error, will enable you to quickly move to the controller circuit and fuseaction. In fusebox.xml.cfm make sure that in the parameters section that parameter name=debug value=true /. This will turn on some debugging in your parsed files so that you can go down to where the error is and find out which circuit file and lines are throwing the actual error. Make sure to turn this off once you go into production. Always develop in parameter name=mode value=development / (for Fusebox 4) and parameter name=mode value=development-full-load / (for Fusebox 5+) Once you go into production parameter name=mode value=production / if you need to change something in your circuits, delete all parsed files, and call your page with http://yourwebsite/index.cfm?fusebox.load=truefusebox.password= (you set your password in the parameters section of fusebox.xml.cfm using parameter name=password value=/. Sandra Clark = http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 8:29 AM To: CF-Talk Subject: Fusebox - is there a trick to following the flow? I have inherited a fusebox4.0 app to maintain that has dozens of circuits that are reused all over the place. I know that's how fusebox is supposed to work, and it makes sense to reuse the fuses, but wow it takes AGES to follow the flow of the program. And i end up with dozens of files open, all called circuit.xml.cfm so its easy to make a mistake following it all along. For example I have to figure out how something works, so i can maintain it, or build something else similar. In order to find out how the task works, i follow one xml file through, seeing dozens of fuses, all of which i have to go to, open the circuits.xml.cfm relating to it, follow that one along, then open more. By the time i've got to the final, actual coldfusoin type tags relating to the functionality, i've almost forgotten what it was i started out to do. Is there a shortcut to working out how everything's bolted together? If i keep taking hours to work out the simplest things i'm not going to last long on this assignment. -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284547 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Fusebox - is there a trick to following the flow?
Thanks for your suggestion Phillip. Actually what I am currently tasked with is duplicate part of the functionality of one circuit in a new circuit. At first sight, all i have to do is copy that circuit to a new folder, tweak the circuit.xml.cfm files a bit and change the dsp files to show the new presentation stuff since the business logic is much the same. Not identical but quite similar. However the existing circuit uses lots of other circuits - reusing code as it's supposed to. So figuring out what they all do is not easy.A fuse for example might have 6-8 do actions, and i need to konw what each is doing in order to figure out fi they're relevant to this task or not. Or if i have to write new versions of them for this new task. And each of those other fuses are usually on the controller circuits.xml.cfm, and call the model and/or view fuses. In order to follow the flow through one fuse on my new app, I sometimes have to open 20-30 files spread out over the 46 circuits in the main site, just to figure out what is being done by what. That's my current problem. Just learning how to follow the flow of the app so I know what files I need to keep, what i need to re-write, and what dont do anything at all for this app. A quicker way to work out what's doing what would give me more sleep, more deadlines met, and a happier client. Given time, I can learn this monster easily and get the hang of it. But will the client wait that long? Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/26/07, Phillip M. Vector [EMAIL PROTECTED] wrote: It wasn't that steep when I tried learning it, but then again, I learned on FB3. :) The idea is that you only open up 1 circuit.xml file at a time. trace down the error that's causing a fuseaction to go kaput and then move onto the next. It shoulds like you are opening all the pages that have errors and trying to fix them all in one fell swoop. You can't do that with fusebox (and not lose your sanity). Just fix each problem one at a time until the whole app works. Hopefully, that helps. ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284548 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Fusebox - is there a trick to following the flow?
I'd recommend that you call the fuseaction in question, rather than copy the file itself. You would do this using the do action=circuit.fuseaction / verb. That way the core files will take care of making sure your dependencies are all there, and you will have very little editing to do. Even if the logic is similar but not identical it might be easier to add conditional logic to the original circuit that would expose your new functionality, rather than essentially duplicating functionality in your application. -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:52 AM To: CF-Talk Subject: Re: Fusebox - is there a trick to following the flow? Thanks for your suggestion Phillip. Actually what I am currently tasked with is duplicate part of the functionality of one circuit in a new circuit. At first sight, all i have to do is copy that circuit to a new folder, tweak the circuit.xml.cfm files a bit and change the dsp files to show the new presentation stuff since the business logic is much the same. Not identical but quite similar. However the existing circuit uses lots of other circuits - reusing code as it's supposed to. So figuring out what they all do is not easy.A fuse for example might have 6-8 do actions, and i need to konw what each is doing in order to figure out fi they're relevant to this task or not. Or if i have to write new versions of them for this new task. And each of those other fuses are usually on the controller circuits.xml.cfm, and call the model and/or view fuses. In order to follow the flow through one fuse on my new app, I sometimes have to open 20-30 files spread out over the 46 circuits in the main site, just to figure out what is being done by what. That's my current problem. Just learning how to follow the flow of the app so I know what files I need to keep, what i need to re-write, and what dont do anything at all for this app. A quicker way to work out what's doing what would give me more sleep, more deadlines met, and a happier client. Given time, I can learn this monster easily and get the hang of it. But will the client wait that long? Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/26/07, Phillip M. Vector [EMAIL PROTECTED] wrote: It wasn't that steep when I tried learning it, but then again, I learned on FB3. :) The idea is that you only open up 1 circuit.xml file at a time. trace down the error that's causing a fuseaction to go kaput and then move onto the next. It shoulds like you are opening all the pages that have errors and trying to fix them all in one fell swoop. You can't do that with fusebox (and not lose your sanity). Just fix each problem one at a time until the whole app works. Hopefully, that helps. ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284550 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Fusebox - is there a trick to following the flow?
Development mode forces a reload of the circuit files, parsed files and the fusebox with each call. Production mode will only reload the parsed files if they aren't there and it won't pick up changes in the circuit files either. The problem is that forcing the recall from production mode to pick up the changes requires the url variables I mentioned. Use development mode now, change to production mode once you are ready to deploy to the production server. Development modes are not thread safe. Sandra Clark = http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:56 AM To: CF-Talk Subject: Re: Fusebox - is there a trick to following the flow? Sandra, thank you!That looks extremely helpful. What does parameter name=mode value=development / do? Does it force a reload of the XML files every page view? If so, that's what i've been looking for for days now! And yes, this app seems pretty well written by the previous guy. IT reuses code a LOT. It is built on MVC archtecture everywhere. But it's big though.In the main folder there are 29,547 files to come to grips with! Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/26/07, Sandra Clark [EMAIL PROTECTED] wrote: Couple of things that will help in Debugging a Fusebox 4+ app. 1) Validate the XML in circuit.xml.cfm. Fusebox will burp on bad XML. If an error shows up in the parsed file. (circuit.fuseaction.cfm) then the error is in the circuit. Most well done FB4+ apps usually use MVC. The controller will act as your traffic cop. Noting which parsed file is throwing the error, will enable you to quickly move to the controller circuit and fuseaction. In fusebox.xml.cfm make sure that in the parameters section that parameter name=debug value=true /. This will turn on some debugging in your parsed files so that you can go down to where the error is and find out which circuit file and lines are throwing the actual error. Make sure to turn this off once you go into production. Always develop in parameter name=mode value=development / (for Fusebox 4) and parameter name=mode value=development-full-load / (for Fusebox 5+) Once you go into production parameter name=mode value=production / if you need to change something in your circuits, delete all parsed files, and call your page with http://yourwebsite/index.cfm?fusebox.load=truefusebox.password= (you set your password in the parameters section of fusebox.xml.cfm using parameter name=password value=/. Sandra Clark = http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 8:29 AM To: CF-Talk Subject: Fusebox - is there a trick to following the flow? I have inherited a fusebox4.0 app to maintain that has dozens of circuits that are reused all over the place. I know that's how fusebox is supposed to work, and it makes sense to reuse the fuses, but wow it takes AGES to follow the flow of the program. And i end up with dozens of files open, all called circuit.xml.cfm so its easy to make a mistake following it all along. For example I have to figure out how something works, so i can maintain it, or build something else similar. In order to find out how the task works, i follow one xml file through, seeing dozens of fuses, all of which i have to go to, open the circuits.xml.cfm relating to it, follow that one along, then open more. By the time i've got to the final, actual coldfusoin type tags relating to the functionality, i've almost forgotten what it was i started out to do. Is there a shortcut to working out how everything's bolted together? If i keep taking hours to work out the simplest things i'm not going to last long on this assignment. -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| ColdFusion 8 beta - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284560 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fusebox - is there a trick to following the flow?
Thanks Sean. Your advice is very welcome. It's a Fusebox 4.0.2 app. The circuits folder has 28,000 files in it! Took 45 minutes just to unzip onto my dev PC. Is it a simple/trivial thing to convert to fusebox 5+ ?It's not going to be something i'm going to be paid to do, so it needs to be trivial or I wont be able to do it. I like to stay up with the times - just a step behind the cutting edge. But to tell the truth I'm starting to see the benefits of fusebox as i've gradually got familiar with it. Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/26/07, Sean Corfield [EMAIL PROTECTED] wrote: On 7/25/07, Mike Kear [EMAIL PROTECTED] wrote: What does parameter name=mode value=development / do? Does it force a reload of the XML files every page view? Yup. It'll makes things run slowly (since the framework is reloading on every request) but it will enable you to test the changes you are making more easily. If you are using Fusebox 5.x core files, you probably want development-circuit-load for mode instead since that will be faster (but won't pick up changes to fusebox.xml.cfm - you need to force a fusebox.load for that). Also, if you used the Fusebox 5.x core files, you can enable debug/tracing by adding: In fusebox.xml.cfm make sure that in the parameters section that parameter name=debug value=true /. This will show a couple trace of every fuseaction in a request which can be very helpful (but it's a new option in Fusebox 5). Fusebox tries hard not to get in your way as a developer and the downside of that is that it does not place many restrictions on you in terms of structure. That makes it possible to create very complex, unstructured workflows :( A well-structured Fusebox app is a joy to maintain - as long as circuit and fuseaction names have been well chosen and the call tree (of do) is top-down. It sounds like neither of those are true in the app you've inherited, especially with calls from low-level circuits being made back to higher-level circuits which is definitely poor practice. It would be like having model CFCs trying to call controller CFCs in Model-Glue or Mach II. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284582 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Fusebox - is there a trick to following the flow?
I would investigate migrating it to FB5 because the FB debug is awesome. You can turn the CFdebug off then. Greg On 7/25/07, Sandra Clark [EMAIL PROTECTED] wrote: Development mode forces a reload of the circuit files, parsed files and the fusebox with each call. Production mode will only reload the parsed files if they aren't there and it won't pick up changes in the circuit files either. The problem is that forcing the recall from production mode to pick up the changes requires the url variables I mentioned. Use development mode now, change to production mode once you are ready to deploy to the production server. Development modes are not thread safe. Sandra Clark = http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 10:56 AM To: CF-Talk Subject: Re: Fusebox - is there a trick to following the flow? Sandra, thank you!That looks extremely helpful. What does parameter name=mode value=development / do? Does it force a reload of the XML files every page view? If so, that's what i've been looking for for days now! And yes, this app seems pretty well written by the previous guy. IT reuses code a LOT. It is built on MVC archtecture everywhere. But it's big though.In the main folder there are 29,547 files to come to grips with! Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 7/26/07, Sandra Clark [EMAIL PROTECTED] wrote: Couple of things that will help in Debugging a Fusebox 4+ app. 1) Validate the XML in circuit.xml.cfm. Fusebox will burp on bad XML. If an error shows up in the parsed file. (circuit.fuseaction.cfm) then the error is in the circuit. Most well done FB4+ apps usually use MVC. The controller will act as your traffic cop. Noting which parsed file is throwing the error, will enable you to quickly move to the controller circuit and fuseaction. In fusebox.xml.cfm make sure that in the parameters section that parameter name=debug value=true /. This will turn on some debugging in your parsed files so that you can go down to where the error is and find out which circuit file and lines are throwing the actual error. Make sure to turn this off once you go into production. Always develop in parameter name=mode value=development / (for Fusebox 4) and parameter name=mode value=development-full-load / (for Fusebox 5+) Once you go into production parameter name=mode value=production / if you need to change something in your circuits, delete all parsed files, and call your page with http://yourwebsite/index.cfm?fusebox.load=truefusebox.password= (you set your password in the parameters section of fusebox.xml.cfm using parameter name=password value=/. Sandra Clark = http://www.shayna.com Training and Consulting in CSS and Accessibility Team Fusebox -Original Message- From: Mike Kear [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 8:29 AM To: CF-Talk Subject: Fusebox - is there a trick to following the flow? I have inherited a fusebox4.0 app to maintain that has dozens of circuits that are reused all over the place. I know that's how fusebox is supposed to work, and it makes sense to reuse the fuses, but wow it takes AGES to follow the flow of the program. And i end up with dozens of files open, all called circuit.xml.cfm so its easy to make a mistake following it all along. For example I have to figure out how something works, so i can maintain it, or build something else similar. In order to find out how the task works, i follow one xml file through, seeing dozens of fuses, all of which i have to go to, open the circuits.xml.cfm relating to it, follow that one along, then open more. By the time i've got to the final, actual coldfusoin type tags relating to the functionality, i've almost forgotten what it was i started out to do. Is there a shortcut to working out how everything's bolted together? If i keep taking hours to work out the simplest things i'm not going to last long on this assignment. -- Cheers Mike Kear Windsor, NSW, Australia Adobe Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month ~| Check out the new features and enhancements in the latest product release - download the What's New PDF now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284592 Subscription:
Re: Fusebox - is there a trick to following the flow?
On 7/25/07, Mike Kear [EMAIL PROTECTED] wrote: What does parameter name=mode value=development / do? Does it force a reload of the XML files every page view? Yup. It'll makes things run slowly (since the framework is reloading on every request) but it will enable you to test the changes you are making more easily. If you are using Fusebox 5.x core files, you probably want development-circuit-load for mode instead since that will be faster (but won't pick up changes to fusebox.xml.cfm - you need to force a fusebox.load for that). Also, if you used the Fusebox 5.x core files, you can enable debug/tracing by adding: In fusebox.xml.cfm make sure that in the parameters section that parameter name=debug value=true /. This will show a couple trace of every fuseaction in a request which can be very helpful (but it's a new option in Fusebox 5). Fusebox tries hard not to get in your way as a developer and the downside of that is that it does not place many restrictions on you in terms of structure. That makes it possible to create very complex, unstructured workflows :( A well-structured Fusebox app is a joy to maintain - as long as circuit and fuseaction names have been well chosen and the call tree (of do) is top-down. It sounds like neither of those are true in the app you've inherited, especially with calls from low-level circuits being made back to higher-level circuits which is definitely poor practice. It would be like having model CFCs trying to call controller CFCs in Model-Glue or Mach II. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284557 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4