Page 243 - DCAP305_PRINCIPLES_OF_SOFTWARE_ENGINEERING
P. 243

Sarabjit Kumar, Lovely Professional University                                       Unit 12: Refactoring



                                     Unit 12: Refactoring                                         Notes



             CONTENTS

             Objectives
             Introduction
             12.1  Meaning of Refactoring
                  12.1.1  Refactoring Basic Examples
                  12.1.2  Bad Smells in Code
                  12.1.3  Documenting Refactoring
                  12.1.4  Basic Techniques behind Refactoring
                  12.1.5  Refactoring in Software Development Process
                  12.1.6  Benefits of Refactoring
                  12.1.7  Problems with Refactoring

                  12.1.8  A Critical View on Refactoring
             12.2  Verification
             12.3  Software Metrics
             12.4  Size of Metrics
                  12.4.1  Verification Refactoring
             12.5  Complexity Metrics Analysis
             12.6  Summary
             12.7  Keywords
             12.8  Review Questions

             12.9  Further Readings
            Objectives


            After studying this unit, you will be able to:
               •  Define meaning of refactoring
               •  Understand verification of refactoring

               •  Define software metrics
               •  Explain the size of metrics

               •  Define complexity metrics analysis
            Introduction


            Refactoring, as a software engineering method used to incrementally get better the design of
            existing code, is being increasingly adopted in industrial software development.

            Software refactoring is a key to agile software maintenance. It not only helps to locate bugs
            additional easily, but, what is more important, to keep it readable and ready for changes. If
            applied regularly, it benefits in shorter learning curve and simple accommodation of possible



                                             LOVELY PROFESSIONAL UNIVERSITY                                   237
   238   239   240   241   242   243   244   245   246   247   248