Reconstruction and design mode of extreme programming (XP)

Source: Internet
Author: User

In the beginningCodeWe lack experience when converting to software. Code bloated,BugIt is difficult to maintain and expand. As time passes, we have become better software designers. We can learn from our own mistakes and write more flexible software. We learn to consider issues from the user's perspective and improve and strengthen the software. We learn to abstract some objects from the design and learn to write comments and related documents, make the software more maintainable. When designing the software, we learn to consider the current and future needs, so that we can handle some changes with ease.We learned to consider more issues. We are maturing. However, eXtreme Programming tells us that we often design too much software, and we often spend a lot of unnecessary time on early design.

Mode and extreme programming (XP), Providing great help for software development. But so far,XPA lot of attention is paid to refactoring, and we never mention pattern.

InXP, One of the most important concepts is refactoring. With refactoring, we can avoid considering redundant design and requirements at all. We can minimize the size of code and increase the development speed.XPSaid, "do the simplest thing that may work ". In actual development, in order to make the software more flexible, many designers choose to use a large number of design patterns. One of the purposes is to avoid future refactoring.XPThe concept is contradictory.

In fact, the design pattern does not conflict with the refactoring of XP . XP is more suitable for rapid development of small and medium-sized projects. Refactoring can be used to achieve this goal. But if the demand changes frequently, why not use the design pattern? Introduce the design pattern in extreme programming, and XP may be more successful.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.