DEV Community

Discussion on: Data Types in Python

Collapse
 
princeibs profile image
Suleiman Ibrahim • Edited

Yeah. Great point here @keonigarner . I think stating personal experience may sound biased.

Thread Thread
 
michaelcurrin profile image
Michael Currin

My experience may be indeed be different from others. That's why I backed my comment with a link to the standard style Python programmers are recommended to follow. Not everyone follows it or follow it completely but it encourages quality (readable and debuggable code) and consistency (if you change codebases or change jobs you probably won't have to change styles because you alread follow the prevalent style which is documented and agreed upon).

Thread Thread
 
michaelcurrin profile image
Michael Currin • Edited

I also recommend using a tool like pylint and flake8 ans black to give warnings and automated fixes for code style.

They are going to default to a prevalent standard to avoid debate between coders on what is right, as the tools enforce a standard for you.

You can also override with a config if you want 100 characters long instead of 79 or want to change how code is wrapped or variables are named, if you want to deviate from the style.

github.com/MichaelCurrin/py-projec...