Building great habits in software development—whether it’s Test-Driven Development (TDD) or refactoring—isn’t about more work. It’s about doing the work you naturally want to avoid.

There’s a fine line between taking action and falling back into the comfort of skipping tests, rushing code, or leaving refactors for “later” (which never comes). The key to pushing through? Understanding the anterior mid-cingulate cortex (aMCC)—the part of your brain that controls effort and perseverance.

This part of your brain doesn’t grow by doing more work. It grows by doing more of what you don’t want to do. Every time you write tests before code, refactor messy logic, or clean up technical debt instead of ignoring it, you strengthen your ability to override resistance. Over time, this becomes second nature—not just in development, but in every area of life.

The best developers aren’t the ones who love refactoring or writing tests. They’re the ones who do it despite not wanting to.

So today, push through that resistance. Write the test. Do the refactor. Your future self (and your teammates) will thank you.


Written by: Brian Szucs, Senior Backend Java Developer | Java/Spring + Spring AI| Modernizing legacy systems across regulated industries | Writing on architecture, leadership, and meditation

March 17, 2025

#softwaredevelopment #engineeringhabits #tdd #refactoring #growthmindset #amcc #davidgoggins