What exactly is “clean code”? Generally speaking, clean code is code that is easy to understand and easy to change or maintain.
As code is more of...
For further actions, you may consider blocking this person and/or reporting abuse
Python "has" a maximum limit of 80 characters, even though I don't always agree. Often, it is a great challenge for me to choose between writing self-explanatory code (or someone call it as verbose naming) or following the consensus (which is all about the Python linter). But anyway, most of the time, I prefer the former to the latter. For the reason, then I started leaving the rule and expand it to 100 or 120.
Edit: I forgot to mention, it's hard to move on from being a big fan of one-liners. Ha-ha-ha ...
insted of:
I suggest or its better
Many beginners don't give importance to naming. They don't realize that many others will be reading and maintaining their code. More about naming conventions is at devopedia.org/naming-conventions
I personally find it hard to adhere to the PEP8 max line length guideline at times especially when dealing with relatively long strings whether the line breaks could potentially look odd.
But then again this is a personal/team preference I suppose.
Iirc black's philosophy shies away from heavy configuration when compared to other formatters.
However they do provide a cli argument
black --line-length 80 myfile.py
Nice article, I'm not from python but i easily understood everything ty.
Trabaje mucho tiempo en C++ STD, en el equipo establecimos un Code Style en QtCreator, nos ayudó mucho. Tu trabajo está bueno, gracias
This is quite useful! Thanks for sharing!
The code snippet that you provide is super helpful! Thanks for sharing it!