Test Driven Development is a trending topic in the last 10 years. The idea behind TDD is that you first write test for your code and then write the actual code. This way you know that when the code passes all tests it is ready. Writing meaningfull tests is a very useful skill.