vishavjeet

singh.vishavjeet11@gmail.com

Coding Style Guide

Posted on April 04, 2022




  1. Are variables/db/collection/functions/class/api names sensible?

  2. Is my database structure thought for & optimized?

  3. Do i have proper indexes in places.

  4. Do in have duplications in my code, ex duplicate statements/expressions/conditions?

  5. Is some part of code hitting/querying db in loop?

  6. Are apis returing coorrect status codes for different scenarios?

  7. Are functions clearly defined?

  8. Is code easy to understand/comphrend?

  9. Does code has proper try catch blocks?
    10: function arguments handled properly?
    11.Make sure not using a generic except while using try catch.


(bad)
try:
10/0
except Exception as e:
pass


(good)
try:
10/0
except DivideByZero as e:
pass


12.Make sure not using multiple statements inside single try catch.


Sign In for comment and like the post.