Coolskool : Kola Oyedeji's Cool Technology Blog

Search Box

 

Calendar

««Nov 2009»»
SMTWTFS
1234567
891011121314
15161718192021
22232425262728
2930

My RSS Feeds








HTML Snippet

Hit Counter

Total: 803,380
since: 7 Nov 2003

Categorys

Unit testing Fusebox 3/4 applications

posted Monday, 25 July 2005
A recent conversation prompted me to post this. I'm still quite suprised that people who are still in the procedural world (i.e. not using mach-ii etc.) are not making full use of cfcs. Let's not forget that they can still be used in procedural apps. Even if you are using fusebox 3 - at the bear minimum I would recommend putting the functionality which is encapsulated in act_ files or fbx_settings files into cfcs. If you're using fusebox 4 you can use the invoke tag to call CFCs directly. Why? well 2 reasons really, the first (and in my mind the most important) is that it allows you to unit test the core business logic of your application using a unit test framework such as CFCunit. The second obvious reason is it allows you in the future to easily move to another framework. I have come across a lot of Fb3 applications which make minimal use of cfcs - in my mind the ability to unit test alone is a strong argument for moving a lot of your logic in fusebox applications into cfcs.

links: digg this    del.icio.us    technorati    reddit




1. Brian Kotek left...
Monday, 25 July 2005 2:31 pm

You are correct Kola! Testing is mandatory here. Whether you write the test up front (best choice) or test after development to ensure that changes and bug fixes don't break existing code, just test! :-)