[Ask HN] Teach me how to unit test
Unit testing... Everyone knows what it is. However, when ever I try, I feel like I ended up wasting a lot of time and feel that my tests do nothing. Even worst, I feel like I cannot write tests for many things that I feel are important.
How can one learn to do proper unit testing? I see bunch of examples but none that really help me. I almost feel like a unit testing needs to be taught and hard to learn on your own.