4 ms·
Install linters, they will correct one class of unpythonic code. Next google "idiomatic python." Idiom is the software word for the "right" way to do something
by hayst4ck 4y ago
Install linters, they will correct one class of unpythonic code.
Next google "idiomatic python." Idiom is the software word for the "right" way to do something.
After linters and idioms, code will probably look pythonic. Next is overall structure, which IMHO, python is not super opinionated on.
What becomes more useful to understand are the different software paradigms: procedural, functional, and object oriented.
Once you understand paradigms a bit, it's worth understanding object oriented in more detail. Misko Hevery has a lot of great things to say on that.
At this point, you should be able to write extremely boring python. Nothing is better than extremely boring code.
After that, watching videos, reading books, reading code, and writing code is the way.
Learning google's Bazel is probably also important, since any sufficiently large python project will crumble under its own complexity without Bazel or a system like it.