SlideShare a Scribd company logo
Introduction           Problem      Demand           Solution       Implementation     Evaluation         Summary




                                  Detection Strategies
                                 Metrics-Based Rules for
                                 Detecting Design Flaws

                                                    M.... N.....1
                                 1 Universita   della Svizzera Italiana, Switzerland


                            Software Design and Evolution, WS 2009



Nowak                                                                                          Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Author



        Dr. Radu Marinescu
        Associate Professor -
        Department of Computer Science and Engineering
        "Politechnica" University at Timisoara
        Author of "Object-Oriented Metrics in Practice"




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Author



        Dr. Radu Marinescu
        Associate Professor -
        Department of Computer Science and Engineering
        "Politechnica" University at Timisoara
        Author of "Object-Oriented Metrics in Practice"

        Ph.D defense
        Mircea Lungu, Today, 17.30, A21, Red Building




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Outline


        1      Introduction

        2      Problem

        3      Demand

        4      Solution

        5      Implementation

        6      Evaluation

        7      Summary


Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Metrics




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Metrics


        Metrics

               ambiguous definitions
               noise
               relevance




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Metrics


        Metrics

               ambiguous definitions
               noise
               relevance

        Interpretation

               experience based
               no model
               showing symptoms not a disease


Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Strategy




        Strategy
        "A detection strategy is the quantifiable expression of a rule by
        which design fragments that are conforming to that rule can be
        detected in the source code"




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Filters

        Semantical

               threshold value
               direction
        For example:
        Absolute: HigherThan, LowerThan
        Relative: TopValues, BottomValues

        Statistical

               direction
        For example: UpperQuantile, BelowMedian

Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Strategy




        Choosing an appropriate filter
           1   Absolute semantical filter
           2   Relative semantical filter
           3   Semantical filter with percentile values
           4   Statistical filter




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem        Demand              Solution            Implementation   Evaluation            Summary




Composition

        Logical Operators
        and, or, butnot



                                 filter        Filtered
                       Metric1
                                                Set1




                                 filter        Filtered              Composition Rules           Final
                       Metric2
                                                Set2                                            Results




                                 filter        Filtered
                       Metric3
                                                Set3




Nowak                                                                                                     Faculty of Informatics
Detection Strategies
Introduction           Problem    Demand   Solution   Implementation   Evaluation         Summary




Metrics



        "God Class" syndrome.
               Weighted Method Count (WMC)
               Tight Class Cohesion (TCC)
               Access to Foreign Data (ATFD)
                                 (WMC(C), TopValues(25%))∧                              (1)
                                  (ATFD(C), HigherThan(1))∧                             (2)
                                 (TCC(C), BottomValues(25%))                            (3)




Nowak                                                                          Faculty of Informatics
Detection Strategies
Introduction           Problem              Demand           Solution               Implementation               Evaluation         Summary




Process




                                          parsing       Meta-Model
                    Sources
                  (Java, C++)




                        Metrics                      using



                                                                        Detection
                                                                        Strategy                     Flaw List

                       Detection




                             Manual inspection




Nowak                                                                                                                    Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Filter tuning




           1   Experience and Literature
           2   Reference Samples (Tuning Machine)
           3   Evolution Analysis




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




        Case-study

               Version 1
               93 KLOC, 18 Packages, 152 Classes, 1284 Methods
               Version 2
               116 KLOC, 29 Packages, 387 Classes, 3446 Methods


        Evaluation methods

               Automatic Classification (differential between the versions)
               Manual Investigation (of the Version 1)



Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Summary



        Results

               Automatic Classification accuracy over 50% with average
               over 67%.
               Manual Inspection method resulted in Accuracy of 87%.




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Summary



        Results

               Automatic Classification accuracy over 50% with average
               over 67%.
               Manual Inspection method resulted in Accuracy of 87%.


        Conclusion

               Method is very promising !




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Related Work




               Quantification of Design Principles and Rules
               Using Correlations of Metrics for Design Inspections




Nowak                                                                         Faculty of Informatics
Detection Strategies
Introduction           Problem   Demand   Solution   Implementation   Evaluation         Summary




Discussion




        Questions and Discussion.




Nowak                                                                         Faculty of Informatics
Detection Strategies

More Related Content

Similar to Detection Strategies Metrics-Based Rules for Detecting Design Flaws

Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?
Lionel Briand
 
Design Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation SystemsDesign Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation SystemsProf. Dr. Alexander Maedche
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD Editor
 
Staging's channles are being tested
Staging's channles are being testedStaging's channles are being tested
Staging's channles are being tested
nikhilawareness
 
Slideshare - Many files
Slideshare - Many filesSlideshare - Many files
Slideshare - Many files
nikhilawareness
 
Go to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tomGo to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tom
nikhilawareness
 
Slideshare removal with caption
Slideshare removal with captionSlideshare removal with caption
Slideshare removal with caption
nikhilawareness
 
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6wHarry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
nikhilawareness
 
Software testing techniques
Software testing techniquesSoftware testing techniques
Software testing techniquesSachin MK
 
Content to all channels
Content to all channelsContent to all channels
Content to all channels
nikhilawareness
 
Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.
Joon ho Park
 
Bebpa Nice 29 Sept 2011
Bebpa Nice 29 Sept 2011Bebpa Nice 29 Sept 2011
Bebpa Nice 29 Sept 2011
GreyRigge Associates Ltd
 
Ibc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentationIbc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentation
GreyRigge Associates Ltd
 
Simulation in logistics - SIMANDO
Simulation in logistics - SIMANDOSimulation in logistics - SIMANDO
Simulation in logistics - SIMANDOSIMANDO
 
Zander eng scd_final
Zander eng scd_finalZander eng scd_final
Zander eng scd_final
Justyna Zander
 
ICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdfICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdf
XueqiYang
 
Idexcel Independent Testing Services Presentation
Idexcel Independent Testing Services PresentationIdexcel Independent Testing Services Presentation
Idexcel Independent Testing Services Presentation
Idexcel
 
Don't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptxDon't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptx
Förderverein Technische Fakultät
 

Similar to Detection Strategies Metrics-Based Rules for Detecting Design Flaws (20)

Sop test planning
Sop test planningSop test planning
Sop test planning
 
Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?Can we predict the quality of spectrum-based fault localization?
Can we predict the quality of spectrum-based fault localization?
 
Design Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation SystemsDesign Principles of Advanced Task Elicitation Systems
Design Principles of Advanced Task Elicitation Systems
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
Staging's channles are being tested
Staging's channles are being testedStaging's channles are being tested
Staging's channles are being tested
 
Slideshare - Many files
Slideshare - Many filesSlideshare - Many files
Slideshare - Many files
 
Go to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tomGo to all channels so that I may test your stats tom
Go to all channels so that I may test your stats tom
 
Slideshare removal with caption
Slideshare removal with captionSlideshare removal with caption
Slideshare removal with caption
 
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6wHarry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
Harry Potter 7-2 3D tonight!!! http://4rd.ca/aaaj6w
 
Software testing techniques
Software testing techniquesSoftware testing techniques
Software testing techniques
 
Content to all channels
Content to all channelsContent to all channels
Content to all channels
 
Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.Study of solution development methodology for small size projects.
Study of solution development methodology for small size projects.
 
Bebpa Nice 29 Sept 2011
Bebpa Nice 29 Sept 2011Bebpa Nice 29 Sept 2011
Bebpa Nice 29 Sept 2011
 
Ibc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentationIbc biological assay development & validation 2011 gra presentation
Ibc biological assay development & validation 2011 gra presentation
 
Simulation in logistics - SIMANDO
Simulation in logistics - SIMANDOSimulation in logistics - SIMANDO
Simulation in logistics - SIMANDO
 
ASE12.ppt
ASE12.pptASE12.ppt
ASE12.ppt
 
Zander eng scd_final
Zander eng scd_finalZander eng scd_final
Zander eng scd_final
 
ICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdfICSE '22 Presentaion_Sherry.pdf
ICSE '22 Presentaion_Sherry.pdf
 
Idexcel Independent Testing Services Presentation
Idexcel Independent Testing Services PresentationIdexcel Independent Testing Services Presentation
Idexcel Independent Testing Services Presentation
 
Don't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptxDon't Treat the Symptom, Find the Cause!.pptx
Don't Treat the Symptom, Find the Cause!.pptx
 

Recently uploaded

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 

Recently uploaded (20)

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 

