DEV Community

Cover image for Python Best Practises
iqbalerani
iqbalerani

Posted on

Python Best Practises

Writing code and knowing the best practices is very important for any developer. Therefore, from the internet, I have managed to gather great concise information which all developers should adhere to while writing great codes with python;
Let's have a look at all the good practices:

  1. Create a Code Repository and Implement Version Control
  2. Create Readable Documentation with Markdown, reStructuredText, Sphinx, or docstrings.
  3. Follow Style Guidelines (Python Enhancement Proposals - PEP8)
  4. zero defects methodology - always corrects bugs and defects before proceeding.
  5. Use the PyPI Instead of Doing it Yourself
  6. Use Virtual Environments
  7. Use the Right Data Structures

Top comments (1)

Collapse
 
tankerguy1917 profile image
tankerguy1917

Alright, thanks for this. I'll make sure to follow these.