StudentShare
Contact Us
Sign In / Sign Up for FREE
Search
Go to advanced search...
Free

Major Issues in Refactoring - Essay Example

Cite this document
Summary
The essay "Major Issues in Refactoring" focuses on the critical analysis of the major issues in refactoring. Bad programming codes exist most of the time. These are codes that are more like a traditional kind with long methods and large classes…
Download full paper File format: .doc, available for editing
GRAB THE BEST PAPER96.4% of users find it useful
Major Issues in Refactoring
Read Text Preview

Extract of sample "Major Issues in Refactoring"

Doing this may be impossible if the program code is difficult to understand, especially if the one to add functions to it was not the one who initially made the program.

This is where refactoring will come in handy. Refactoring is a method of altering the code of software in various ways so it can easily be understood and the cost of modifying the code will be minimal. Refactoring does not change the observable behavior of the program. All changes are done internally just to make the code more flexible and reusable. Maintaining the program’s observable behavior is crucial to refactoring. Automated testing for each aspect of the software can be done to ensure the consistency of the observable behavior of the program.

Refactoring reduces the degradation of an application over time by helping the developers easily maintain it. It is like cleaning up the program’s code. It also makes the program easier to understand in the long run. Since one of the principles of refactoring is for it to be done in small steps, it can help the developer find bugs after testing each small step. And since you can easily find bugs, the time spent fixing them would be lesser. Thus, it will allow for more additional features to be added to the program.

Refactoring, however, may not apply to all program codes. If a code seems to be a total mess, really difficult to understand, and has a lot of bugs, then it might be better to rewrite the whole thing than just refactoring it. Also, when the work needs to be done by a certain deadline, refactoring may not be a good option because the benefits and productivity gain of refactoring may only come up long after the deadline has passed.

Also, refactoring should always be done carefully keeping all possible problems in mind. If a failure occurs with refactoring in a working system, it may cause severe damage to the program. Thus, the principles of refactoring – doing small steps, performing unit tests, applying changes predictably, not restructuring, and adding new features at the same time – should always be followed to avoid serious consequences.

Nevertheless, refactoring is still a very useful tool for a programmer. It improves the overall quality of the program and helps to easily maintain it. It is best that a programmer continuously use refactoring in every code he makes. Using it when writing new code is even better because it will help the programmer and others easily understand the code over time. It will also increase the potential of the code during its lifetime. Read More
Cite this document
  • APA
  • MLA
  • CHICAGO
(“Refactoring Essay Example | Topics and Well Written Essays - 500 words”, n.d.)
Refactoring Essay Example | Topics and Well Written Essays - 500 words. Retrieved from https://studentshare.org/miscellaneous/1508350-refactoring
(Refactoring Essay Example | Topics and Well Written Essays - 500 Words)
Refactoring Essay Example | Topics and Well Written Essays - 500 Words. https://studentshare.org/miscellaneous/1508350-refactoring.
“Refactoring Essay Example | Topics and Well Written Essays - 500 Words”, n.d. https://studentshare.org/miscellaneous/1508350-refactoring.
  • Cited: 0 times

CHECK THESE SAMPLES OF Major Issues in Refactoring

Service Oriented Architecture: Patterns and Antipatterns

This review ''Service Oriented Architecture: Patterns and Antipatterns'' discusses the Service Oriented Architecture (SOA) [1] is an up and coming architectural technique that is largely being taken up in the industry.... It makes it possible to improve distributed structures, which are adaptable, less costly and measurable....
20 Pages (5000 words) Literature review

Black Box Testing and White Box Testing

Below is the required refactoring of the Java calculator program using Test-Driven Development (TDD).... The paper "Black Box Testing and White Box Testing" states that automation can be of help, as such refactored code might be easier to move than full tests; the tests then can be remade after the specs have been replaced correctly in the refactored code....
4 Pages (1000 words) Coursework

Observations on Balancing Discipline and Agility

The major advantage of the traditional project management methods is that they are plan-driven and they follow a sequence and management approach to project development.... This report "Observations on Balancing Discipline and Agility" discusses a set of different but interconnected tasks and is an important activity of more or less every organization in view of the fact that almost every organization at the present is concerned with some kind of project management....
9 Pages (2250 words) Report

The Identification of Tescos Capital Structure

After debt issues in the balance sheet and the sale of property, this level was reinstated to its initial level.... esco states that their main sorts of finance are from medium and term debts, retained profits, commercial paper, leases, issues, bank bor, and rowings (Tesco 2007).... Leases also form a source of financing for Tesco, which is a major contributor to its broadsheet and in its capitatructure.... Taking this to be their major goal, Tesco would have achieved it by the increase of leverage and more debt issue....
8 Pages (2000 words) Coursework

Invoice Discounting: the Profitability of the Firm

The paper describes the CAPM that is based on a number of assumptions, which have been attacked by a number of researchers.... For example, the CAPM assumes that all investors invest only for a single holding period, which is not the case in practice.... ... ... ... This implication of the CAPM has been contested by a number of researchers....
10 Pages (2500 words) Essay

Appropriate Sources of Finance for NIKERT Plc

"International Taxation: Transfer Pricing" paper considers two companies, that is a parent company and a subsidiary company or two subsidiaries that have the same parent company, actively involved in trading with each other, to acquaint with the concept of transfer pricing.... ... ... ... Without adequate finance, a firm will not be able to meet the expenses that are associated with its daily operations and also will fail to invest in different assets to support its operations....
8 Pages (2000 words) Research Paper

Financial Planning and Its Importance

So, financial arrangements form one of the most important activities in a business.... This section of the paper discusses various short-term, medium-term and long-term sources of finance employed by a firm. ... ... ) Bank.... ... ... The paper "Financial Planning and Its Importance" is a great example of an assignment on finance and accounting....
12 Pages (3000 words) Assignment

Working Capital Management Techniques Used to Better Companys Position

The paper 'Working Capital Management Techniques Used to Better Company's Position' is a felicitous example of a finance & accounting report.... What working capital management techniques might Quinlan use to better its position vis-а-vis this particular customer?... ... ... ... The paper 'Working Capital Management Techniques Used to Better Company's Position' is a felicitous example of a finance & accounting report....
6 Pages (1500 words)
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Contact Us