Encyclopedia > Accumulate and fire

  Article Content

Accumulate and fire

"Accumulate and fire" is a programming style in which the program sets a number of global variables[?] or objects, 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.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Islandia, New York

... family size is 3.49. In the village the population is spread out with 24.7% under the age of 18, 6.9% from 18 to 24, 36.3% from 25 to 44, 25.1% from 45 to 64, and ...

 
 
 
This page was created in 35 ms