Software Refactoring

Author
LinZheng
Advisor
ShengHuanZuo
School
Shanghai Jiaotong University
Major
Computer Applied Technology
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2008
Downloads
351
Citations
5

Request the full text

Abstract

Software in its life cycle , change is inevitable . The change from multiple user needs change , correct the error , the software application environment changes , and so on . The use of reconfigurable technology can improve the software internal structure , to prevent corruption of the code , and extend the software maintenance costs and service life . Reconstruction theory with the demand of large-scale software applications and the rapid development and the formation of a complete theoretical system currently refactoring methodology is a hot research topic in the field of software engineering . Software remodeling theory comparison system , combined with the practice of the reconstruction of the Qinshan Nuclear Power Project introduces the basic concepts of software refactoring , methods , and reconstruction of the testing strategy . Basic refactoring activities elaborated code refactoring of bad taste \And auditing standards through software quality assurance indicators compare the reconstructed before and after reconstruction system code optimization . In the design of model - based reconstruction of part of the general methods that use pattern of remodeling , design and in-depth analysis of the \other four modes reconstruction method , refactoring case . The final adoption of the above model reconstruction practice activities , summed up the basic ideas and application process of reconstructing the model . After the reconstruction of the design of the system before and after comparison, reconstructed to achieve remarkable results : to improve both the quality of the code , solve the problem difficult to extend corresponding module is difficult to maintain . This paper describes the basic reconstruction of practical activities, and the inductive mode reconstruction method has a certain universal significance , has a certain reference value for the software design and implementation of software refactoring .

Table of contents

Abstract 5-7 ABSTRACT 7-15 1. introduction 15-18 1.1 issues raised 15-16 1.2 This article contents and objectives of 16-17 1.3 of this paper structure 17-18 2. refactoring of software and its basic methods 18-26 2.1 What is software reconfigurable 18-19 2.1.1 software refactoring defined 18 2.1.2 software reconfigurable principle - two hats 18-19 2.2 software refactoring motivation 19-20 2.2.1 refactoring can improve code design 19 2.2.2 refactoring to make the software more easily understood 19-20 2.2.3 refactoring to help programmers find bugs 20 2.3 software reconstruction method outlined 20-22 2.3.1 duplicate code 20 2.3.2 too long and 20 2.3.3 conditional logic is too complex 20-21 2.3.4 basic types fascination 21 2.3.5 improper exposure 21 2.3.6 verbosity class 21-22 2.3.7 branch statement 22 2.3.8 combinatorial explosion 22 2.4 software refactoring test 22-24 2.4.1 testing in the reconstruction of the value 22-23 2.4.2 refactoring and unit testing 23-24 2.4.3 NUnit unit testing framework 24 2.5 software refactoring tools 24-26 3. refactoring pattern-based research 26-36 3.1 reconfigurable software design 26-27 3.2 Design Patterns Introduction 27-28 the 3.3 qinshan system reconfiguration relevant design patterns 28-34 3.3.1 Abstract Factory (Abstract Factory) 28-29 3.3.2 single piece mode (Singleton) 29-30 3.3.3 Flyweight (Flyweight) 30 the 3.3.4 command mode (Command) 30-31 3.3.5 intermediary (Mediator is) 31-32 3.3.6 state (State) 32 3.3.7 Memorandum of Understanding (Memento) 32-33 3.3.8 Strategy (Strategy) 33-34 the 3.3.9 template methods (Template Method) 34 3.4 design patterns reconstructed meaning 34-36 4. Reconstruction of Qinshan nuclear power system design 36-42 4.1 system reconstruction of the former design 36-38 4.1.1 System Architecture Figure 36-37 the 4.1.2 original system design flaws 37-38 4.2 system reconfiguration design 38-42 4.2.1 System Architecture Figure 38 4.2.2 business logic layer design 38-39 4.2.3 user interface layer design 39-42 5. Qinshan Nuclear Power system reconfigurable implementation 42-51 5.1 based QA audits reconstructed 42-44 5.2 based on the code bad taste \ 5.2.1 reorganize functions 44 5.2.2 move features between objects 44-45 5.2.3 reorganize data 45-46 5.2.4 simplifies conditions expression 46 5.2.5 simplify function calls 46 5.2.6 processing generalization relationship 46-47 5.2.7 \ 5.2.8 \ 6. based on design patterns, refactoring 51-66 6.1 mode reconstructed target 51 6.2 will be displayed with the field of separation 51-55 6.2.1 Command mode reconfigurable 51-53 6.2.2 Mediator reconstructed 53-54 6.2.3 state model introduced 54-55 6.3 dynamic sharing mechanism 55-58 6.3.1 Flyweight mode reconfigurable 55-56 6.3.2 Abstract Factory mode reconfigurable 56-58 6.4 more friendly human-computer interaction 58-60 6.4.1 Memento mode reconfigurable 58-59 6.4.2 Memento, Command and State collaboration 59-60 6.5 consider future changes 60-62 6.5.1 Strategy refactoring 60-61 6.5.2 Strategy mode program to achieve 61-62 6.6 Model Reconstruction Principles and Strategies 62-66 6.6.1 mode thinking process 63 6.6.2 switchover material functional reconstruction case analysis 63-66 7. Summary and Outlook 66-68 7.1 summarizes 66 7.2 Looking 66-68 the References 68-71 Acknowledgements 71-72 studied papers published by the Master of the period 72

