+ 1

Where I can learn good python coding practices?

Where I can learn good python coding practices? So that code is not hard to understand for other people and editors. 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 Not to be confused with Doing practice exercises, I am looking for Learning the principles for good coding with the purpose that it can be understood well over the period of time by myself or the others. As code base become large, sometime it becomes difficult to understand and maintain. I am specially looking for python. It could be coding architecture, use of decorators or context managers or generators, coding idioms or code beautifier or code checkers etc..

20th Jul 2020, 5:33 PM
Ashish
Ashish - avatar
6 ответов
+ 4
About PEP 8: https://www.python.org/dev/peps/pep-0008/ https://realpython.com/python-pep8/
20th Jul 2020, 9:47 PM
Denise Roßberg
Denise Roßberg - avatar
+ 4
You probably already know the book 'Clean Code'? It's not specifically about Python, but I think most of the explained principles can be applied to all programming languages.
20th Jul 2020, 11:08 PM
HonFu
HonFu - avatar
+ 3
Btw: You can also search for "clean code python" in google or youtube.
20th Jul 2020, 10:03 PM
Denise Roßberg
Denise Roßberg - avatar
+ 2
if you code python with pycharm, it gives you ugly squiggle lines under code that doesnt match PEP8 standards. PEP8 aims to keep the code readable. Eventually, you'll just code that way naturally to avoid the lines
20th Jul 2020, 7:32 PM
Slick
Slick - avatar
+ 2
The best way to lesrns python or other languages open source, is read documents.
22nd Jul 2020, 4:14 PM
Ali_Nazarizadeh
Ali_Nazarizadeh - avatar