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
Springs, New York

... 0.20% Native American, 1.45% Asian, 0.02% Pacific Islander, 3.86% from other races, and 3.17% from two or more races. 16.24% of the population are Hispanic or Latino of ...

 
 
 
This page was created in 29.2 ms