重构顽固的遗留代码库.pdf

编号:981585 PDF 58页 9.33MB 下载积分:VIP专享
下载报告请您先登录!

1、Refactoring Large,StubbornCodebasesJake ZimmermanGetty D.RitterNovember 19,2024jezaisamanra1Complaints about stubborn codebasesOur code isnt modular enough!This dependency is 10 years out of date!We need to change how we talk to the database!We can refactor to a happy state!2Best to centralize the r

2、efactor Have one team drive the refactor:concentrates expertisemost problems will be repeat problemsincentivizes automationfewer engineer-hours overallmore likely to finishno need to wait for each team to plan and prioritize3Centralized migration needs two things:Leverage over the codebaseWay to rat

3、chet incremental progress4Toyou need toand torefactor a large,stubborn codebasehave a point of leveragepick good ratchets.5Agenda Improving developer satisfaction with SorbetMaking a Ruby monolith more modularLessons learned from ratchets ratcheted67 Stripes developers were unhappy“hard to understan

4、d”(sentiment from company-wide survey)“waiting for tests is slow”“only breaks in production”“dont trust the docs”“too much low-quality code”8 Building Sorbet introduced leverage“hard to understand”“waiting for tests is slow”“only breaks in production”“dont trust the docs”“too much low-quality code”(

5、sentiment from company-wide survey)IDE aids understanding all code type checks in seconds type checker catches bugs in CI runtime makes types trustworthy bad code is hard to type9Brief history of Sorbet?Began fall 2017Stripe:800 employees(200 400 engineers)Initial project:3 engineers,full timeTimeli

6、ne9 months to build Sorbet but has served as the foundation for hundreds of codemods3 months to get to 75%adoptioncontained to just three engineers10Aside:you can do it too!?Tools that you can use to bootstrap something:,your languages linter,BYO:tree-sitter parsers,LSP server libraries,GitHub code

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(重构顽固的遗留代码库.pdf)为本站 (竿头日上) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