What is Extreme Programming? [转自www.xprogramming.com]

开源流量回放平台AREX在携程的大规模落地实践.pdf 立即下载
Ron Jeffries
11/08/2001
Extreme Programming is a discipline of software development based on values of simplicity, communication, feedback, and courage. It works by bringing the whole team together in the presence of simple practices, with enough feedback to enable the team to see where they are and to tune the practices to their unique situation.

In Extreme Programming, every contributor to the project is an integral part of the "Whole Team". The team forms around a business representative called "the Customer", who sits with the team and works with them daily.

Extreme Programming teams use a simple form of planning and tracking to decide what should be done next and to predict when the project will be done. Focused on business value, the team produces the software in a series of small fully-integrated releases that pass all the tests the Customer has defined.

Extreme Programmers work together in pairs and as a group, with simple design and obsessively tested code, improving the design continually to keep it always just right for the current needs.

The Extreme Programming team keeps the system integrated and running all the time. The programmers write all production code in pairs, and all work together all the time. They code in a consistent style so that everyone can understand and improve all the code as needed.

The Extreme Programming team shares a common and simple picture of what the system looks like. Everyone works at a pace that can be sustained indefinitely.

Core Practices

Whole Team

All the contributors to an XP project sit together, members of one team. This team must include a business representative -- the "Customer" -- who provides the requirements, sets the priorities, and steers the project. It's best if the Customer or one of her aides is a real end user who knows the domain and what is needed. The team will of course have programmers. The team may include testers, who help the Customer define the customer acceptance tests. Analysts may serve as helpers to the Customer, helping to define the requirements. There is commonly a coach, who helps the team keep on track, and facilitates the process. There may be a manager, providing resources, handling external communication, coordinating activities. None of these roles is necessarily the exclusive property of just one individual: Everyone on an XP team contributes in any way that they can. The best teams have no specialists, only general contributors with special skills.

Planning Game

XP planning addresses two key questions in software development: predicting what will be accomplished by the due date, and determining what to do next. The emphasis is on steering the project -- which is quite straightforward -- rather than on exact prediction of what will be needed and how long it will take -- which is quite difficult. There are two key planning steps in XP, addressing these two questions:

Release Planning is a practice where the Customer presents the desired features to the programmers, and the programmers estimate their difficulty. With the costs estimates in hand, and with knowledge of the importance of the features, the Customer lays out a plan for the project. Initial release plans are necessarily imprecise: neither the priorities nor the estimates are truly solid, and until the team begins to work, we won't know just how fast they will go. Even the first release plan is accurate enough for decision making, however, and XP teams revise the release plan regularly.

Iteration Planning is the practice whereby the team is given direction every couple of weeks. XP teams build software in two-week "iterations", delivering running useful software at the end of each iteration. During Iteration Planning, the Customer presents the features desired for the next two weeks. The programmers break them down into tasks, and estimate their cost (at a finer level of detail than in Release Planning). Based on the amount of work accomplished in the previous iteration, the team signs up for what will be undertaken in the current iteration.

These planning steps are very simple, yet they provide very good information and excellent steering control in the hands of the Customer. Every couple of weeks, the amount of progress is entirely visible. There is no "ninety percent done" in XP: a feature story was completed, or it was not. This focus on visibility results in a nice little paradox: on the one hand, with so much visibility, the Customer is in a position to cancel the project if progress is not sufficient. On the other hand, progress is so visible, and the ability to decide what will be done next is so complete, that XP projects tend to deliver more of what is needed, with less pressure and stress.

Customer Tests

As part of presenting each desired feature, the XP Customer defines one or more automated acceptance tests to show that the feature is working. The team builds these tests and uses them to prove to themselves, and to the customer, that the feature is implemented correctly. Automation is important because in the press of time, manual tests are skipped. That's like turning off your lights when the night gets darkest.

The best XP teams treat their customer tests the same way they do programmer tests: once the test runs, the team keeps it running correctly thereafter. This means that the system only improves, always notching forward, never backsliding.

