Extreme Programming

0

What is Extreme Programming (XP)? How to use XP and where to use XP?

Extreme Programming (XP) is a lightweight methodology used for small to medium sized software development teams in case of rapidly changing environment. XP is a lightweight process since it won’t overburden the developers. People, customers and developers are centered in this process. XP is a discipline which follows a practice. The final stage is software development.

Where Extreme Programming (XP) is used?

  • For dynamic software situation.
  • For automation and functional tests.
  • Small and co-located development team.
  • Fixed time project risk factors.
  • Available participation of customers.
  • Highly adaptive development.

Principles of Extreme Programming (XP):

XP follow the YAGNI and DRY principle. YAGNI means You Ain’t Gonna Need It where DRY means Don’t Repeat Yourself. They convey the meaning like don’t work the stuff until you need it or going to implement it. Similarly don’t just repeat things.

XP embraces the change and grows on incremental change. A team that works for quality feels proud of the outcome. They understand the feedback immediately and react to it right away. XP react to this in a more concrete way.

5 rules of Extreme Programming (XP):

  1. Communication – Each step requires all the team members communication
  2. Courage – Programmers evaluate their own results without any excuses.
  3. Respect – Every person is responsible for the project output.
  4. Feedback – Improve the outcome frequently based on the feedback.
  5. Simplicity – Writing simple code to improve value and reduce time and the cost.

Life cycle of Extreme Programming (XP):

XP is all about development of many small processes which result in big project and the small piece of work hold no meaning when seen individually. The main advantage is that it is more flexible compared to traditional software building lifecycle. It gives opportunities to add a lot of changes.

  1. Planning:

The customers meet with the development team to share their requirements or to create user stories. Then the developer’s team plans the cost and time to finish the project with the developers to be working on the project.

  1. Designing:

Choose a system metaphor and use CRC card for design sessions. Then create a spike session to reduce the risk. Design won’t add functionality in anticipation.

  1. Coding:

The important phase where the code is generated based on the agreed metaphors. Pair programming is followed to develop high quality code.

  1. Testing:

Before release all the code has to pass through unit test to avoid bugs. And Extreme Programming (XP) the testing happens with the development rather that at the end of the development process.

  1. Listening:

It is one of the crucial methods followed in the XP. Along with customer the developer team also gets continuous feedback from the manager team.

Roles in Extreme Programming (XP):

  1. The coach: Someone used XP before and used to mentor the team members.
  2. The tracker: One of the team members used to keep track of the progress and to identify the area of improvement.
  3. The Developer: Everyone on the team is defined as developer with inter mix of skills.
  4. The customer: They make all the business decision of the project.

Extreme Programming (XP) practices:

  1. The test driven development
  2. The planning game
  3. On-site customer
  4. Pair programming
  5. Continuous Integration
  6. Code Refactoring
  7. Small Releases
  8. Simple design
  9. Collective Code Ownership
  10. System Metaphor
  11. Coding Standards
  12. 40-hour-week.

Difference between scrum and XP:

  1. Scrum has no engineering practices but XP have them
  2. Customer prioritize the work order in XP whereas in scrum developers choose the work order.
  3. XP are much more amenable to changes rather than scrum.
  4. Scrum works on sprints likely from two weeks to one month. XP works on iteration from one to two weeks.
  5. Scrum can be used with frameworks like XP or Kanban. Whereas XP can be directly applied to the team.

Advantages of Extreme Programming (XP):

  1. The whole process is visible and accountable.
  2. It helps the team to move in correct direction.
  3. XP improves employee satisfaction and retention.
  4. XP supports team works.
  5. Improved faster project output.

Conclusion:

Extreme Programming (XP) is a set of development practices in a project level. It is sometimes used in conjunction with scrum. Many of the practices are picked up by the development team who already follow agile principles.