Skip to Content
Tidy First?
book

Tidy First?

by Kent Beck
October 2023
Intermediate to advanced
122 pages
1h 58m
English
O'Reilly Media, Inc.
Book available
Content preview from Tidy First?

Chapter 11. Chunk Statements

This one wins the prize for simplest tidying. You’re reading a big chunk of code and you realize, “Oh, this part does this and then that part does that.” Put a blank line between the parts.

I like that this tidying is so, so simple. That’s part of the philosophy of Tidy First?—don’t make software design such a big deal that you are in danger of not doing it. Software design enables change. A little software design can make change a little easier.

Here’s the cool thing—compound interest. Software design also makes more software design easier. This is both a blessing and a curse. You can get caught in the vortex of design and forget to make the change. Don’t do that. Done well, software design enables software design that enables change.

After you’ve chunked statements, you have many paths forward, such as Explaining Variables (Chapter 8), Extract Helper (Chapter 12), or Explaining Comments (Chapter 14).

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Micro-Frontends

Building Micro-Frontends

Luca Mezzalira
Learning Go

Learning Go

Jon Bodner
Head First Git

Head First Git

Raju Gandhi

Publisher Resources

ISBN: 9781098151232Errata Page