Directory

Encyclopedia

NodeWorks
                              ENCYCLOPEDIA

Link Checker

Home
Encyclopedia : A : AC : ACC :

Accumulate & fire

 

Accumulate & fire

"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.

    Accumulate and fire is considered an example of an anti-pattern.

    See also: Petri net


  • NodeWorks boosts web surfing!
    Page Returned in 0.152 seconds - HTML Compressed 69.6%

    This article is from Wikipedia. All text is available
    under the terms of the GNU Free Documentation License.
     GNU Free Documentation License
    © 2008 Chamas Enterprises Inc.