syncMyMoodle icon indicating copy to clipboard operation
syncMyMoodle copied to clipboard

Split __main__.py across different files

Open n0toose opened this issue 2 years ago • 2 comments

If everything is under one file, syncMyMoodle will keep getting progressively harder to maintain and modify.

A better approach would be keeping the core functionality of main() under __main__.py and putting things like class definitions to other files. The goal here would be making the code even more "OOP"-like than it already is and improve modularity. This should help with developing additional extensions in the long run.

n0toose avatar Aug 19 '22 00:08 n0toose

This is already partially done on the v2 branch (on which I haven't worked in ages). My eventual goal which is not yet implemented on v2 would be to provide a decorator which can register handers for each module and pass in the session

septatrix avatar Oct 22 '22 11:10 septatrix

Is it possible for us to eventually apply some of your work onto the main branch?

n0toose avatar Oct 24 '22 11:10 n0toose