Software Metrics. Lines of Code

Size: px
Start display at page:

Download "Software Metrics. Lines of Code"

Transcription

1 Software Metrics Naveed Arshad Lines of Code The total number of lines of executable code in the software program or module being measured But lines of code could mean anything e.g. count only executable lines count executable lines plus data definitions. count executable lines, data definitions, and comments. count lines as physical lines on an input screen. count lines as terminated by logical delimiters. 1

2 Advantages and drawbacks of LOC Advantages of LOC Simple to measure Drawbacks of LOC It is defined on code. For example it cannot measure the size of specification. It characterise only one specific view of size, namely length, it takes no account of functionality or complexity Bad software design may cause excessive line of code It is language dependent Users cannot easily understand it McCabe s Cyclomatic Number Used to find complexity of a given program. V(G) = e n + p 2

3 Advantages of McCabe Cyclomatic Complexity It can be used as a ease of maintenance metric. Used as a quality metric, gives relative complexity of various designs. It can be computed early in life cycle than of Halstead's metrics. Measures the minimum effort and best areas of concentration for testing. It guides the testing process by limiting the program logic during development. Is easy to apply. Drawbacks of McCabe Cyclomatic Complexity The cyclomatic complexity is a measure of the program's control complexity and not the data complexity The same weight is placed on nested and non-nested loops. However, deeply nested conditional structures are harder to understand than nonnested structures. It may give a misleading figure with regard to a lot of simple comparisons and decision structures. Whereas the fan-in fan-out method would probably be more applicable as it can track the data flow 3

4 Halstead Complexity Measures n1 = the number of distinct operators n2 = the number of distinct operands N1 = the total number of operators N2 = the total number of operands Halstead Volume N is program length N = total number of operators N1 + total number of operands N2 n is program vocabulary N = number of distinct operators n1 + number of distinct operands n2 4

5 Halstead Complexity Numbers Measure Program length Program vocabulary Volume Difficulty Effort Symbol N n V D E Formula N= N1 + N2 n= n1 + n2 V= N * Log 2 (n) D= (n1/2) * (N2/n2) E= D * V Halstead Complexity Numbers A FORTRAN subroutine that sorts an array into ascending order SUBROUTINE SORT (X, N) INTEGER X(100), N, I, J, SAVE, IM1 C THIS ROUTINE SORTS ARRAY X INTO ASCENDING C ORDER IF(N.LT. 2) GO TO 220 DO 210 I = 2,N IM1 = I - 1 DO 200 J = 1,IM1 IF(X(I).GE. X(J)) GO TO 200 SAVE = X(I) X(I) = X(J) X(J) = SAVE 200 CONTINUE 210 CONTINUE 220 RETURN END 5

6 Halstead Complexity Numbers A FORTRAN subroutine that sorts an array into ascending order SUBROUTINE SORT (X, N) INTEGER X(100), N, I, J, SAVE, IM1 C THIS ROUTINE SORTS ARRAY X INTO ASCENDING C ORDER IF(N.LT. 2) GO TO 220 DO 210 I = 2,N IM1 = I - 1 DO 200 J = 1,IM1 IF(X(I).GE. X(J)) GO TO 200 SAVE = X(I) X(I) = X(J) X(J) = SAVE 200 CONTINUE 210 CONTINUE 220 RETURN END Operators Occurrences Operands Occurrences SUBROUTINE 1 SORT 1 () 10 X 8, 8 N 4 INTEGER IF 2 I 6.LT. 1 J 5 GOTO 2 SAVE 3 DO 2 IM1 3 = GE CONTINUE RETURN End-of-line 13 n1 = 14 N1 = 51 n2 = 13 N2 = 42 Halstead s Software Complexity - 6 Program Length, N = N1 + N2 = 93 Program Vocabulary, n = n1 + n2 = 27 Program Volume, V = N * log 2 n = 93 * log 2 27 = Represents storage required for a binary translation of the original program Estimates the number of mental comparisons required n1 = 14 N1 = 51 n2 = 13 N2 = 42 6

7 Advantages of Halstead Do not require in-depth analysis of programming structure. Predicts rate of error. Predicts maintenance effort. Useful in scheduling and reporting projects. Measure overall quality of programs. Simple to calculate. Can be used for any programming language. Numerous industry studies support the use of Halstead in predicting programming effort and mean number of programming bugs. Drawbacks of Halstead It depends on completed code. It has little or no use as a predictive estimating model. But McCabe's model is more suited to application at the design level. 7

8 Defects per Thousand Lines of Code Effective bug tracking can help build a record of the known bugs within a system. When applied against measures of software scope (e.g., lines of code or function points), they can give an indication of the.buggy-ness. of the software. SEI Maintainability Index Maintainability M = * log2(avev) * avev(g ) * log2 (aveloc) + 50 * sin (sqrt(2.4 * percm)) The coefficients are derived from actual usage. The terms are defined as follows: avev = average Halstead Volume V per module avev(g) = average cyclomatic complexity per module aveloc = the average count of lines of code (LOC) per module; and, optionally percm = average percent of lines of comments per module 8

9 Lack of Cohesion of Methods LCOM is a measure of how close methods are to the data they access. The more attributes of a class each method accesses (or, more specifically, the more methods that access each attribute), the lower the value of LCOM and the more cohesive the class is said to be. It.s calculated by taking the average number of methods accessing the attributes of a class, minus the total number of methods of that class, divided by 1 minus the number of methods. LCOM = ((1/a * 2 A). m)/(1. m) Where a is the number of attributes of the class, 2 A is the sum across the set of attributes of the number of methods that access each attribute, and m is the number of methods of the class. Instability Afferent couplings (Ca). the number of modules in other components that depend on modules in this component Efferent couplings (Ce). the number of modules in other components this modules in this component depends on Instability, I = Ce / (Ca + Ce) When I = 0, the component is said to be maximally stable 9

10 Some Other Software Measures Length of source code (measured by LOC) Duration of testing process (measured by elapsed time in hours) Number of defects discovered during the testing process (measured by counting defects) Effort of a programmer on a project (measured by person months worked) Some Other Software Measures Programmer productivity Module defect density Defect detection efficiency Requirements stability Test effectiveness ratio System spoilage LOC produced person months of effort number of defects module size number of defects detected total number of defects numb of initial requirements total number of requirements number of items covered total number of items effort spent fixing faults total project effort 10

11 For More Information about Tools For Java programs in Eclipse cs For other tools see Engineering/toolcat.html#label210 11

Technical Metrics for OO Systems

Technical Metrics for OO Systems Technical Metrics for OO Systems 1 Last time: Metrics Non-technical: about process Technical: about product Size, complexity (cyclomatic, function points) How to use metrics Prioritize work Measure programmer

More information

2IS55 Software Evolution. Software metrics (2) Alexander Serebrenik

2IS55 Software Evolution. Software metrics (2) Alexander Serebrenik 2IS55 Software Evolution Software metrics (2) Alexander Serebrenik Administration Assignment 5: Deadline: May 22 1-2 students Next week NO CLASS Next class May 15 / SET / W&I 2-5-2012 PAGE 1 Sources /

More information

SOFTWARE PRODUCT QUALITY SOFTWARE ENGINEERING SOFTWARE QUALITY SOFTWARE QUALITIES - PRODUCT AND PROCESS SOFTWARE QUALITY - QUALITY COMPONENTS

SOFTWARE PRODUCT QUALITY SOFTWARE ENGINEERING SOFTWARE QUALITY SOFTWARE QUALITIES - PRODUCT AND PROCESS SOFTWARE QUALITY - QUALITY COMPONENTS SOFTWARE PRODUCT QUALITY Today: - Software quality - Quality Components - Good software properties SOFTWARE ENGINEERING SOFTWARE QUALITY Today we talk about quality - but what is quality? Suitable Fulfills

More information

Measuring Complexity

Measuring Complexity Measuring Complexity outline why should we measure the complexity of a software system? what might we want to measure? complexity of the source code within a code module between code modules complexity

More information

Maintainability Index Variation Among PHP, Java, and Python Open Source Projects

Maintainability Index Variation Among PHP, Java, and Python Open Source Projects Maintainability Index Variation Among PHP, Java, and Python Open Source Projects Celia Chen 1, Lin Shi 2, Kamonphop Srisopha 1 1 Computer Science Department, USC 2 Laboratory for Internet Software Technologies,

More information

2IS55 Software Evolution. Software metrics (3) Alexander Serebrenik

2IS55 Software Evolution. Software metrics (3) Alexander Serebrenik 2IS55 Software Evolution Software metrics (3) Alexander Serebrenik Sources / SET / W&I 19-3-2013 PAGE 1 From imperative to OO All metrics so far were designed for imperative languages Applicable for OO

More information

A Study of Software Metrics

A Study of Software Metrics International Journal of Computational Engineering & Management, Vol. 11, January 2011 www..org 22 A Study of Software Metrics Gurdev Singh 1, Dilbag Singh 2, Vikram Singh 3 1 Assistant Professor, JIET

More information

CHAPTER 4 OBJECT ORIENTED COMPLEXITY METRICS MODEL

CHAPTER 4 OBJECT ORIENTED COMPLEXITY METRICS MODEL 64 CHAPTER 4 OBJECT ORIENTED COMPLEXITY METRICS MODEL 4.1 INTRODUCTION Customers measure the aspects of the final product to determine whether it meets the requirements and provides sufficient quality.

More information

Dependency Inversion Principle (DIP) Package Design: Coupling Principles

Dependency Inversion Principle (DIP) Package Design: Coupling Principles Berner Fachhochschule Prof. Dr. Eric Dubuis Software Engineering and Design Version December 2007 1 Package Design: Basic Principle Dependency Inversion Principle (DIP) Package Design: Coupling Principles

More information

Introduction to software metics

Introduction to software metics Introduction to software metics Alexander Voigt Version_05_21 Technische Universität Dresden Institut für Kern- und Teilchenphysik /01234/546 78994:!"##$%&'$()*+,%&-,,$)*.$ IKTP Computing Kaffee 12 December

More information

Session 4b: Review of Program Quality

