re: Can't find good TDD courses for Node VIEW POST

FULL DISCUSSION
 

Well, isn't TDD language independent?
You start by writing the tests (for example by using jest as test framework) and implement your functions to pass those.

To be honest, I thought that's it 😅
Doenst matter whether you're using go, Java, JavaScript or rust - you just need a framework/tooling like jest, JUnit or what fits your needs

 

Well, isn't TDD language independent?

Yes, it is. So are loops, objects, database access, and a thousand other things. But you need to decide on a single language to start learning any of these.

The point is that if you're a JS dev, it's not practical to start learning the Java and Spring ecosystem, for example, for understanding design patterns.

You start by writing the tests (for example by using jest as test framework) and implement your functions to pass those.

It's easy to say this for someone who already knows unit testing (it's like those senior devs balking at Laravel and Django who proclaim that frameworks are useless and everyone should roll their own -- the reality is that everyone is at a different level and use case). But for someone who wants to really learn the process, the craft of TDD, having a resource in their own language (and preferably, framework) is very important.

 

Unit testing was part of my computer science class - so about 30 min theoretical information about what it is and about 30 min practical training (in Java).

Starting with node (I never used Java outside the university) I just had a look at jest.

With my first comment I wanted to say that TDD (in my opinion) is not a craftsmanship you've to learn extensively. Going with the 2h udemy course would be way more than I've ever done.

TDD is like going to the gym. Constantly usage is more important than doing it sometimes with high devotion 😊

code of conduct - report abuse