Skip to main content

Advertisement

SpringerLink
  • Log in
Book cover

International Conference on Fundamental Approaches to Software Engineering

FASE 2011: Fundamental Approaches to Software Engineering pp 401–415Cite as

  1. Home
  2. Fundamental Approaches to Software Engineering
  3. Conference paper
Search-Based Design Defects Detection by Example

Search-Based Design Defects Detection by Example

  • Marouane Kessentini18,
  • Houari Sahraoui18,
  • Mounir Boukadoum19 &
  • …
  • Manuel Wimmer20 
  • Conference paper
  • 1412 Accesses

  • 17 Citations

Part of the Lecture Notes in Computer Science book series (LNTCS,volume 6603)

Abstract

We propose an automated approach to detect various types of design defects in source code. Our approach allows to automatically find detection rules, thus relieving the designer from doing so manually. Rules are defined as combinations of metrics/thresholds that better conform to known instances of design defects (defect examples). In our setting, we use and compare between different heuristic search algorithms for rule extraction: Harmony Search, Particle Swarm Optimization, and Simulated Annealing. We evaluate our approach by finding potential defects in two open-source systems. For all these systems, we found, in average, more than 75% of known defects, a better result when compared to a state-of-the-art approach, where the detection rules are manually or semi-automatically specified.

Keywords

  • Design defects
  • software quality
  • metrics
  • search-based software engineering
  • by example

Download conference paper PDF

References

  1. Brown, W.J., Malveau, R.C., Brown, W.H., McCormick III, H.W., Mowbray, T.J.: Anti Patterns: Refactoring Software, Architectures, and Projects in Crisis, 1st edn. John Wiley and Sons, Chichester (March 1998)

    Google Scholar 

  2. Fowler, M.: Refactoring – Improving the Design of Existing Code. 1st edn. Addison-Wesley, Reading (June 1999)

    MATH  Google Scholar 

  3. Fenton, N., Pfleeger, S.L.: Software Metrics: A Rigorous and Practical Approach, 2nd edn. International Thomson Computer Press, London (1997)

    Google Scholar 

  4. Khomh, F., Vaucher, S., Guéhéneuc, Y.-G., Sahraoui, H.: A Bayesian Approach for the Detection of Code and Design Smells. In: Proc. of the ICQS 2009 (2009)

    Google Scholar 

  5. Moha, N., Guéhéneuc, Y.-G., Duchien, L., Meur, A.-F.L.: DECOR: A method for the specification and detection of code and design smells. Transactions on Software Engineering (TSE), 16 pages (2009)

    Google Scholar 

  6. Liu, H., Yang, L., Niu, Z., Ma, Z., Shao, W.: Facilitating software refactoring with appropriate resolution order of bad smells. In: Proc. of the ESEC/FSE 2009, pp. 265–268 (2009)

    Google Scholar 

  7. Marinescu, R.: Detection strategies: Metrics-based rules for detecting design flaws. In: Proc. of ICM 2004, pp. 350–359 (2004)

    Google Scholar 

  8. Kessentini, M., Vaucher, S., Sahraoui, H.: Deviance from perfection is a better criterion than closeness to evil when identifying risky code. In: Proc. of the International Conference on Automated Software Engineering, ASE 2010 (2010)

    Google Scholar 

  9. Lee, K.S., Geem, Z.W.: A new meta-heuristic algorithm for continuous engineering optimization: harmony search theory and practice. Comput. Method Appl. M 194(36-38), 3902–3933 (2005)

    CrossRef  MATH  Google Scholar 

  10. Lee, K.S., Geem, Z.W., Lee, S.H., Bae, K.W.: The harmony search heuristic algorithm for discrete structural optimization. Eng Optimiz 37(7), 663–684 (2005)

    CrossRef  MathSciNet  Google Scholar 

  11. http://ganttproject.biz/index.php

  12. http://xerces.apache.org/

  13. Riel, A.J.: Object-Oriented Design Heuristics. Addison-Wesley, Reading (1996)

    Google Scholar 

  14. Gaffney, J.E.: Metrics in software quality assurance. In: Proc. of the ACM 1981 Conference, pp. 126–130. ACM, New York (1981)

    Google Scholar 

  15. Mantyla, M., Vanhanen, J., Lassenius, C.: A taxonomy and an initial empirical study of bad smells in code. In: Proc. of ICSM 2003. IEEE Computer Society, Los Alamitos (2003)

    Google Scholar 

  16. Wake, W.C.: Refactoring Workbook. Addison-Wesley Longman Publishing Co., Inc., Boston (2003)

    Google Scholar 

  17. http://www.ptidej.net/research/decor/index_html

  18. http://www.marou ane-kessentini/FASE10.zip

  19. Raedt, D.: Advances in Inductive Logic Programming, 1st edn. IOS Press, Amsterdam (1996)

    MATH  Google Scholar 

  20. Erni, K., Lewerentz, C.: Applying design metrics to object-oriented frameworks. In: Proc. IEEE Symp. Software Metrics. IEEE Computer Society Press, Los Alamitos (1996)

    Google Scholar 

  21. Alikacem, H., Sahraoui, H.: Détection d’anomalies utilisant un langage de description de règle de qualité, in actes du 12e colloque LMO (2006)

    Google Scholar 

  22. O’Keeffe, M., Cinnéide, M.: Search-based refactoring: an empirical study. Journal of Software Maintenance 20(5), 345–364 (2008)

    Google Scholar 

  23. Harman, M., Clark, J.A.: Metrics are fitness functions too. In: IEEE METRICS, pp. 58–69. IEEE Computer Society Press, Los Alamitos (2004)

    Google Scholar 

  24. Kessentini, M., Sahraoui, H.A., Boukadoum, M.: Model Transformation as an Optimization Problem. In: Busch, C., Ober, I., Bruel, J.-M., Uhl, A., Völter, M. (eds.) MODELS 2008. LNCS, vol. 5301, pp. 159–173. Springer, Heidelberg (2008)

    CrossRef  Google Scholar 

  25. Kirkpatrick, D.S., Gelatt, Jr., Vecchi, M.P.: Optimization by simulated annealing. Science 220(4598), 671680 (1983)

    CrossRef  MathSciNet  MATH  Google Scholar 

  26. Eberhart, R.C., Shi, Y.: Particle swarm optimization: developments, applications and resources. In: Proc. IEEE Congress on Evolutionary Computation (CEC 2001), pp. 81–86 (2001)

    Google Scholar 