Small Releases

XP teams practice small releases in two important ways:

First, the team releases running, tested software, delivering business value chosen by the Customer, every iteration. The Customer can use this software for any purpose, whether evaluation or even release to end users (highly recommended). The most important aspect is that the software is visible, and given to the customer, at the end of every iteration. This keeps everything open and tangible.

Second, XP teams release to their end users frequently as well. XP Web projects release as often as daily, in house projects monthly or more frequently. Even shrink-wrapped products are shipped as often as quarterly.

It may seem impossible to create good versions this often, but XP teams all over are doing it all the time. See Continuous Integration for more on this, and note that these frequent releases are kept reliable by XP's obsession with testing, as described here in Customer Tests and Test-Driven Development.

Simple Design

XP teams build software to a simple design. They start simple, and through programmer testing and design improvement, they keep it that way. An XP team keeps the design exactly suited for the current functionality of the system. There is no wasted motion, and the software is always ready for what's next.

Design in XP is not a one-time thing, or an up-front thing, it is an all-the-time thing. There are design steps in release planning and iteration planning, plus teams engage in quick design sessions and design revisions through refactoring, through the course of the entire project. In an incremental, iterative process like Extreme Programming, good design is essential. That's why there is so much focus on design throughout the course of the entire development.

Pair Programming

All production software in XP is built by two programmers, sitting side by side, at the same machine. This practice ensures that all production code is reviewed by at least one other programmer, and results in better design, better testing, and better code.

It may seem inefficient to have two programmers doing "one programmer's job", but the reverse is true. Research into pair programming shows that pairing produces better code in about the same time as programmers working singly. That's right: two heads really are better than one!

Some programmers object to pair programming without ever trying it. It does take some practice to do well, and you need to do it well for a few weeks to see the results. Ninety percent of programmers who learn pair programming prefer it, so we highly recommend it to all teams.

Pairing, in addition to providing better code and tests, also serves to communicate knowledge throughout the team. As pairs switch, everyone gets the benefits of everyone's specialized knowledge. Programmers learn, their skills improve, they become move valuable to the team and to the company. Pairing, even on its own outside of XP, is a big win for everyone.

Test-Driven Development

Extreme Programming is obsessed with feedback, and in software development, good feedback requires good testing. Top XP teams practice "test-driven development", working in very short cycles of adding a test, then making it work. Almost effortlessly, teams produce code with nearly 100 percent test coverage, which is a great step forward in most shops. (If your programmers are already doing even more sophisticated testing, more power to you. Keep it up, it can only help!)

It isn't enough to write tests: you have to run them. Here, too, Extreme Programming is extreme. These "programmer tests", or "unit tests" are all collected together, and every time any programmer releases any code to the repository (and pairs typically release twice a day or more), every single one of the programmer tests must run correctly. One hundred percent, all the time! This means that programmers get immediate feedback on how they're doing. Additionally, these tests provide invaluable support as the software design is improved.

Design Improvement

Extreme Programming focuses on delivering business value in every iteration. To accomplish this over the course of the whole project, the software must be well-designed. The alternative would be to slow down and ultimately get stuck. So XP uses a process of continuous design improvement called Refactoring, from the title of Martin Fowler's book, "Refactoring: Improving the Design of Existing Code".

The refactoring process focuses on removal of duplication (a sure sign of poor design), and on increasing the "cohesion" of the code, while lowering the "coupling". High cohesion and low coupling have been recognized as the hallmarks of well-designed code for at least thirty years. The result is that XP teams start with a good, simple design, and always have a good, simple design for the software. This lets them sustain their development speed, and in fact generally increase speed as the project goes forward.

Refactoring is, of course, strongly supported by comprehensive testing to be sure that as the design evolves, nothing is broken. Thus the customer tests and programmer tests are a critical enabling factor. The XP practices support each other: they are stronger together than separately.

Continuous Integration

Extreme Programming teams keep the system fully integrated at all times. We say that daily builds are for wimps: XP teams build multiple times per day. (One XP team of forty people builds at least eight or ten times per day!)

