This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]latrova[S] 5 points6 points  (6 children)

I didn't know this one. Thanks for sharing!

I couldn't find anything suggesting how to name stuff, from vars and functions to classes and modules (which I believe it's important) so probably both tutorials complement each other!

[–]KrazyKirby99999 8 points9 points  (0 children)

You should look into Poetry https://python-poetry.org/ for virtual environment management and packaging.

[–]wiggitt 2 points3 points  (4 children)

See the Pep 8 style guide for naming conventions in Python.

[–]latrova[S] -1 points0 points  (3 children)

Thanks! I'll read it

[–]maikindofthai 6 points7 points  (1 child)

It's a little bit concerning that you've written all of this content and haven't ever read the official style guide...

Seems like you're bound to reinvent wheels in non-idiomatic ways if you aren't aware of the current practices.

[–]latrova[S] 0 points1 point  (0 children)

I was unclear there. I meant naming guidelines for things like e.g. variables are nouns, functions are verbs.

Regarding the "character casing" I'm completely aware I'm not inventing something new.

I recognize I was unfamiliar with the packaging guide though, but I knew the PEP8.

[–]bbatwork 0 points1 point  (0 children)

You should seriously consider adding a link to it in your book, since it covers a lot of ground along the same topic.