Related dissertations

  1. A Environmental Monitoring System for Nuclear Power Plant Based on Refactoring
    ZhangXuePeng ·Nanhua University ·2012 ·Master's thesis
  2. Research and Application of Software Refactoring on NOR Flash Packaged Unit Testing Platform
    FuYiLei ·Shanghai Jiaotong University ·2008 ·Master's thesis
  3. Architecture Research in Legacy CAD System Reconstruction
    HaoAng ·Northwestern University ·2007 ·Master's thesis
  4. A Study on Code Optimization Method of eOLC Control Algorithm
  5. Design and Implementation of Java Refactoring Plug-in Based on Eclipse
  6. The Software Refactoring Technology Based on Data Mining and Its Application to the Software Asset Management
  7. Design and Implementation of Software for Children’s Elementary Painting Education Based on iOS
  8. Design and Implementation of Grain Purchase and Sale Management Information System Based on Web Framework
    SunZhong ·Hunan University ·2014 ·Master's thesis
  9. Research on Network System of Information Distribution and Relative Technology Based on Discrete State Predictor
  10. The Perspective of People's Jury System under the Judicial Credibility
    LiuZuo ·Liaoning Normal University ·2013 ·Master's thesis
  11. Design of Visual Force
  12. "Hyper realistic" "performers" - Rereading Lucien Floyd's portrait painting
    WangTingZuo ·China Academy of Art ·2013 ·Master's thesis
  13. On paper collage as an art elements in the drawing function
    LiuMei ·Central Academy of Fine Arts ·2014 ·Master's thesis
  14. On the Wander in Miguel De Cervantes Saavedra's Novels
    LiChaoJun ·Xiangtan University ·2013 ·Master's thesis
  15. Electricity Transaction Information Platform Design and Implementation
  16. Research on Software Technology in HVDC Transmission Design Software Package
    LiZhiPeng ·Zhejiang University ·2014 ·Master's thesis
  17. Study on the Design Patterns of Park Tourist Centre in Guangdong Region
    WangJunJun ·Guangzhou University ·2013 ·Master's thesis
  18. Design and Implementation of an ATM Bureau of Communication Navigation Surveillance System
  19. A Study on the Furniture of Sichuan Amdo Tibetan
    LuoYi ·Nanchang University ·2013 ·Master's thesis
  20. Fault diagnosis expert system for UAV flight control system design