In: Computer Science
Question 3 [20 Marks]
Extreme programming (XP) is a software development methodology which is intended to improve software quality and responsiveness to changing customer requirements. Briefly explain refactoring and pair programming in Extreme Programming.
Extreme programming (XP)- It is an agile software development framework that aims to produce higher quality software and higher quality of life for the development team.Extreme Programming is about getting feedback earlier in the process.
Refactoring in Extreme Programming:
Refactoring is the technique of improving the code without changing any functionality.Refactoring is an on going process of simplification that applies to code,design,testing and XP itself.
The main goal of refactoring is to make the initial code simple.Usually, the code becomes more and more complex during the process of software development.The fact is that developers need to integrate each new task with the previous code.By doing this the developer realizes that the initial code is not perfect and so the best way to avoid this problem is by using the technique of Refactoring in Extreme Programming(XP).
Steps to be followed during Refactoring:
Pair programming in Extreme Programming:
In this style of programming two programmers work side-by-side, sharing one computer, sharing one screen, keyboard, mouse and continuously collaborating on the same design, algorithm, code and test.
Hence these both mechanisms help in modifying the software quality and meeting the requirements of customers.