
Tidy First?
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
Tidying up messy software is a must. And that means breaking up the code to make it more readable, and using guard clauses and helping functions to make it understandable. In this practical guide, author Kent Beck, creator of Extreme Programming and pioneer of software patterns, suggests when and where you might apply tidyings in your code.
Instead of trying to master tidying all at once, this book lets you try out a few examples that make sense for your problem. If you have a big function containing many lines of code, you''ll learn how to logically divide it into smaller chunks. Along the way, you''ll learn the theory behind software design: coupling, cohesion, discounted cash flows, and optionality.
More details
Other editions
Additional editions

Content
- Cover
- Copyright
- Table of Contents
- Foreword
- Preface
- What Is Tidy First?
- Audience
- What You Will Learn
- Structure of the Book
- Why "Empirical" Software Design?
- How I Came to Write Tidy First?
- O'Reilly Online Learning
- How to Contact Us
- Acknowledgments
- Introduction
- Part I. Tidyings
- Chapter 1. Guard Clauses
- Chapter 2. Dead Code
- Chapter 3. Normalize Symmetries
- Chapter 4. New Interface, Old Implementation
- Chapter 5. Reading Order
- Chapter 6. Cohesion Order
- Chapter 7. Move Declaration and Initialization Together
- Chapter 8. Explaining Variables
- Chapter 9. Explaining Constants
- Chapter 10. Explicit Parameters
- Chapter 11. Chunk Statements
- Chapter 12. Extract Helper
- Chapter 13. One Pile
- Chapter 14. Explaining Comments
- Chapter 15. Delete Redundant Comments
- Part II. Managing
- Chapter 16. Separate Tidying
- Chapter 17. Chaining
- Conclusion
- Chapter 18. Batch Sizes
- Chapter 19. Rhythm
- Chapter 20. Getting Untangled
- Chapter 21. First, After, Later, Never
- Never
- Later
- After
- First
- Summary
- Part III. Theory
- Chapter 22. Beneficially Relating Elements
- Elements
- Relating
- Beneficially
- Beneficially Relating Elements
- Chapter 23. Structure and Behavior
- Chapter 24. Economics: Time Value and Optionality
- Chapter 25. A Dollar Today & A Dollar Tomorrow
- Chapter 26. Options
- Chapter 27. Options Versus Cash Flows
- Chapter 28. Reversible Structure Changes
- Chapter 29. Coupling
- Chapter 30. Constantine's Equivalence
- Chapter 31. Coupling Versus Decoupling
- Chapter 32. Cohesion
- Chapter 33. Conclusion
- Appendix A. Annotated Reading List and References
- Index
- About the Author
- Colophon
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.