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.
Linux Device Driver Development Cookbook by Rodolfo Giometti(3932)
Embedded Programming with Modern C++ Cookbook by Igor Viarheichyk(3605)
Implementing Cellular IoT Solutions for Digital Transformation by Dennis McCain(3542)
Embedded Linux Development Using Yocto Project - Third Edition by Otavio Salvador & Daiane Angolini(3370)
TinyML Cookbook by Gian Marco Iodice(3309)
Simplifying 3D Printing with OpenSCAD by Colin Dow(2839)
TinyML Cookbook by Gian Marco Iodice & Ronan Naughton(2602)
Fusion 360 for Makers by Lydia Sloan Cline(2219)
Networking A Beginner's Guide by Bruce Hallberg(2209)
Hands-On Linux for Architects by Denis Salamanca(2051)
But How Do It Know? by J. Clark Scott(2030)
Computers For Seniors For Dummies by Nancy C. Muir(1996)
Raspberry Pi and MQTT Essentials by Dhairya Parikh(1951)
Arduino Project Handbook, Volume 2: 25 Simple Electronics Projects for Beginners by Geddes Mark(1947)
9781803246888-ENHANCING DEEP LEARNING WITH BAYESIAN INFERENCE by Unknown(1899)
Hack and HHVM by Owen Yamauchi(1884)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1860)
MicroPython Projects by Jacob Beningo(1732)
Hands-On Internet of Things with MQTT by Tim Pulver(1706)
