• DocumentCode
    1068492
  • Title

    The art of enbugging

  • Author

    Hunt, A. ; Thomas, David

  • Author_Institution
    The Pragmatic Programmer, LLC
  • Volume
    20
  • Issue
    1
  • fYear
    2003
  • Firstpage
    10
  • Lastpage
    11
  • Abstract
    One of the best ways to keep future bugs out is to maintain a proper "separation of concerns", that is, design the code so that classes and modules have clear, well-defined, and isolated responsibilities and well-understood semantics. The fundamental goal is to write shy code - code that doesn\´t reveal too much of itself to anyone else and doesn\´t talk to others any more than is necessary. Shy code keeps to itself, not like that gossipy neighbor who\´s involved in everyone else\´s comings and goings. Shy code would never show its "privates" to "friends," as some more promiscuous C++ code might. The authors examine some ways to help us create shy code. Although we are primarily looking at object-oriented examples, the same principles apply to procedural code as well.
  • Keywords
    object-oriented programming; program debugging; OO code; enbugging; preventing bugs; semantics; separation of concerns; shy code; Computer bugs; Encapsulation; Java; Layout; Logic; Programming profession; Subspace constraints; Switches; TV; Testing;
  • fLanguage
    English
  • Journal_Title
    Software, IEEE
  • Publisher
    ieee
  • ISSN
    0740-7459
  • Type

    jour

  • DOI
    10.1109/MS.2003.1159022
  • Filename
    1159022