Open HmmmQuestionMark opened 10 years ago
I'm getting tired of my own refactors, and I tried to convince myself this wasn't needed, but it really is.
To be brutally honest, the code is a mess--it needs cleaning up--and this is the best way to do it.
Just gonna make a list here of things we don't need to change for this issue (not counting simple renames or re-locations):
Things we only need to tweak a tiny bit:
Things we should touch:
Am I missing anything?
We should also take a look at what we really need from CensoredLib. At this point, it looks more and more like we actually don't most of it. We've slimmed down DG to the point where almost everything is accounted for except:
It might make sense to trim out the things we don't need in CLib, making it easier for us to manage it.
I'm getting tired of my own refactors
lol, join the club!
But I like this.
Seems like everything... I haven't looked at Demigods in so long that I wouldn't realize if something were missing to be honest... I'm in class at the moment. I'll take a closer look tonight.
kk
Just updated a few comments I made. Heading to class for exam in a few, I'll talk to you later tonight if you're on.
The plugin is a mess of different styles and different ideas on how to organize things and all of that jazz.
Along with reorganizing CensoredLib (before actual launch), it would make sense to unify the code-base under a single "style".
I'd vote for the way Bukkit does things, for the sake of making things familiar when working with APIs and when fixing bugs.
Examples:
Just like Bukkit does Bukkit.getServer(), we'd do Demigods.getServer().
i.e. Bukkit.getOnlinePlayers() => Demigods.getOnlinePlayers();
Sometimes, for our own sanity, we'd have to break conventions for easy faux "casting" to our own objects.
I could probably go on forever, but I think you get the point.
This unified style of code would allow us to easily know where things are, easily fix bugs, and easily implement new features.
It would probably make it easier for developers to contribute to Demigods as well.
Now the Demigods is very close to Feature complete (for launch) we could easily keep the current features while doing this, and design the style around them.
Deities and the Mythos are easy, we won't have to change them much:
That's all I got. Let me know what you think.