Writing the test first shapes your design for the better. Starting with a test will set you up to code in an attempt to pass your test, rather than continuously going back to fix code that's tested too late, and failing.
Start as you mean to go on.
2) New project? It's TDD time.
There's no better time to start using a modern software engineering technique like TDD than when you start new work.
It's a clean slate and a chance for you to make better software and reduce wasted time.
3) Focus on the outcome.
When you write a test think about the result. Look at externally visible behaviour, not the implementation.
Results are king.
Before I go on to the final two pieces of advice, I have a FREE TDD work along on my course site.
⭐ It's got some great 5 star reviews, so well worth a look.
TDD is creating some of the best software designs in the world. It's an incredibly powerful technique and one that every developer should be familiar with.
The results can be INCREDIBLE.
I'll end with this... "TEST ALL THE F***ING TIME!" 😂
• • •
Missing some Tweet in this thread? You can try to
force a refresh