Copyright © Philip M. Parker, INSEAD. Terms of Use.

ACCUMULATE AND FIRE
Specialty Definition: Accumulate and fire
(From Wikipedia, the free Encyclopedia)
"
Accumulate and fire" is a programming style in which the program sets a number of global variables or objectss, then invokes subprograms or methods which operate on the globally set values.
This is considered problematic because:
- programmers can forget to set a value before invoking
- the state can change in a moment between setting and invoking, particularly when programming with threading.
This is considered an anti-pattern.
Source: the above text is adapted by the editor from Wikipedia, the free encyclopedia under a copyleft GNU Free Documentation License (GFDL) from the article "Accumulate and fire."
Top
Copyright © Philip M. Parker, INSEAD. Terms of Use.