Skip to main content
1 of 4
wp78de
  • 111
  • 5

If I understand you correctly, you think about extract common portions of your code and centralize them in some sort of mini-framework and come up with general structure for your code. But it might cost others longer to get familiarize with your code.

  • Abstraction and centralization is in my book always a good thing, that out-weights the cost of adding more complexity by far - as long as you keep the abstraction reasonable. It helps to have reliable, maintainable code and avoid to repeat yourself.

  • Code/Project templates are also a good thing for me, but less of a concern for scripting to be honest. To enforce a common file schema is maybe not worth the effort. The process here matters more. Following common coding guidelines is much more beneficial.

  • If you would like to add some control to ensure the quality of your code, use static code analyzer to analyze Python code and get information about errors, potential problems, convention violations and complexity. There are several static code analyzers for Python, including Prospector (maybe outdated), Mypy, pyflakes, and pylint (which is considered to be the best of them all).

wp78de
  • 111
  • 5