20 Tips for becoming a better programmer
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) { <only a few lines of code> } else { <here you should write the "bigger" case> <many many lines…> … … [...]
Continue reading