Download references

Author information

Authors and Affiliations

  1. DIRO, Université de Montréal, Canada

    Marouane Kessentini & Houari Sahraoui

  2. DI, Université du Québec à Montréal, Canada

    Mounir Boukadoum

  3. Vienna University of Technology, Austria

    Manuel Wimmer

Authors
  1. Marouane Kessentini
    View author publications

    You can also search for this author in PubMed Google Scholar

  2. Houari Sahraoui
    View author publications

    You can also search for this author in PubMed Google Scholar

  3. Mounir Boukadoum
    View author publications

    You can also search for this author in PubMed Google Scholar

  4. Manuel Wimmer
    View author publications

    You can also search for this author in PubMed Google Scholar

Editor information

Editors and Affiliations

  1. NASA Ames Research Center, Carnegie Mellon University, 94035, Moffett Field, CA, USA

    Dimitra Giannakopoulou

  2. Universitat Politècnica de Catalunya, 08034, Barcelona, Spain

    Fernando Orejas

Rights and permissions

Reprints and Permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Kessentini, M., Sahraoui, H., Boukadoum, M., Wimmer, M. (2011). Search-Based Design Defects Detection by Example. In: Giannakopoulou, D., Orejas, F. (eds) Fundamental Approaches to Software Engineering. FASE 2011. Lecture Notes in Computer Science, vol 6603. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-19811-3_28

Download citation

  • .RIS
  • .ENW
  • .BIB
  • DOI: https://doi.org/10.1007/978-3-642-19811-3_28

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-19810-6

  • Online ISBN: 978-3-642-19811-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Share this paper

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

Over 10 million scientific documents at your fingertips

Switch Edition
  • Academic Edition
  • Corporate Edition
  • Home
  • Impressum
  • Legal information
  • Privacy statement
  • California Privacy Statement
  • How we use cookies
  • Manage cookies/Do not sell my data
  • Accessibility
  • FAQ
  • Contact us
  • Affiliate program

Not logged in - 3.235.173.24

Not affiliated

Springer Nature

© 2023 Springer Nature Switzerland AG. Part of Springer Nature.