Fuse (programming)

Fuse (programming)

A fuse is where the work of a Fusebox web application is done. They are small separate files that are called by the Fusebox to do one and only one task. Fuses start with dsp_, lay_, act_ or qry_ to separate out the display, layout, CFML and SQL parts of the code.

Display fuses (dsp_ prefix) and Layout fuses (lay_ prefix) are the only fuses that can present output to the client. Some CFML tags such as CFOUTPUT and sometimes CFIF are allowed, but the idea is to restrict these fuses to mainly HTML. This allows graphics and Web designers to edit them more easily than typical CF heavy files. Note the display may be in regular HTML for a browser, or WML for a WAP phone, or XML for a web service. In the latter cases Fusebox does not add any white space to your output, which saves many headaches when creating web services.

Action fuses (act_ prefix) on the other hand only contain CFML and cannot display output. They however may assemble data for display into variables that are used in later dsp_ files. This focus on CFML by action fuses eases debugging and reusability.

Query fuses (qry_ prefix) also can not display output, but unlike action fuses they are for SQL queries and other record set producing tags such as CFDIRECTORY. In addition to the query tag they might also use CFPARAM and CFQUERYPARM to validate their arguments but no other CFML processing. Keeping all the queries in one file type makes it easy to hand off SQL to a DBA for optimization or conversion to stored procedures. In fact some Fuseboxers use a fake query generating tag called CF_QuerySim( [http://www.halhelms.com www.halhelms.com] ) to generate result sets even before the database design is complete!

See also

Fusebox (programming)

External links

* [http://www.fusebox.org Fusebox organization]
* [http://www.cfconf.org/fusebox2004/ Fusebox conference]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • fuse programming — išdeginamasis programavimas statusas T sritis automatika atitikmenys: angl. fuse programming vok. Schmelzverbindungsprogrammierung, f rus. программирование пережиганием перемычек, n pranc. programmation câblée, f …   Automatikos terminų žodynas

  • Fuse TV — Launched 1994 (As MMUSA) May 19, 2003 (As Fuse) Owned by Madison Square Garden, Inc. (since 2010) Picture format 480i (SDTV) 1080i (HDTV) Slogan …   Wikipedia

  • FUSE — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom …   Wikipédia en Français

  • Fuse — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. Sur les autres projets Wikimedia : « Fuse », sur le Wiktionnaire (dictionnaire universel) FUSE (Far Ultraviolet Spectroscopic Explorer), le …   Wikipédia en Français

  • Fuse — NOTOC The word fuse has several meanings: * Fuse (electrical), a device used in electrical systems to protect against excessive current. * Fuse (hydraulic), a device used in hydraulic systems to protect against sudden loss of fluid pressure *… …   Wikipedia

  • Fusebox (programming) — Fusebox is a web application framework for ColdFusion and PHP. Originally released in 1997, it is currently in its fifth major incarnation. The current version, Fusebox 5.5, was released to the world at the beginning of December 2007.Fusebox is… …   Wikipedia

  • Reactive programming — is a programming paradigm oriented around data flows and the propagation of change. This means that it should be possible to express static or dynamic data flows with ease in the programming languages used, and that the underlying execution model …   Wikipedia

  • Channel 4 programming — Channel 4, in common with the other main British stations broadcast on analogue, airs a highly comprehensive range of programming. It was established in 1982 with a specific intention of providing programming to groups of minority interests, not… …   Wikipedia

  • Microsoft FUSE Labs — Microsoft s Future Social Experiences (FUSE) Labs was started by Ray Ozzie and is run by Lili Cheng. The group focuses on real time and media rich experiences and is located in Redmond, WA, Cambridge, MA, and Cambridge, UK. Its official sub… …   Wikipedia

  • Dryad (programming) — Dryad is an ongoing research project at Microsoft Research for a general purpose runtime for execution of data parallel applications. An application written for Dryad is modeled as a directed acyclic graph (DAG). The DAG defines the dataflow of… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”