Tidy First? by Kent Beck
Author:Kent Beck
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media
Published: 2023-10-17T00:00:00+00:00
After
You need to change behavior. The code is messy. You canât see how to tidy. You change the behavior anyway (good for youâmess is no excuse). But now, huzzah!, you see how the change you made could have been easier. Do you tidy after?
It depends. Are you ever going to change the behavior in this same area again? (Likely yes, for reasons weâll get into in the next section, but still apply your judgment.) If youâre going to change the area again, then a tidy after approach makes some sense.
Why not just tidy first the next time you need to change behavior in this area? It might be harder later. You may have forgotten context that makes tidying easier right now. Other changes may have interfered with the tidying youâd like to do now. If waiting to tidy at a later date substantially increases the cost of tidying, consider doing it now.
Also, how much tidying are we talking about? Say the behavior change took you an hour. Spending an hour tidying after makes sense. Spending a week tidying after? That doesnât make sense. That goes on the Fun List.
So sure, tidy after, if:
Youâre going to change the same area again. Soon.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Building Low Latency Applications with C++ by Sourav Ghosh(3118)
Fusion 360 for Makers by Lydia Sloan Cline(1991)
Networking A Beginner's Guide by Bruce Hallberg(1940)
But How Do It Know? by J. Clark Scott(1824)
Computers For Seniors For Dummies by Nancy C. Muir(1775)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1759)
Hands-On Linux for Architects by Denis Salamanca(1758)
Hack and HHVM by Owen Yamauchi(1681)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1669)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1508)
MicroPython Projects by Jacob Beningo(1490)
PrestaShop Recipes by Arnaldo Pérez Castaño(1470)
Hands-On Internet of Things with MQTT by Tim Pulver(1436)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(1407)
Raspberry Pi Electronics Projects for the Evil Genius (Tab) by Norris Donald & Norris Donald(1387)
Embedded Systems Architecture by Daniele Lacamera(1387)
Getting Started with Soldering: A Hands-On Guide to Making Electrical and Mechanical Connections by Vinck Marc de(1384)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1372)
Mastering Kubernetes by Gigi Sayfan(1370)