没有合适的资源?快使用搜索试试~ 我知道了~
首页Refactoring: Improving the Design of Existing Code 第二版
Refactoring: Improving the Design of Existing Code 第二版
需积分: 50 78 下载量 96 浏览量
更新于2023-03-16
评论 2
收藏 11.87MB PDF 举报
Martin大叔经典著作《重构》第二版,仅供交流学习之用。 This eagerly awaited new edition has been fully updated to reflect crucial changes in the programming landscape.Refactoring, Second Edition,features an updated catalog of refactorings and includes JavaScript code examples, as well as new functional examples that demonstrate refactoring without classes.
资源详情
资源评论
资源推荐
Refactoring
ImprovingtheDesignofExistingCode
SecondEdition
MartinFowler
withcontributionsby
KentBeck
Boston•Columbus•NewYork•SanFrancisco•Amsterdam•CapeTown
Dubai•London•Madrid•Milan•Munich•Paris•Montreal•Toronto•Delhi•
MexicoCity
SãoPaulo•Sydney•HongKong•Seoul•Singapore•Taipei•Tokyo
History
Topics
Tutorials
Offers & Deals
Highlights
Settings
Support
Sign Out
Manyofthedesignationsusedbymanufacturersandsellerstodistinguishtheir
productsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,and
thepublisherwasawareofatrademarkclaim,thedesignationshavebeenprintedwith
initialcapitallettersorinallcapitals.
Theauthorandpublisherhavetakencareinthepreparationofthisbook,butmakeno
expressedorimpliedwarrantyofanykindandassumenoresponsibilityforerrorsor
omissions.Noliabilityisassumedforincidentalorconsequentialdamagesin
connectionwithorarisingoutoftheuseoftheinformationorprogramscontained
herein.
Forinformationaboutbuyingthistitleinbulkquantities,orforspecialsales
opportunities(whichmayincludeelectronicversions;customcoverdesigns;and
contentparticulartoyourbusiness,traininggoals,marketingfocus,orbranding
interests),pleasecontactourcorporatesalesdepartmentatcorpsales@pearsoned.com
or(800)382–3419.
Forgovernmentsalesinquiries,pleasecontactgovernmentsales@pearsoned.com.
ForquestionsaboutsalesoutsidetheU.S.,pleasecontactintlcs@pearson.com.
VisitusontheWeb:informit.com/aw
LibraryofCongressControlNumber:2018950015
Copyright©2019PearsonEducation,Inc.
Coverphoto:WaldoHancockBridge&PenobscotNarrowsBridgebyMartinFowler
Lightbulbgraphic:IrinaAdamovich/Shutterstock
Allrightsreserved.PrintedintheUnitedStatesofAmerica.Thispublicationis
protectedbycopyright,andpermissionmustbeobtainedfromthepublisherpriorto
anyprohibitedreproduction,storageinaretrievalsystem,ortransmissioninanyform
orbyanymeans,electronic,mechanical,photocopying,recording,orlikewise.For
Playlists
History
Topics
Tutorials
Offers & Deals
Highlights
Settings
Support
Sign Out
i
informationregardingpermissions,requestformsandtheappropriatecontactswithin
thePearsonEducationGlobalRights&PermissionsDepartment,pleasevisit
www.pearsoned.com/permissions/.
ISBN13:9780134757599
ISBN10:0134757599
118
Chapter 1
Refactoring: A First Example
HowdoIbegintotalkaboutrefactoring?Thetraditionalwayisbyintroducingthe
historyofthesubject,broadprinciples,andthelike.Whensomebodydoesthatata
conference,Igetslightlysleepy.Mymindstartswandering,withalowpriority
backgroundprocesspollingthespeakeruntiltheygiveanexample.
TheexampleswakemeupbecauseIcanseewhatisgoingon.Withprinciples,itistoo
easytomakebroadgeneralizations—andtoohardtofigureouthowtoapplythings.An
examplehelpsmakethingsclear.
SoI’mgoingtostartthisbookwithanexampleofrefactoring.I’lltalkabouthow
refactoringworksandwillgiveyouasenseoftherefactoringprocess.Icanthendothe
usualprinciplesstyleintroductioninthenextchapter.
Withanyintroductoryexample,however,Irunintoaproblem.IfIpickalarge
program,describingitandhowitisrefactoredistoocomplicatedforamortalreaderto
workthrough.(Itriedthiswiththeoriginalbook—andendedupthrowingawaytwo
examples,whichwerestillprettysmallbuttookoverahundredpageseachtodescribe.)
However,ifIpickaprogramthatissmallenoughtobecomprehensible,refactoring
doesnotlooklikeitisworthwhile.
I’mthusintheclassicbindofanyonewhowantstodescribetechniquesthatareuseful
forrealworldprograms.Frankly,itisnotworththeefforttodoalltherefactoringthat
I’mgoingtoshowyouonthesmallprogramIwillbeusing.ButifthecodeI’mshowing
youispartofalargersystem,thentherefactoringbecomesimportant.Justlookatmy
exampleandimagineitinthecontextofamuchlargersystem.
THE STARTING POINT
Inthefirsteditionofthisbook,mystartingprogramprintedabillfromavideorental
store,whichmaynowleadmanyofyoutoask:“What’savideorentalstore?”Rather
thananswerthatquestion,I’vereskinnedtheexampletosomethingthatisbotholder
History
Topics
Tutorials
Offers & Deals
Highlights
Settings
Support
Sign Out
剩余454页未读,继续阅读
ueriut83950
- 粉丝: 6
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 27页智慧街道信息化建设综合解决方案.pptx
- 计算机二级Ms-Office选择题汇总.doc
- 单链表的插入和删除实验报告 (2).docx
- 单链表的插入和删除实验报告.pdf
- 物联网智能终端项目设备管理方案.pdf
- 如何打造品牌的模式.doc
- 样式控制与页面布局.pdf
- 武汉理工Java实验报告(二).docx
- 2021线上新品消费趋势报告.pdf
- 第3章 Matlab中的矩阵及其运算.docx
- 基于Web的人力资源管理系统的必要性和可行性.doc
- 基于一阶倒立摆的matlab仿真实验.doc
- 速运公司物流管理模式研究教材
- 大数据与管理.pptx
- 单片机课程设计之步进电机.doc
- 大数据与数据挖掘.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0