Test-Driven Development is for lazy people:
Don't think too much ahead
Write as less code as possible
Write as simple code as possible
Focus on one thing at a time
@allenholub@CraigTraynor1 We call it "The Documentation Rule" to wit: you read tests to understand the code, but should never have to read the code to understand the tests.
I just came across this fantastic resource from the guys at @mob__mentality
It's an organised collection of links and information to stuff that can help you in your work.
https://t.co/qBVTg71ccu
The smallest unit of software ownership isn’t the individual, it’s the *team*. Therefore your prime directive as a manager is to craft and tend a healthy, high-functioning team.
Even when this leads to outcomes that are less than ideal for individuals.
@davefarley77@ajsutton @thinkfoo @RonJeffries@allenholub @johannarothman It feels like continuous code review (ie pairing) is about maximising the benefits of change, whereas post-facto review is about minimising the harm.
@dmokafa I think the Pair Programming is most important and underestimated same time.
It is very hard to have Simple Design without TDD and its hard to get grasp on TDD when working alone.
@nicoespeon I guess you learn about code structure a lot and you can make a notes but you goal is still to do this refactoring eventually. The Mikado Method allows code exploration with small steps refactoring at same time.
@ygrenzinger@Tyrrrz Agree. There is common misconception that unit is a class or method and if you have three classes than you should have three unit tests. With that approach tests are becoming fragile and blocking you from refactoring. Is less likely that you endup with that kind of test with TDD
@Tyrrrz Yes, I belive all unit tests should be testing a functionalty.
The problems starts when you test a code structure insted of functionality. Like checking that one class calls another class or a UI component renders other componenet instead of checking the output or side effects.
There is no Sustainable Development without Clean Code.
There is no Clean Code without Refactoring.
There is no Refactoring without Test Driven Development.
Start with a test.