Closed miketheman closed 1 year ago
@miketheman :wave:
Sorry for the late reply! We somehow missed the notification for a new issue.
To answer your question: File structure & organization really depends on your taste & the specific context of your application.
I can share few rules of thumb that we follow:
some_module/__init__.py
or some_module/some_submodule.py
and export the things from __init__.py
- this depends on personal taste.I think those points summarize how we look at things, when it comes to namespacing & splitting.
For me, the guiding principle is - "things that belong together should be closely located, potentially in the same file".
Please, let me know if this helps you in some shape or form & if you have additional questions - feel free to ask them :raised_hands:
Hello! Really enjoyed reading the guide, thanks a ton for putting it together!
I was also looking for some language on patterns of organizing files, directories, and how to scale that kind of structure as well. I didn't find anything specific - did I miss it, or is that something covered in other guides?
Questions like: when to split files up, how to organize them into namespaces/packages, how to organize test cases to make it easy to find and relate to the source, when is something an "app" and wen it isn't, those kinds of repo-structure items. Is that something you'd consider expanding the guide to include?