In first few months I got much comments on my code after code review. Later on I started building that mindset. It help me a lot,
Let me share with you few techniques
Mindset (start building that mindset).
Use Exceptions handling, read error messages, log errors.
Try test your core logic, all possible ways (write multiple inputs, don't test your code on same input again and again).
Figure out break points. And print messages on all breakpoints.
Believe that you are human and you have made errors. start finding out them.
Start testing your code at the beginning(line by line).
Also Take break, have some coffee and let your logic run in background of your mind, and then get back.
In all this you need a lot of patience.
Keep Learning!!
Top comments (0)