Detection Strategies Metrics-Based Rules for Detecting Design Flaws

  • 1. Introduction Problem Demand Solution Implementation Evaluation Summary Detection Strategies Metrics-Based Rules for Detecting Design Flaws M.... N.....1 1 Universita della Svizzera Italiana, Switzerland Software Design and Evolution, WS 2009 Nowak Faculty of Informatics Detection Strategies
  • 2. Introduction Problem Demand Solution Implementation Evaluation Summary Author Dr. Radu Marinescu Associate Professor - Department of Computer Science and Engineering "Politechnica" University at Timisoara Author of "Object-Oriented Metrics in Practice" Nowak Faculty of Informatics Detection Strategies
  • 3. Introduction Problem Demand Solution Implementation Evaluation Summary Author Dr. Radu Marinescu Associate Professor - Department of Computer Science and Engineering "Politechnica" University at Timisoara Author of "Object-Oriented Metrics in Practice" Ph.D defense Mircea Lungu, Today, 17.30, A21, Red Building Nowak Faculty of Informatics Detection Strategies
  • 4. Introduction Problem Demand Solution Implementation Evaluation Summary Outline 1 Introduction 2 Problem 3 Demand 4 Solution 5 Implementation 6 Evaluation 7 Summary Nowak Faculty of Informatics Detection Strategies
  • 5. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics Nowak Faculty of Informatics Detection Strategies
  • 6. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics Metrics ambiguous definitions noise relevance Nowak Faculty of Informatics Detection Strategies
  • 7. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics Metrics ambiguous definitions noise relevance Interpretation experience based no model showing symptoms not a disease Nowak Faculty of Informatics Detection Strategies
  • 8. Introduction Problem Demand Solution Implementation Evaluation Summary Strategy Strategy "A detection strategy is the quantifiable expression of a rule by which design fragments that are conforming to that rule can be detected in the source code" Nowak Faculty of Informatics Detection Strategies
  • 9. Introduction Problem Demand Solution Implementation Evaluation Summary Filters Semantical threshold value direction For example: Absolute: HigherThan, LowerThan Relative: TopValues, BottomValues Statistical direction For example: UpperQuantile, BelowMedian Nowak Faculty of Informatics Detection Strategies
  • 10. Introduction Problem Demand Solution Implementation Evaluation Summary Strategy Choosing an appropriate filter 1 Absolute semantical filter 2 Relative semantical filter 3 Semantical filter with percentile values 4 Statistical filter Nowak Faculty of Informatics Detection Strategies
  • 11. Introduction Problem Demand Solution Implementation Evaluation Summary Composition Logical Operators and, or, butnot filter Filtered Metric1 Set1 filter Filtered Composition Rules Final Metric2 Set2 Results filter Filtered Metric3 Set3 Nowak Faculty of Informatics Detection Strategies
  • 12. Introduction Problem Demand Solution Implementation Evaluation Summary Metrics "God Class" syndrome. Weighted Method Count (WMC) Tight Class Cohesion (TCC) Access to Foreign Data (ATFD) (WMC(C), TopValues(25%))∧ (1) (ATFD(C), HigherThan(1))∧ (2) (TCC(C), BottomValues(25%)) (3) Nowak Faculty of Informatics Detection Strategies
  • 13. Introduction Problem Demand Solution Implementation Evaluation Summary Process parsing Meta-Model Sources (Java, C++) Metrics using Detection Strategy Flaw List Detection Manual inspection Nowak Faculty of Informatics Detection Strategies
  • 14. Introduction Problem Demand Solution Implementation Evaluation Summary Filter tuning 1 Experience and Literature 2 Reference Samples (Tuning Machine) 3 Evolution Analysis Nowak Faculty of Informatics Detection Strategies
  • 15. Introduction Problem Demand Solution Implementation Evaluation Summary Case-study Version 1 93 KLOC, 18 Packages, 152 Classes, 1284 Methods Version 2 116 KLOC, 29 Packages, 387 Classes, 3446 Methods Evaluation methods Automatic Classification (differential between the versions) Manual Investigation (of the Version 1) Nowak Faculty of Informatics Detection Strategies
  • 16. Introduction Problem Demand Solution Implementation Evaluation Summary Summary Results Automatic Classification accuracy over 50% with average over 67%. Manual Inspection method resulted in Accuracy of 87%. Nowak Faculty of Informatics Detection Strategies
  • 17. Introduction Problem Demand Solution Implementation Evaluation Summary Summary Results Automatic Classification accuracy over 50% with average over 67%. Manual Inspection method resulted in Accuracy of 87%. Conclusion Method is very promising ! Nowak Faculty of Informatics Detection Strategies
  • 18. Introduction Problem Demand Solution Implementation Evaluation Summary Related Work Quantification of Design Principles and Rules Using Correlations of Metrics for Design Inspections Nowak Faculty of Informatics Detection Strategies
  • 19. Introduction Problem Demand Solution Implementation Evaluation Summary Discussion Questions and Discussion. Nowak Faculty of Informatics Detection Strategies