The benefit of this practice can be seen by thinking back on projects you may have heard about (or even been a part of) where the build process was weekly or less frequently, and usually led to "integration hell", where everything broke and no one knew why.

Infrequent integration leads to serious problems on a software project. First of all, although integration is critical to shipping good working code, the team is not practiced at it, and often it is delegated to people who are not familiar with the whole system. Second, infrequently integrated code is often -- I would say usually -- buggy code. Problems creep in at integration time that are not detected by any of the testing that takes place on an unintegrated system. Third, weak integration process leads to long code freezes. Code freezes mean that you have long time periods when the programmers could be working on important shippable features, but that those features must be held back. This weakens your position in the market, or with your end users.

Collective Code Ownership

On an Extreme Programming project, any pair of programmers can improve any code at any time. This means that all code gets the benefit of many people's attention, which increases code quality and reduces defects. There is another important benefit as well: when code is owned by individuals, required features are often put in the wrong place, as one programmer discovers that he needs a feature somewhere in code that he does not own. The owner is too busy to do it, so the programmer puts the feature in his own code, where it does not belong. This leads to ugly, hard-to-maintain code, full of duplication and with low (bad) cohesion.

Collective ownership could be a problem if people worked blindly on code they did not understand. XP avoids these problems through two key techniques: the programmer tests catch mistakes, and pair programming means that the best way to work on unfamiliar code is to pair with the expert. In addition to ensuring good modifications when needed, this practice spreads knowledge throughout the team.

Coding Standard

XP teams follow a common coding standard, so that all the code in the system looks as if it was written by a single -- very competent -- individual. The specifics of the standard are not important: what is important is that all the code looks familiar, in support of collective ownership.

Metaphor

Extreme Programming teams develop a common vision of how the program works, which we call the "metaphor". At its best, the metaphor is a simple evocative description of how the program works, such as "this program works like a hive of bees, going out for pollen and bringing it back to the hive" as a description for an agent-based information retrieval system.

Sometimes a sufficiently poetic metaphor does not arise. In any case, with or without vivid imagery, XP teams use a common system of names to be sure that everyone understands how the system works and where to look to find the functionality you're looking for, or to find the right place to put the functionality you're about to add.

Sustainable Pace

Extreme Programming teams are in it for the long term. They work hard, and at a pace that can be sustained indefinitely. This means that they work overtime when it is effective, and that they normally work in such a way as to maximize productivity week in and week out. It's pretty well understood these days that death march projects are neither productive nor produce quality software. XP teams are in it to win, not to die.

Conclusion

Extreme Programming is a discipline of software development based on values of simplicity, communication, feedback, and courage. It works by bringing the whole team together in the presence of simple practices, with enough feedback to enable the team to see where they are and to tune the practices to their unique situation.

Picture

Here's a picture showing the practices and the main "cycles" of XP.

Archival Reference

The original XProgramming page on this topic is still available for your reference.

AscendNPU-IR面向昇腾的MLIR中间表示,提供昇腾完备表达能力 AscendNPU IR(AscendNPU Intermediate Representation)是基于MLIR(Multi-Level Intermediate Representation)构建的,面向昇腾亲和算子编译时使用的中间表示,提供昇腾完备表达能力,通过编译优化提升昇腾AI处理器计算效率,支持通过生态框架使能昇腾AI处理器与深度调优。 AscendNPU IR提供多级抽象接口:提供一系列高层抽象接口,屏蔽昇腾计算、搬运、同步指令细节,编译优化自动感知硬件架构,将硬件无关表达映射到底层指令,提升算子开发易用性;同时提供细粒度性能控制接口,能够精准控制片上内存地址、流水同步插入位置以及是否使能乒乓流水优化等,允许性能细粒度控制。 立即下载

相关推荐

制造业生产缺陷率预测数据集产线效率

