diffuse icon indicating copy to clipboard operation
diffuse copied to clipboard

Refactor and modularize code

Open MightyCreak opened this issue 9 years ago • 2 comments

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

MightyCreak avatar Aug 26 '16 14:08 MightyCreak

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/?

krlmlr avatar Sep 09 '16 14:09 krlmlr

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.

MightyCreak avatar Sep 09 '16 14:09 MightyCreak