软件工程-敏捷开发(中英文对照)教学文稿_第1页
软件工程-敏捷开发(中英文对照)教学文稿_第2页
软件工程-敏捷开发(中英文对照)教学文稿_第3页
软件工程-敏捷开发(中英文对照)教学文稿_第4页
软件工程-敏捷开发(中英文对照)教学文稿_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

软件工程-敏捷开发(中英文对照)极限编程

(ExtremeProgramming,简称为XP)敏捷开发被认为是一种“轻量级”的方法。在轻量级方法中最负盛名的应该是“极限编程”(ExtremeProgramming,简称为XP)。而与轻量级方法相对应的是“重量级方法”的存在。重量级方法强调以开发过程为中心,而不是以人为中心。ExtremeProgramming(XP)isasoftwaredevelopmentmethodologywhichisintendedtoimprovesoftwarequalityandresponsivenesstochangingcustomerrequirements.Asatypeofagilesoftwaredevelopment,itadvocatesfrequent"releases"inshortdevelopmentcycles(timeboxing),whichisintendedtoimproveproductivityandintroducecheckpointswherenewcustomerrequirementscanbeadopted.OtherelementsofExtremeProgramminginclude:programminginpairsordoingextensivecodereview,unittestingofallcode,avoidingprogrammingoffeaturesuntiltheyareactuallyneeded,aflatmanagementstructure,simplicityandclarityincode,expectingchangesinthecustomer'srequirementsastimepassesandtheproblemisbetterunderstood,andfrequentcommunicationwiththecustomerandamongprogrammers.Themethodologytakesitsnamefromtheideathatthebeneficialelementsoftraditionalsoftwareengineeringpracticesaretakento"extreme"levels,onthetheorythatifalittleisgood,moreisbetter.Criticshavenotedseveralpotentialdrawbacks弊端,

includingproblemswithunstablerequirements,nodocumentedcompromises(妥协、折衷)

ofuserconflicts(争执),andalackofanoveralldesignspecificationordocument.重量级方法呈现的是一种“防御型”的姿态。在应用“重量级方法”的软件组织中,由于软件项目经理不参与或者很少参与程序设计,无法从细节上把握项目进度,因而会对项目产生“恐惧感”,不得不要求程序员不断撰写很多“软件开发文档”。轻量级方法则呈现“进攻型”的姿态,这一点从XP方法特别强调的五种价值沟通communication,简单simplicity,反馈feedback,勇气courage,尊重respect。

ThevaluesofXP:

1.CommunicationBuildingsoftwaresystemsrequirescommunicatingsystemrequirementstothedevelopersofthesystem.Informalsoftwaredevelopmentmethodologies,thistaskisaccomplishedthroughdocumentation.Extremeprogrammingtechniquescanbeviewedasmethodsforrapidlybuildinganddisseminating散播institutionalknowledgeamongmembersofadevelopmentteam.Thegoalistogivealldevelopersasharedviewofthesystemwhichmatchestheviewheldbytheusersofthesystem.Tothisend,extremeprogrammingfavorssimpledesigns,commonmetaphors,collaborationofusersandprogrammers,frequentverbalcommunication,andfeedback.

ThevaluesofXP:2.SimplicityExtremeprogrammingencouragesstartingwiththesimplestsolution.Extrafunctionalitycanthenbeaddedlater.Thedifferencebetweenthisapproachandmoreconventionalsystemdevelopmentmethodsisthefocusondesigningandcodingfortheneedsoftodayinsteadofthoseoftomorrow,nextweek,ornextmonth.Thisissometimessummedupasthe"youain'tgonnaneedit"(YAGNI)approach.适可而止的设计"Youain'tgonnaneedit"or“Youaren′tgonnaneedit”(acronym:YAGNI)istheprincipleinextremeprogrammingthatprogrammersshouldnotaddfunctionalityuntilitisnecessary.RonJeffrieswrites,"Alwaysimplementthingswhenyouactuallyneedthem,neverwhenyoujustforeseethatyouneedthem."

ThevaluesofXP:2.SimplicityProponents支持者ofXPacknowledgethedisadvantagethatthiscansometimesentailmoreefforttomorrowtochangethesystem;theirclaimisthatthisismorethancompensatedforbytheadvantageofnotinvestinginpossiblefuturerequirementsthatmightchangebeforetheybecomerelevant.Codinganddesigningforuncertainfuturerequirementsimpliestheriskofspendingresourcesonsomethingthatmightnotbeneeded.Relatedtothe"communication"value,simplicityindesignandcodingshouldimprovethequalityofcommunication.Asimpledesignwithverysimplecodecouldbeeasilyunderstoodbymostprogrammersintheteam.

ThevaluesofXP:3.FeedbackWithinextremeprogramming,feedbackrelatestodifferentdimensionsofthesystemdevelopment:Feedbackfromthesystem:bywritingunittests,orrunningperiodicintegrationtests,theprogrammershavedirectfeedbackfromthestateofthesystemafterimplementingchanges.Feedbackfromthecustomer:Thefunctionaltests(aka又叫做;亦称为(=alsoknownas)

acceptancetests)arewrittenbythecustomerandthetesters.Theywillgetconcretefeedbackaboutthecurrentstateoftheirsystem.Thisreviewisplannedonceineverytwoorthreeweekssothecustomercaneasilysteerthedevelopment.Feedbackfromtheteam:Whencustomerscomeupwithnewrequirementsintheplanninggametheteamdirectlygivesanestimationofthetimethatitwilltaketoimplement.

ThevaluesofXP:3.FeedbackFeedbackiscloselyrelatedtocommunicationandsimplicity.Flawsinthesystemareeasilycommunicatedbywritingaunittestthatprovesacertainpieceofcodewillbreak.Thedirectfeedbackfromthesystemtellsprogrammerstorecodethispart.Acustomerisabletotestthesystemperiodicallyaccordingtothefunctionalrequirements,knownasuserstories.ToquoteKentBeck,"Optimismisanoccupationalhazardofprogramming.Feedbackisthetreatment."

ThevaluesofXP:4.CourageSeveralpracticesembodycourage.Oneisthecommandmenttoalwaysdesignandcodefortodayandnotfortomorrow.Thisisanefforttoavoidgettingboggeddownindesignandrequiringalotofefforttoimplementanythingelse.Courageenablesdeveloperstofeelcomfortablewithrefactoringtheircodewhennecessary.Thismeansreviewingtheexistingsystemandmodifyingitsothatfuturechangescanbeimplementedmoreeasily.Anotherexampleofcourageisknowingwhentothrowcodeaway:couragetoremovesourcecodethatisobsolete,nomatterhowmucheffortwasusedtocreatethatsourcecode.

ThevaluesofXP:4.CourageAlso,couragemeanspersistence:Aprogrammermightbestuckonacomplexproblemforanentireday,thensolvetheproblemquicklythenextday,ifonlytheyarepersistent.

ThevaluesofXP:5.Respect

Therespectvalueincludesrespectforothersaswellasself-respect.Programmersshouldnevercommitchangesthatbrea

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论