I'm new to programming. Should I write tests?

By Elvis Shi

Elevator Pitch

Or even further, what are tests? What benefits could I gain from writing tests? Won’t it slow my pace down to learn programming? I’m only a beginner and just want to see the result instantly, should I still write tests?

If you ever wondered the answer to any of these questions, check this talk!

Description

We all know that tests like unit tests and UI tests are essential for quality assurance. But what if someone’s only a beginner? Should he/she still learn to write tests instead of just quickly write implementations and see how those codes work?

In this talk, I’d like to talk about the pros/cons of learning how to write tests as a beginner, including but not limited to these topics:

  • What do tests actually do
  • How can tests assure the code quality
  • Will writing tests slow down the speed of implementation or actually make it faster
  • What barriers may you as a beginner face to when learning how to write tests
  • If I decided to write tests, where do I start as a Swift programmer using Xcode

10 minutes is very limited time but I’ll try my best to explain the pros/cons of learning how to write tests as a beginner, and I’ll leave the answer to the audience.

Notes

I didn’t write tests when I was a beginner. And actually I’ve spent years writing codes without any unit tests because I thought it was a waste of time since I can write lots of implementations during the time of writing tests. But when I look back at that experience, I found I was so stupid that if you look at a longer term, writing tests actually helps you implement features faster because you don’t have to check if everything is working correctly manually each time you implement new things or try to refactor exist implementations. Especially as a tech lead now, I really feel how tests help engineers as a team to build up a product with higher quality. So I hope I can help more beginners with my experience to avoid the wrong thoughts on tests.