本数据集面向制造业质量管理场景,围绕影响产线缺陷率的关键因素设计,每条记录代表一个生产观测日的多维度运营指标,覆盖生产产量、生产成本、供应商质量、交付延迟、设备维护、人员技能与自动化水平等变量,目标是对高低缺陷率进行预测与归因,是智能制造与工业数据分析的实用练习材料。字段结构清晰:生产指标含日产量(每日100到1000件区间)与日生产成本(5000到20000美元区间);供应链指标含供应商质量评分(80%到100%)与平均交付延迟天数(0到5天);质量指标为缺陷率(千件产品缺陷数,0.5到5.0区间);同时纳入设备维护频率、员工培训与技能水平、缺陷检测方法(人工、自动化、机器视觉)、产品型号、生产班次与所在产线等运营上下文,形成从输入因素到质量结果的分析闭环。适合的应用场景:缺陷率预测的二分类与回归建模、质量影响因素的特征重要性分析、供应商质量与交付表现对产出的影响量化、设备维护与停机的关系研究、自动化检测方式与人工检测的效率对比、精益生产与六西格玛课程的数据案例、工业数据分析作品集项目。制造业质量数字化正从事后抽检走向数据驱动的预测性质量管理,该数据集以业务口径完整的指标体系,让学习者完整演练从特征构建到模型落地的流程,适合工业工程师、质量管理者与数据科学学习者使用。数据为教学用途按制造业规律构建的合成数据,不对应任何真实工厂,用于分析方法练习而非真实生产决策。数据采用CC BY 4.0许可,使用时注明数据来源即可用于学习研究与商业分析。

What is Extreme Programming?

What is Extreme Programming? Extreme Programming is a discipline of software development based on values of simplicity, communication, feedback, courage, and respect. It works by bringing the w

tuzi37的专栏 1223

超声波熔接结构设计.pdf

技术分享

Extreme Programming (1)

Extreme Programming ,极限编程,有个很好听的缩写名称,为XP。呃,不过显然不是去模仿 Microsoft Windows XP操作系统名称,因为极限编程理念的提出是1996年,远远早于XP系统的出现。我目前是大一软件工程学院的学生,虽说是只有大一,不过我们学院程序设计老师,呃,在教我们 Java 的同时,一直向我们灌输软件工程的思想。对我们的编程风格反复要求,甚是严

Stone X 档案 545

目视化管理-初版.pdf

技术分享

手摇磨床操作与保养规范.doc

技术分享

[收藏好东东]极限限编程 Extreme Programming (中英文对照)

极限编程 Extreme Programming   作者 不详 来源 http://www.cutter.com/ 审校 BigMac[AKA]译者 march-bird lucian yjf taopin wl jazz韩伟 nullgate Simon[AKA]   As we have explored in several issues of eAD, the two most pres

曾经的,现在的,将来的……  3824

无凸缘盒形件拉深_逐步演算实战指导书.docx

无凸缘盒形件拉深_逐步演算实战指导书

xprogramming

Basic Extreme Programming http://xprogramming.com/what-is-extreme-programming/  

zcc06092675的专栏 280

省级工信部门在规划产业链协同创新时,智能技术评估的标准制定依据是什么?.docx

省级工信部门在规划产业链协同创新时,智能技术评估的标准制定依据是什么?

传统铣削机台操作与保养作业规范.doc

技术分享

无线通信工业级室外大功率双频无线AP基站:支持OFDMA与AI漫游的远距离高可靠网络覆盖解决方案