Session 4b: Review of Program Quality Session 4b: Review of Program Quality What makes one program "better" than another? COMP 170 -- Fall, 2013 Mr. Weisert What is a good program? Suppose we give the same assignment to two programmers (or

More information

Quantify the project. Better Estimates. Resolve Software crises

Quantify the project. Better Estimates. Resolve Software crises Quantify the project Quantifying schedule, performance,work effort, project status Helps software to be compared and evaluated Better Estimates Use the measure of your current performance to improve your

More information

FOR0383 Software Quality Assurance

FOR0383 Software Quality Assurance This method seems much, much bigger than all the other methods. FOR0383 Software Quality Assurance Lecture 15 Code metrics "You cannot control what you cannot measure." Tom DeMarco 2/11/2009 Dr Andy Brooks

More information

CHAPTER 4 HEURISTICS BASED ON OBJECT ORIENTED METRICS

CHAPTER 4 HEURISTICS BASED ON OBJECT ORIENTED METRICS CHAPTER 4 HEURISTICS BASED ON OBJECT ORIENTED METRICS Design evaluation is most critical activity during software development process. Design heuristics are proposed as a more accessible and informal means

More information

Effectiveness of software metrics for object-oriented system

Effectiveness of software metrics for object-oriented system Available online at www.sciencedirect.com Procedia Technology 6 (2012 ) 420 427 2nd International Conference on Communication, Computing & Security [ICCCS-2012] Effectiveness of software metrics for object-oriented

More information

UML and Design Patterns Prof. Dr. Eric Dubuis, V. June Engineering and Information Technology. On Package Design

UML and Design Patterns Prof. Dr. Eric Dubuis, V. June Engineering and Information Technology. On Package Design On Package Design Berner Fachhochschule Engineering and Information Technology Prof. Dr. Eric Dubuis Software Engineering and Design Version June 2008 1 Content Package Design: Basic Principle Dependency

More information

Demystifying Maintainability

Demystifying Maintainability 1 Manfred Broy, Florian Deißenböck, Markus Pizka Demystifying Maintainability May 21 st 2006 WoSQ 06 Shanghai 2 Outline Relevance Maintainability Metrics, Conventions, Models Quality Matrix Incremental

More information

Taxonomy Dimensions of Complexity Metrics

Taxonomy Dimensions of Complexity Metrics 96 Int'l Conf. Software Eng. Research and Practice SERP'15 Taxonomy Dimensions of Complexity Metrics Bouchaib Falah 1, Kenneth Magel 2 1 Al Akhawayn University, Ifrane, Morocco, 2 North Dakota State University,

More information

goto considered not particularly harmful: defect analysis in a major numerical library"

goto considered not particularly harmful: defect analysis in a major numerical library Title Slide Kingston University CISM Faculty Research Seminar................................................................................... goto considered not particularly harmful: defect analysis

More information

Anale. Seria Informatică. Vol. XVI fasc Annals. Computer Science Series. 16 th Tome 1 st Fasc. 2018

Anale. Seria Informatică. Vol. XVI fasc Annals. Computer Science Series. 16 th Tome 1 st Fasc. 2018 Anale. Seria Informatică. Vol. XVI fasc. Annals. Computer Science Series. th Tome st Fasc. PERFORMANCE EVALUATION OF IMPROVED COGNITIVE COMPLEXITY METRIC AND OTHER CODE BASED COMPLEXITY METRICS Esther

More information

Software Testing: A Craftsman s Approach, 4 th Edition. Chapter 16 Software Complexity

Software Testing: A Craftsman s Approach, 4 th Edition. Chapter 16 Software Complexity Chapter 16 Software Complexity Levels of Software Complexity Unit Level Topological (cyclomatic) complexity, based on a program graph Decisional complexity, a refinement of topological complexity, based

More information

Comparing Software Abstractions Baby Steps. Michael Hansen Lab Lunch Talk 2011

Comparing Software Abstractions Baby Steps. Michael Hansen Lab Lunch Talk 2011 Comparing Software Abstractions Baby Steps Michael Hansen Lab Lunch Talk 2011 Comparing Abstractions Need objective comparison method Libraries (OpenGL vs. Direct3D) Language constructs ( -expressions,

More information

Software Metrics and Design Principles. What is Design?

Software Metrics and Design Principles. What is Design? Software Metrics and Design Principles Chapters 5,8 What is Design? Design is the process of creating a plan or blueprint to follow during actual construction Design is a problem-solving activity that

More information

Object Oriented Design Metrics for Predicting Fault Proneness using Naïve Bayes and Random Forest

Object Oriented Design Metrics for Predicting Fault Proneness using Naïve Bayes and Random Forest Proc. of Int. Conf. on Advances in Communication, Network, and Computing, CNC Object Oriented Design Metrics for Predicting Fault Proneness using Naïve Bayes and Random Forest Vaishnavi.J 1, Anousouya

More information

A Framework for Improving the Concept of Cyclomatic Complexity in Object-Oriented Programming

A Framework for Improving the Concept of Cyclomatic Complexity in Object-Oriented Programming A Framework for Improving the Concept of Cyclomatic Complexity in Object-Oriented Programming Thesis submitted in partial fulfillment of the requirements for the award of degree of Master of Engineering

More information

ClearSQL Code Metrics Inside

ClearSQL Code Metrics Inside THE CODE METRICS FEATURE DETERMINES THE COMPLEXITY OF CODE AND HIGH- LIGHTS COMPLEX AND HARD TO MAINTAIN CODE BY FLAGGED METRICS. IT IDENTI- FIES POTENTIAL PROBLEM AREAS BASED ON COMPLEXITY, SIZE AND MODULARITY.

More information

Vragen. Intra-modular complexity measures. The uses relation. System structure: inter-module complexity

Vragen. Intra-modular complexity measures. The uses relation. System structure: inter-module complexity Vragen Intra-modular complexity measures Wat wordt bedoeld met het ontwerpsprincipe: Anticipate obsolence? Wat is het voordeel van strong cohesion en weak coupling? Wat is het gevolg van hoge complexiteit

More information

Basel Dudin

Basel Dudin Measuring Internal Product Attributes: Size Basel Dudin dudinbk@mcmaster.ca Outline Aspects of Software Size Length (LOC) Lines of Code Halstead s Theory Functionality Unadjusted Function Point Count (UFC)

More information

Analysis of Various Software Metrics Used To Detect Bad Smells

Analysis of Various Software Metrics Used To Detect Bad Smells The International Journal Of Engineering And Science (IJES) Volume 5 Issue 6 Pages PP -14-20 2016 ISSN (e): 2319 1813 ISSN (p): 2319 1805 Analysis of Various Software Metrics Used To Detect Bad Smells

More information

Using Metrics To Manage Software Risks. 1. Introduction 2. Software Metrics 3. Case Study: Measuring Maintainability 4. Metrics and Quality

Using Metrics To Manage Software Risks. 1. Introduction 2. Software Metrics 3. Case Study: Measuring Maintainability 4. Metrics and Quality Using Metrics To Manage Software Risks 1. Introduction 2. Software Metrics 3. Case Study: Measuring Maintainability 4. Metrics and Quality 1 1. Introduction Definition Measurement is the process by which

More information

Kostis Kapelonis Athens Greece, March 2010

Kostis Kapelonis Athens Greece, March 2010 Quality Metrics: GTE, CAP and CKJM Kostis Kapelonis Athens Greece, March 2010 Menu More Quality metrics: Google Testability Explorer (Starter) Code Analysis Plugin (Main Course) CKJM metrics (Dessert)

More information

Object Oriented Metrics. Impact on Software Quality

Object Oriented Metrics. Impact on Software Quality Object Oriented Metrics Impact on Software Quality Classic metrics Lines Of Code Function points Complexity Code coverage - testing Maintainability Index discussed later Lines of Code KLOC = 1000 Lines

More information

Metrics and OO. SE 3S03 - Tutorial 12. Alicia Marinache. Week of Apr 04, Department of Computer Science McMaster University

Metrics and OO. SE 3S03 - Tutorial 12. Alicia Marinache. Week of Apr 04, Department of Computer Science McMaster University and OO OO and OO SE 3S03 - Tutorial 12 Department of Computer Science McMaster University Complexity Lorenz CK Week of Apr 04, 2016 Acknowledgments: The material of these slides is based on [1] (chapter

More information

Exploring Efficient Ways of Distributing Code Quality Metrics in Cloud

Exploring Efficient Ways of Distributing Code Quality Metrics in Cloud Exploring Efficient Ways of Distributing Code Quality Metrics in Cloud by Dibangku Baruah, B.Sc. Dissertation Presented to the University of Dublin, Trinity College in fulfillment of the requirements for

More information

How do we measure product and project progress?? Why is software incomparable to traditional quality of manufactured goods?

How do we measure product and project progress?? Why is software incomparable to traditional quality of manufactured goods? Metrics How do we measure product and project progress?? 1 Why is software incomparable to traditional quality of manufactured goods? Software is intangible and has no physical presence Software is a recent

More information

By: Eng. Mohammed T. Abo Alroos

By: Eng. Mohammed T. Abo Alroos By: Eng. Mohammed T. Abo Alroos Use Case Points The formula for calculating UCP is composed of three variables: 1. Unadjusted Use Case Points (UUCP), which measures the complexity of the functional requirements

More information

Roll No. :. Invigilator's Signature :.. CS/MCA/SEM-4/MCA-401/ SOFTWARE ENGINEERING & TQM. Time Allotted : 3 Hours Full Marks : 70

Roll No. :. Invigilator's Signature :.. CS/MCA/SEM-4/MCA-401/ SOFTWARE ENGINEERING & TQM. Time Allotted : 3 Hours Full Marks : 70 Name : Roll No. :. Invigilator's Signature :.. CS/MCA/SEM-4/MCA-401/2012 2012 SOFTWARE ENGINEERING & TQM Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates

More information

Principles of Object-Oriented Design

Principles of Object-Oriented Design Principles of Object-Oriented Design Part II 1 The Law of Demeter Any object receiving a message in a given method must be one of a restricted set of objects. 1. Strict Form: Every supplier class or object

More information

Software Metrics. Kristian Sandahl

Software Metrics. Kristian Sandahl Software Metrics Kristian Sandahl 2 Maintenance Requirements Validate Requirements, Verify Specification Acceptance Test (Release testing) System Design (Architecture, High-level Design) Verify System

More information

Investigating the Relationship Between Violations of the Law of Demeter and Software Maintainability

Investigating the Relationship Between Violations of the Law of Demeter and Software Maintainability Investigating the Relationship Between Violations of the Law of Demeter and Software Maintainability Jeffrey D. Palm University of Colorado 430 UCB Boulder, CO, 80309-0430 jdp@cs.colorado.edu Kenneth M.

More information

Software Testing 2. OOD and Testability. White box vs Black box Testing. Software Testing 2 Semester 1, 2006

Software Testing 2. OOD and Testability. White box vs Black box Testing. Software Testing 2 Semester 1, 2006 Software Testing 2 Jens Dietrich OOD and Testability Component based design and component based unit testing. Design that isolates component that are difficult to test (automatically) (such as user interfaces).

More information

Frama-C s metrics plug-in

Frama-C s metrics plug-in Metrics Frama-C s metrics plug-in Magnesium-20151002 Richard Bonichon & Boris Yakobowski CEA LIST, Software Reliability Laboratory, Saclay, F-91191 2011 2013 CEA LIST CONTENTS Contents 1 Quick overview

More information

Effective Modular Design

Effective Modular Design CSC40232: SOFTWARE ENGINEERING Professor: Jane Cleland Huang Metrics sarec.nd.edu/courses/se2017 Department of Computer Science and Engineering Effective Modular Design Modular design Reduces complexity

More information

Visualizing Software Metrics for increased Refactoring

Visualizing Software Metrics for increased Refactoring Visualizing Software Metrics for increased Refactoring Paul Steneram Bibby ada08pst@student.lu.se Fredrik Palmquist dat11fpa@student.lu.se March 7, 2016 Keywords: Agile Development, Code Complexity, Refactoring

More information

Investigation of Metrics for Object-Oriented Design Logical Stability

Investigation of Metrics for Object-Oriented Design Logical Stability Investigation of Metrics for Object-Oriented Design Logical Stability Mahmoud O. Elish Department of Computer Science George Mason University Fairfax, VA 22030-4400, USA melish@gmu.edu Abstract As changes

More information

Frama-C's metrics plug-in

Frama-C's metrics plug-in Metrics Frama-C's metrics plug-in 20120901 (Oxygen) Richard Bonichon & Boris Yakobowski CEA LIST, Software Reliability Laboratory, Saclay, F-91191 c 2011 CEA LIST CONTENTS Contents 1 Quick overview 7

More information

Evaluating the polynomial at a point

Evaluating the polynomial at a point Evaluating the polynomial at a point Recall that we have a data structure for each piecewise polynomial (linear, quadratic, cubic and cubic Hermite). We have a routine that sets evenly spaced interpolation

More information

Frama-C s metrics plug-in

Frama-C s metrics plug-in Metrics Frama-C s metrics plug-in Sulfur-20171101 Richard Bonichon & Boris Yakobowski CEA LIST, Software Reliability Laboratory, Saclay, F-91191 2011 2017 CEA LIST CONTENTS Contents 1 Quick overview

More information

Evolutionary Decision Trees and Software Metrics for Module Defects Identification

Evolutionary Decision Trees and Software Metrics for Module Defects Identification World Academy of Science, Engineering and Technology 38 008 Evolutionary Decision Trees and Software Metrics for Module Defects Identification Monica Chiş Abstract Software metric is a measure of some

More information

Predicting Mutation Score Using Source Code and Test Suite Metrics

Predicting Mutation Score Using Source Code and Test Suite Metrics Predicting Mutation Score Using Source Code and Test Suite Metrics RAISE 2012 Kevin Jalbert and Jeremy S. Bradbury {kevin.jalbert,jeremy.bradbury}@uoit.ca Software Quality Research Group (sqrg.ca) University

More information

ISSN (Online) Improving The Fault Prediction In Oo Systems Using ANN With Firefly Algorithm

ISSN (Online) Improving The Fault Prediction In Oo Systems Using ANN With Firefly Algorithm Improving The Fault Prediction In Oo Systems Using ANN With Firefly Algorithm Bhavya G Asst. professor,dept.of ISE,BMSIT Bangalore,India. bhavya20.g@gmail.com Abstract Assessing the quality of the software

More information

Enhancing Object Oriented Coupling Metrics w.r.t. Connectivity Patterns

Enhancing Object Oriented Coupling Metrics w.r.t. Connectivity Patterns Enhancing Object Oriented Coupling Metrics w.r.t. Connectivity Patterns Thesis submitted in partial fulfillment of the requirements for the award of degree of Master of Engineering in Software Engineering

More information

Computer Technology Institute. Patras, Greece. In this paper we present a user{friendly framework and a

Computer Technology Institute. Patras, Greece. In this paper we present a user{friendly framework and a MEASURING SOFTWARE COMPLEXITY USING SOFTWARE METRICS 1 2 Xenos M., Tsalidis C., Christodoulakis D. Computer Technology Institute Patras, Greece In this paper we present a user{friendly framework and a

More information

Assertions. Assertions - Example

Assertions. Assertions - Example References: internet notes; Bertrand Meyer, Object-Oriented Software Construction; 11/13/2003 1 Assertions Statements about input to a routine or state of a class Have two primary roles As documentation,

More information

Static Metrics. Feature Brief

Static Metrics. Feature Brief SOFTWARE QUALITY ASSURANCE TOOLS & TECHNOLOGY PROFESSIONAL SERVICES ACADEMY P a g e 1 Feature Brief Static Metrics Cantata provides a full and unique suite of intelligent testing capabilities for the efficient

More information

OO Development and Maintenance Complexity. Daniel M. Berry based on a paper by Eliezer Kantorowitz

OO Development and Maintenance Complexity. Daniel M. Berry based on a paper by Eliezer Kantorowitz OO Development and Maintenance Complexity Daniel M. Berry based on a paper by Eliezer Kantorowitz Traditional Complexity Measures Traditionally, Time Complexity Space Complexity Both use theoretical measures,

More information

Object Oriented Measurement

Object Oriented Measurement Object Oriented Measurement Diego Chaparro González dchaparro@acm.org Student number: 59881P 17th January 2003 Abstract This document examines the state of art in software products measurement, with focus

More information

Package ScottKnottESD

Package ScottKnottESD Type Package Package ScottKnottESD May 8, 2018 Title The Scott-Knott Effect Size Difference (ESD) Test Version 2.0.3 Date 2018-05-08 Author Chakkrit Tantithamthavorn Maintainer Chakkrit Tantithamthavorn

More information

SOFTWARE METRICS. Today. Metrics? Software Metrics. Definition of Metrics. Software Engineering

SOFTWARE METRICS. Today. Metrics? Software Metrics. Definition of Metrics. Software Engineering Chair of Software Engineering Today Software Engineering Prof. Dr. Bertrand Meyer Dr. Manuel Oriol Dr. Bernd Schoeller Lectures 17-18: Estimation Techniques and Software Metrics We present software metrics

More information

Measurement. Joseph Spring. Based on Software Metrics by Fenton and Pfleeger

Measurement. Joseph Spring. Based on Software Metrics by Fenton and Pfleeger Measurement Joseph Spring Based on Software Metrics by Fenton and Pfleeger Discussion Measurement Direct and Indirect Measurement Measurements met so far Measurement Scales and Types of Scale Measurement

More information

Metrics in assessing the quality and evolution of jedit

Metrics in assessing the quality and evolution of jedit Metrics in assessing the quality and evolution of jedit Ilona Bluemke, Rafał Roguski Institute of Computer Science, Warsaw University of Technology Nowowiejska 15/19, 00-665 Warsaw, Poland I.Bluemke@ii.pw.edu.pl

More information

Assessing Package Reusability in Object-Oriented Design

Assessing Package Reusability in Object-Oriented Design , pp.75-84 http://dx.doi.org/10.14257/ijseia.2014.8.4.09 Assessing Package Reusability in Object-Oriented Design Vinay Singh 1 and Vandana Bhattacherjee 2 1 Usha Martin Academy, Ranchi, India 2 Birla Institute

More information

Recursion. COMS W1007 Introduction to Computer Science. Christopher Conway 26 June 2003

Recursion. COMS W1007 Introduction to Computer Science. Christopher Conway 26 June 2003 Recursion COMS W1007 Introduction to Computer Science Christopher Conway 26 June 2003 The Fibonacci Sequence The Fibonacci numbers are: 1, 1, 2, 3, 5, 8, 13, 21, 34,... We can calculate the nth Fibonacci

More information

A comparative study of Programming by Contract and Programming with Exceptions

A comparative study of Programming by Contract and Programming with Exceptions Computer Science Jimmy Byström Leo Wentzel A comparative study of Programming by Contract and Programming with Exceptions Master s Thesis 2003:02 A comparative study of Programming by Contract and Programming

More information

Hybrid Technique for Java Code Complexity Analysis

Hybrid Technique for Java Code Complexity Analysis Hybrid Technique for Java Code Complexity Analysis 1 ouh Alhindawi 1 Faculty of Science and Information Technology Jadara University 2 Mohammad Subhi Al-Batah 2 Faculty of Science and Information Technology

More information

An exploratory investigation on the invasiveness of environmental modeling frameworks

An exploratory investigation on the invasiveness of environmental modeling frameworks 8 th World IMACS / MODSIM Congress, Cairns, Australia -7 July 009 http://mssanz.org.au/modsim09 An exploratory investigation on the invasiveness of environmental modeling frameworks Wes Lloyd, Olaf David,

More information

Comparison of Size and Complexity Metrics as Predictors of the Number of Software Faults

Comparison of Size and Complexity Metrics as Predictors of the Number of Software Faults Comparison of Size and Complexity Metrics as Predictors of the Number of Software Faults Plínio R. S. Vilela, Waldo Luis de Lucca, Ariane Corso, and Mario Jino Methodist University of Piracicaba, Piracicaba

More information

A Systematic Review of Bad Smells Metrics. Luiz Paulo Coelho Ferreira

A Systematic Review of Bad Smells Metrics. Luiz Paulo Coelho Ferreira A Systematic Review of Bad Smells Metrics Luiz Paulo Coelho Ferreira Motivation One of the main goals in Software Engineering is to transform software development in a process predictable and controlled.

More information

Outline. When we last saw our heros. Language Issues. Announcements: Selecting a Language FORTRAN C MATLAB Java

Outline. When we last saw our heros. Language Issues. Announcements: Selecting a Language FORTRAN C MATLAB Java Language Issues Misunderstimated? Sublimable? Hopefuller? "I know how hard it is for you to put food on your family. "I know the human being and fish can coexist peacefully." Outline Announcements: Selecting

More information

METRICS EVALUATION USING OPEN SOURCE SOFTWARE

METRICS EVALUATION USING OPEN SOURCE SOFTWARE METRICS EVALUATION USING OPEN SOURCE SOFTWARE Thesis submitted in partial fulfillment of the requirements for the award of degree of Master of Technology in Computer Science and Applications Submitted

More information

Software Testing. 1. Testing is the process of demonstrating that errors are not present.

Software Testing. 1. Testing is the process of demonstrating that errors are not present. What is Testing? Software Testing Many people understand many definitions of testing :. Testing is the process of demonstrating that errors are not present.. The purpose of testing is to show that a program

More information

Empirical Software Engineering. Empirical Software Engineering with Examples. Classification. Software Quality. precision = TP/(TP + FP)

Empirical Software Engineering. Empirical Software Engineering with Examples. Classification. Software Quality. precision = TP/(TP + FP) Empirical Software Engineering Empirical Software Engineering with Examples a sub-domain of software engineering focusing on experiments on software systems devise experiments on software, in collecting

More information

Asset Keeper Pro - Asset Listing Inside and Out - Part I

Asset Keeper Pro - Asset Listing Inside and Out - Part I Introduction The Asset Listing is used to find one or more assets that you want to review or edit. There is a great deal to discover about the Asset Listing and at times, it can be overwhelming. Because

More information

Effective Estimation of Modules Metrics in Software Defect Prediction

Effective Estimation of Modules Metrics in Software Defect Prediction Effective Estimation of Modules Metrics in Software Defect Prediction S.M. Fakhrahmad, A.Sami Abstract The prediction of software defects has recently attracted the attention of software quality researchers.

More information

Object-oriented metrics for Java programs

Object-oriented metrics for Java programs Object-oriented metrics for Java programs Project in Computer Science EDAN70 January 22, 2015 Olle Tervalampi-Olsson D11, Lund Institute of Technology, Sweden dat11ote@student.lu.se Marcus Lacerda D11,

More information

SOFTWARE ASSESSMENT USING OBJECT METRICS

SOFTWARE ASSESSMENT USING OBJECT METRICS Key words: object metrics, metrics measuring tools, software assessment, software evolution Ilona BLUEMKE*, Rafał ROGUSKI* SOFTWARE ASSESSMENT USING OBJECT METRICS Adequate metrics of object-oriented software

More information

An Object-Oriented Metrics Suite for Ada 95

An Object-Oriented Metrics Suite for Ada 95 An Object-Oriented Metrics Suite for Ada 95 William W. Pritchett IV DCS Corporation 133 Braddock Place Alexandria, VA 22314 73.683.843 x726 wpritche@dcscorp.com 1. ABSTRACT Ada 95 added object-oriented

More information

Comparison of Software Complexity Metrics

Comparison of Software Complexity Metrics International Journal of Computing and Network Technology ISSN (-) Int. J. Com. Net. Tech., No. 1 (Jan.-0) Comparison of Software Complexity Metrics Ali Athar Khan, Amjad Mahmood, Sajeda M. Amralla and

More information

References: internet notes; Bertrand Meyer, Object-Oriented Software Construction; 10/14/2004 1

References: internet notes; Bertrand Meyer, Object-Oriented Software Construction; 10/14/2004 1 References: internet notes; Bertrand Meyer, Object-Oriented Software Construction; 10/14/2004 1 Assertions Statements about input to a routine or state of a class Have two primary roles As documentation,

More information

A New Weighted Composite Complexity Measure for Object-Oriented Systems

A New Weighted Composite Complexity Measure for Object-Oriented Systems A New Weighted Composite Complexity Measure for Obect-Oriented Systems Usha Chhillar, Shuchita Bhasin Department of Computer Science, Kurukshetra University, Kurukshetra, Haryana, India ABSTRACT Controlling

More information

Feasibility of Testing to Code. Feasibility of Testing to Code. Feasibility of Testing to Code. Feasibility of Testing to Code (contd)

Feasibility of Testing to Code. Feasibility of Testing to Code. Feasibility of Testing to Code. Feasibility of Testing to Code (contd) Feasibility of Testing to Code (contd) Feasibility of Testing to Code (contd) An incorrect code fragment for determining if three integers are equal, together with two test cases Flowchart has over 10

More information

Software Engineering Testing and Debugging Testing

Software Engineering Testing and Debugging Testing Software Engineering Testing and Debugging Testing Prof. Dr. Peter Thiemann Universitt Freiburg 08.06.2011 Recap Testing detect the presence of bugs by observing failures Debugging find the bug causing

More information

A HYBRID FEATURE SELECTION MODEL FOR SOFTWARE FAULT PREDICTION

A HYBRID FEATURE SELECTION MODEL FOR SOFTWARE FAULT PREDICTION A HYBRID FEATURE SELECTION MODEL FOR SOFTWARE FAULT PREDICTION C. Akalya devi 1, K. E. Kannammal 2 and B. Surendiran 3 1 M.E (CSE), Sri Shakthi Institute of Engineering and Technology, Coimbatore, India

More information

All the subjective part of 2011 papers solved complete reference numbers

All the subjective part of 2011 papers solved complete reference numbers 1 All current papers 2011 Solved papers (eagle_eye) CS504 Current data final term paper 15 FEB All the subjective part of 2011 papers solved complete reference numbers 1) Describe the the concept of cyclomatic

More information

Software Engineering

Software Engineering Software Engineering Lecture 13: Testing and Debugging Testing Peter Thiemann University of Freiburg, Germany SS 2014 Recap Recap Testing detect the presence of bugs by observing failures Recap Testing

More information

Empirical Evaluation and Critical Review of Complexity Metrics for Software Components

Empirical Evaluation and Critical Review of Complexity Metrics for Software Components Proceedings of the 6th WSEAS Int. Conf. on Software Engineering, Parallel and Distributed Systems, Corfu Island, Greece, February 16-19, 2007 24 Empirical Evaluation and Critical Review of Complexity Metrics

More information

Empirical Software Engineering. Empirical Software Engineering with Examples! is not a topic for examination. Classification.

Empirical Software Engineering. Empirical Software Engineering with Examples! is not a topic for examination. Classification. Empirical Software Engineering Empirical Software Engineering with Examples is not a topic for examination a sub-domain of software engineering focusing on experiments on software systems devise experiments

More information

Effect of Principle Component Analysis and Support Vector Machine in Software Fault Prediction

Effect of Principle Component Analysis and Support Vector Machine in Software Fault Prediction International Journal of Computer Trends and Technology (IJCTT) volume 7 number 3 Jan 2014 Effect of Principle Component Analysis and Support Vector Machine in Software Fault Prediction A. Shanthini 1,

More information

Software Testing Prof. Rajib Mall Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur. Lecture 13 Path Testing

Software Testing Prof. Rajib Mall Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur. Lecture 13 Path Testing Software Testing Prof. Rajib Mall Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture 13 Path Testing Welcome to this session and we will discuss about path

More information

Improving the quality of software cohesion metrics through dynamic analysis

Improving the quality of software cohesion metrics through dynamic analysis Improving the quality of software cohesion metrics through dynamic analysis Ravneet kaur, Amritsar Department of Computer Science, Lovely Professional university, Phagwara, India Abstract - Class cohesion

More information

Bucket Sort Puzzlers. 08 A: Sorting IV. CS1102S: Data Structures and Algorithms. Martin Henz. March 12, 2010

Bucket Sort Puzzlers. 08 A: Sorting IV. CS1102S: Data Structures and Algorithms. Martin Henz. March 12, 2010 08 A: Sorting IV CS1102S: Data Structures and Algorithms Martin Henz March 12, 2010 Generated on Friday 12 th March, 2010, 11:26 CS1102S: Data Structures and Algorithms 08 A: Sorting IV 1 1 2 CS1102S:

More information

J2EE Development Best Practices: Improving Code Quality

J2EE Development Best Practices: Improving Code Quality Session id: 40232 J2EE Development Best Practices: Improving Code Quality Stuart Malkin Senior Product Manager Oracle Corporation Agenda Why analyze and optimize code? Static Analysis Dynamic Analysis

More information

Computer-Aided Reengineering Environment. User Guide. Version August

Computer-Aided Reengineering Environment. User Guide. Version August CARE Computer-Aided Reengineering Environment User Guide Version 2.0.2 August 2004 http://www.atxsoftware.com CARE Users Guide Pág. 2 de 46 1. INTRODUCTION... 6 2. INSTALLATION... 7 SETUP... 7 CONFIGURATION...

More information

Chapter 10. Testing and Quality Assurance

Chapter 10. Testing and Quality Assurance Chapter 10 Testing and Quality Assurance Different styles of doing code review Human Reviewer Code Inspection with continuous integration infrastructure Pinger s testing set up Testing Related topics 1.

More information

On the Impact of Refactoring Operations on Code Quality Metrics

On the Impact of Refactoring Operations on Code Quality Metrics On the Impact of Refactoring Operations on Code Quality Metrics Oscar Chaparro 1, Gabriele Bavota 2, Andrian Marcus 1, Massimiliano Di Penta 2 1 University of Texas at Dallas, Richardson, TX 75080, USA

More information

MEASURE YOUR CODE USING CODE METRICS. CS 599 Software Metrics and Models Hana Alarifi

MEASURE YOUR CODE USING CODE METRICS. CS 599 Software Metrics and Models Hana Alarifi MEASURE YOUR CODE USING CODE METRICS CS 599 Software Metrics and Models Hana Alarifi Overview Quality code is the top priority for a good developer. The code must be not only bug free code but also understandable,

More information

2IS55 Software Evolution. Software metrics. Alexander Serebrenik

2IS55 Software Evolution. Software metrics. Alexander Serebrenik 2IS55 Software Evolution Software metrics Alexander Serebrenik Assignments Assignment 3: deadline March 17! Assignment 4: testing Assignment 5: Do software evolution laws hold in practice? Use software

More information

Software Engineering

Software Engineering Software Engineering Lecture 15: Testing and Debugging Debugging Peter Thiemann University of Freiburg, Germany SS 2014 Motivation Debugging is unavoidable and a major economical factor Software bugs cost

More information

SOFTWARE COMPLEXITY MEASUREMENT USING MULTIPLE CRITERIA ABSTRACT

SOFTWARE COMPLEXITY MEASUREMENT USING MULTIPLE CRITERIA ABSTRACT SOFTWARE COMPLEXITY MEASUREMENT USING MULTIPLE CRITERIA Bhaskar Raj Sinha, Pradip Peter Dey, Mohammad Amin and Hassan Badkoobehi National University, School of Engineering, Technology, and Media 3678 Aero

More information

Impact of Dependency Graph in Software Testing

Impact of Dependency Graph in Software Testing Impact of Dependency Graph in Software Testing Pardeep Kaur 1, Er. Rupinder Singh 2 1 Computer Science Department, Chandigarh University, Gharuan, Punjab 2 Assistant Professor, Computer Science Department,

More information