1. There should be only one single exit point to each method (use if-else whenever needed). 2. When using if-else, make sure to place the shorter code snippet in the if: if (cond) { } else { ... ... . . . } 3. Do not throw exceptions if you can avoid it, it makes your code much slower, if you feel like throwing something and then catching it – go play ball with your dog. If you don’t have a dog ge
![20 Tips for becoming a better programmer](https://cdn-ak-scissors.b.st-hatena.com/image/square/a1587433970f795698bf5db975e1ba3b6dc3378c/height=288;version=1;width=512/https%3A%2F%2Falfasin.com%2Fwp-content%2Fuploads%2F2018%2F02%2Fpp.jpg%3Fw%3D184)