内容概要:本文介绍了WiFiSupply斯普莱品牌的WFS7000BDIAX12型工业级室外无线AP基站,该设备支持2.4G+5GHz双射频,具备2974Mbps高速率、28dBm×2大功率输出及1dBm步进可调能力,采用OFDMA与私有协议实现抗干扰、低延迟通信(≤1ms),支持10台以上基站同频共存和AI FastRoaming智能漫游(切换延迟≤20ms)。内置12dBi 90°双频双极化天线,覆盖距离达3km,配合高增益抛物面天线桥接可达150km以上。设备符合IP68防护标准,支持-45~85℃宽温运行,具备6KV防浪涌、±20kV ESD抗扰等工业级可靠性,并通过SGS、CE、MTBF 20万小时等多项权威认证。; 适合人群:适用于工业自动化、智慧交通、智慧物流、森林防火等领域中需要远距离、高稳定无线通信的工程技术人员和系统集成商;特别适合对无线抗干扰、低延迟、无缝漫游有严苛要求的应用场景。; 使用场景及目标:①用于AMR-AGV、四向穿梭车、堆垛机等移动设备的无线组网与控制;②实现车载、船载、无人机遥控等高速移动场景下的稳定视频传输与指令交互;③广泛应用于厂房、仓储、立体库、驾驶员考试系统等室内外大范围无线覆盖项目;④满足远距离桥接、免布线改造、工业PLC无线通信等需求; 阅读建议:本产品强调工业级性能与复杂环境适应能力,建议结合具体应用环境参数进行选型配置,重点关注其OFDMA抗干扰机制、AI漫游算法、多重安全认证及供电安装方式,以便充分发挥其高性能优势。

高校院所评估创新战略联盟成员贡献度,有哪些量化的评价模型或工具?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

细分赛道科创企业画像数据颗粒度通常达到什么级别?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

全国范围内具备权威性的科创企业信用及画像数据服务商排名情况如何?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

顶刊复现改进优化反演控制的水面舰艇自适应跟踪控制程序

内容概要:本文档是一份科研资源共享资料,聚焦于“改进优化反演控制的水面舰艇自适应跟踪控制程序”的Matlab仿真实现,涵盖多种先进控制算法在水面及水下航行器路径跟踪中的应用。内容包括反演控制、自适应控制、模糊PID、传统PID、非线性模型预测控制(NMPC)、李雅普诺夫稳定性分析、神经网络控制等现代控制方法,适用于水面舰艇、无人船(USV)、水下航行器(AUV/UUV)等系统的轨迹跟踪与运动控制仿真。文档还系统整理了多智能体协同控制、事件触发通信、六自由度建模、LOS导引律、编队控制等相关课题资源,配套提供Matlab/Simulink仿真模型、详细说明文档及参考文献,旨在为自动化、船舶工程、海洋机器人等领域的科研人员提供算法复现与创新研究的技术支持。; 适合人群:具备自动控制理论、机器人运动学与动力学基础,熟练掌握Matlab/Simulink仿真环境,从事海洋装备控制、智能船舶、无人系统导航与控制等相关方向研究的硕士、博士研究生及科研人员。; 使用场景及目标:① 复现顶刊论文中的先进控制算法,如改进反演控制、自适应蚁群优化、滑模控制等;② 开展水面/水下航行器轨迹跟踪、路径规划、协同控制等课题的仿真验证与性能对比分析;③ 构建基于李雅普诺夫稳定性的控制器并进行系统收敛性分析;④ 学习复杂非线性系统建模与先进控制策略的设计方法,支撑科研项目攻关与高水平论文撰写。; 阅读建议:建议结合提供的仿真代码与说明文档,逐模块调试运行示例程序,重点理解控制器设计逻辑、参数整定流程与稳定性证明思路;鼓励在现有模型基础上进行算法改进与拓展,应用于实际科研课题或学术成果转化。

大型技术转移机构运营创新联盟,有哪些通过数字化手段显著提升供需匹配成功率的实战案例?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

ArcMap安装与配置全攻略:从下载到实战应用

本文提供了ArcMap 10.4.1从系统准备、详细安装到破解激活的完整指南,并包含首次启动的界面介绍与一个实战GIS分析项目。针对初学者,文章强调了在ArcGIS Pro成为趋势的当下,学习经典ArcMap对于理解核心概念和兼容现有工作流仍有重要价值,帮助用户避开安装常见陷阱,快速上手实战应用。

weixin_29200741的博客 341
上一篇: [转贴]新手入门:c++经典
下一篇: 如何用正确的方法来写出质量好的软件的75条体会 [转]
ducktail
博客等级 码龄22年 0粉丝 7原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值