Ask HN: When do you guys start writing unit tests?
Do you guys follow TDD approach? If you guys do, at what point do you start writing test cases? Any advantages you found by following this approach?
[1] https://open.spotify.com/playlist/37i9dQZF1DWWQRwui0ExPn?si=...
While doing this I also found one more benefit, at least for my use case. The backend for user login was simple when I started, but it started growing in a few weeks. Writing test cases saved me from manually logging in with each use case, testing some functionality, then logging out and repeating with other use cases.
Not sure if it is a practical benefit or not, but writing test cases initially also helped me rewrite the way I was configuring Redis for a custom module so that the module can be tested better.
My only issue is that it takes time, and selling higher-ups this was kind of difficult.
Do you guys follow TDD approach? If you guys do, at what point do you start writing test cases? Any advantages you found by following this approach?
Apart from this, I would ask you to concentrate more on the concepts than the tools that you have chosen. Like you can use tools Django has to build an API server but concentrate more on finding out more about the life cycle of the request that hits the API server.
I am a Software engineer right now with over 4 years of experience. I have been having this feeling lately, that I feel the excitement I experience is not enough and I need more. So, I have been thinking about doing other things.Has anyone else here felt the same? Or felt like being done with Software engineering? If so, I would like to know when did you figure this out and what are you doing...