3 ms·
If you're having trouble organizing around classes, objects and inheritance, classes might not be a good fit for your project. Consider modules as your main or
by a3n 6y ago
If you're having trouble organizing around classes, objects and inheritance, classes might not be a good fit for your project.
Consider modules as your main organizing scheme. That's also a decent guide for code file organization.
What goes in a module? The tool(s) that you need to implement your project. Think about what off the shelf tools you wish you had and build those tools/modules.
Use doc strings per module and function, written to your future self, explaining what is being done. The how should be in descriptive variable names and function signatures, with comments where necessary.
Don't over comment. Out of date comments will confuse.
- enmiljon 6y agoNever thought about that, thanks I will look into it.