Encyclopedia > Dead code

  Article Content

Dead code

In computer programming, dead code consists of blocks of programming instructions or entire routines that can never be accessed because all calls to them have been removed, or code that cannot be reached because it is guarded by a control structure that provably must always transfer control somewhere else. The presence of dead code may reveal either logical errors due to alterations in the program or significant changes in the assumptions and environment of the program (see also software rot[?]); a good compiler should report dead code so a maintainer can think about what it means. Many times dead code is inserted by a defensive programmer for can't happen[?] tests that really can't happen (yet). Other times dead code is inserted by the programmer for debugging purposes but has yet to be removed.



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
Great River, New York

... to 44, 24.2% from 45 to 64, and 12.7% who are 65 years of age or older. The median age is 39 years. For every 100 females there are 104.2 males. For every 100 females ...

 
 
 
This page was created in 22.4 ms