How to minimize workplace blunders !
Commit and run is a crime
Syntax and logical error can exist in our code even for the best of us. Just skimming the code is not enough, testing is must.
Do a Rehearsal before the demo
Sometimes, our demo session turns into a fiasco as we didn’t prepare the test-cases we need to convey or since we didn’t test. It becomes a real shame in front of importance audience (like CEO …) and when you are already in nervous state.
Peer review
Continuously checking our code can make us numb, and we sometimes cannot figure our obvious issues. So peer reviewing your work can identify possible issues and save you from future troubles. It just takes few minutes to do this, so why should we leave it !
Don’t rely on others’ work
Though micro management is not recommendable in many cases, but testing your colleagues work, that is part of your flow, is important.
Though your colleague may be sincere in his work, but it still can have errors, so test the full flow properly before deploying.
Don’t forget the base case
Sometimes, we get lost in the complexity of our code so much that we even forget or neglect the base case. Then, the production reveals it with much humiliation, so never underestimate the base case.
If it can break, it will;
If you smell that anything can break, it is the right time to fix it before going into production. This includes possible issues and edge cases that we think will rarely occur, but from business and CX (customer-experience) perspective, they are still important, as they can negatively effect the product image in this age of social media proliferation.
This article originally appeared on aboutahsan.com
Manager Engineering @ DigitalOcean | Building Scalable Solutions | AI Enthusiast
5 年Excellent article !? Make sure you have clarity what your tasks are. It is always better to ask before dig into your tasks. This dissipates all sort of ambiguities.??
From Data to Insights | SAP Visionary | Pioneering the Digital Landscape
5 年To avoiding the bugs, better to do unit testing of every part of your code