Refactor OJOC.py
Refactor OJOC.py to reduce amount of Copy/Paste
Comments (4)
-
-
Since I can't be bothered to make a fork yet I'll just note some more here:
On arch, I needed the following packages (some in your list were already installed):
python2-gobject
python2-requests
python2-keyring
aur/python2-enum
For others wondering what they have to install, just try launching the program and seeing what import statements fail.Also, since I didn't have a kde wallet, when I launched ojoc the splash screen showed and a dialog from the wallet came up asking me to set up encryption etc. After it being up for a bit the terminal started complaining and I wasn't able to exit it with c-c nor c-d. The second launch worked fine (so far).
I also needed python2-urwid for nojoc.
-
reporter Thank you for your feedback! Refactoring the variable names and sprinkling a comment here and there is on my to-do list indeed, but it will take a few weeks.
-
reporter autopep8, Beautification. Addresses #3 and #4
→ <<cset 0c434066a231>>
- Log in to comment
I'm really feeling like poking around in the code (no promises) but these variable names are absolutely cryptic. Instead of me going through, figuring out what they all actually mean it'd be great if you could go through the code and make it a little bit more understandable since I hope at least you still remember what they mean :)
https://programmers.stackexchange.com/questions/33349/scientific-evidence-that-supports-using-long-variable-names-instead-of-abbreviat