You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.The text was updated successfully, but these errors were encountered: