An ontology-based taxonomy of bad code smells

  • Authors:
  • Yung-Pin Cheng;Jiue-Ren Liao

  • Affiliations:
  • Department of Computer Science and Information Engineering, National Taiwan Normal University, Taipei City, Taiwan;Department of Information and Computer Education, National Taiwan Normal University, Taipei City, Taiwan

  • Venue:
  • ACST'07 Proceedings of the third conference on IASTED International Conference: Advances in Computer Science and Technology
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

"Bad code smell" or "spaghetti code" is a jargon used among programmers to refer to source code that is difficult to maintain, evolve, and change. We consider them as symptoms of poor software engineering practice. This paper presents an application of concept of ontology to develop a bad code smell taxonomy. We develop a taxonomy hierarchy which categorizes bad code smells from the viewpoints of refactoring. A more formal format is introduced to define the bad code smells more concretely. Besides, the relations among bad code smells, called semantic relations in ontology terms, are explored and established. The ontology can be used for reasoning in other applications.