IDEAS home Printed from https://ideas.repec.org/a/ids/ijbisy/v27y2018i1p45-68.html
   My bibliography  Save this article

Code refactoring using slice-based cohesion metrics and aspect-oriented programming

Author

Listed:
  • Jagannath Singh
  • Pabitra Mohan Khilar
  • Durga Prasad Mohapatra

Abstract

Software restructuring is essential for maintaining software quality. It is a usual practice that we first design the software and then go for coding. After coding, if there is any change in the requirement or if the output is incorrect, then we have to modify the code again. For each small code modification, it is not feasible to alter the design. These minor changes made to the code causes decay in the software design. Software refactoring is used to restructure the code to improve the design and quality of the software. In this paper, we propose an approach for performing code refactoring. We use slice-based cohesion metrics to identify the target methods that require refactoring. After identifying the target methods, we use program slicing to divide the target method into two parts. Finally, we use the concept of aspects to alter the code structure in a manner that does not change the external behaviour of the original module.

Suggested Citation

  • Jagannath Singh & Pabitra Mohan Khilar & Durga Prasad Mohapatra, 2018. "Code refactoring using slice-based cohesion metrics and aspect-oriented programming," International Journal of Business Information Systems, Inderscience Enterprises Ltd, vol. 27(1), pages 45-68.
  • Handle: RePEc:ids:ijbisy:v:27:y:2018:i:1:p:45-68
    as

    Download full text from publisher

    File URL: http://www.inderscience.com/link.php?id=88570
    Download Restriction: Access to full text is restricted to subscribers.
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ids:ijbisy:v:27:y:2018:i:1:p:45-68. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sarah Parker (email available below). General contact details of provider: http://www.inderscience.com/browse/index.php?journalID=172 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.