diffuse
diffuse copied to clipboard
Refactor and modularize code
Right now diffuse is one single file of +6k lines of code. This is pretty ugly and it can be split into components quite easily.
Example of Python apps repos:
- https://gitlab.gnome.org/GNOME/gnome-tweaks
- https://github.com/asciinema/asciinema
- https://gitlab.gnome.org/GNOME/pitivi
- https://github.com/lutris/lutris
- https://hackernoon.com/50-popular-python-open-source-projects-on-github-in-2018-c750f9bf56a0
- https://github.com/mahmoud/awesome-python-applications
You only need this one file, though. Can you split for development and then combine into a single file in a build step, e.g., with http://pagekite.net/wiki/Floss/PyBreeder/?
Any program can fit in one file, but split it into several files helps to have a better, more maintainable code.
There would still be only one file to run the app, but the inner parts of the app will be in separate modules. The end user should not see any difference.