toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

218
active users

#tdd

1 post1 participant0 posts today

"So you can think really big thoughts and the leverage of having those big thoughts is just suddenly expanded enormously. I had this tweet, whatever, two years ago where I said 90% of my skills just went to zero dollars and 10% of my skills just went up a thousand X.

And this is exactly what I'm talking about. So Having a vision, being able to set milestones towards that vision, keeping track of a design to maintain the levels or control the levels of complexity as you go forward. Those are hugely leveraged skills now.
compared to I know where to put the ampersands and the stars and the brackets in Rust. You know, I'm programming in every language under the sun. And I just kind of don't care. I'm learning by osmosis. I'm learning about the languages. But, you know, and I was a language guy. I loved languages and the details of languages."

newsletter.pragmaticengineer.c

Continued thread

Granted, this was a mini project (4672 LoC including test) that was mostly exploratory coding and all commits were just so that I could reverse if an original idea, that was shot down, needed to be reversed.

All code was written #TDD so I have 100% test coverage.

Replied in thread

@mikehoss @jasongorman

Honestly, refactoring code should not be a step of #TDD loop if you perform the “strict version” (only write the *absolute* minimum amount of code needed that a test *forces* you to write, any and all other changes *must* be reverted).

You can always refactor at anytime, but with the strict version I don’t need as the loop is so short that refactoring is the goal of the test.

It does create more intermediate steps but that is cancelled out by the higher throughput.