Test-Driven Development is like a compass for developers.
Write the test first, watch it fail, then code until it passes.
Imagine you want to sort a list.
In Test-Driven Development, you first write a test to check the order.
Then you create the sorting algorithm. The satisfaction of seeing the test turn green is priceless.
Imagine coding with a GPS capable of driving you to the right destination.
Every time you write code that breaks something, you are notified.
Every time you write code that makes a scenario successful, you are notified.
Well, this GPS already exists and it’s called TDD (Test Driven Development).
TDD is a way to code where you first write a failing test, and then you only code to make this test pass.
My next tweets will be about the power of TDD. Stay tuned if want to more and improve your coding skill.
@liltechnomancer Everyone must participate in discussions when you are implementing BDD. It prevents any isolation between the business and the tech teams.
@liltechnomancer One of the most difficult challenge as a web developer is to maintain a good relation between the tech and the business.
I try to implement BDD (Behavior Driven Development) with my clients nowadays.
@lpdahito When you start learning clean code (clean architecture, tdd, ddd etc...) it can become very very easy to code.
At one point you can, like me, be able to write 20k lines of code per week
TDD (Test-Driven Development) is a coding approach where you start by writing a test for a specific scenario, and the objective is to write only the necessary code to make that test pass
It's a long subject, I just give you the caption. If you want to really learn go follow my profile !