-
Notifications
You must be signed in to change notification settings - Fork 146
Refactoring #35
Comments
|
Then it can be removed. |
com.comphenix.packetwrapper maybe will use again in next version, so temporarily not deleted |
|
|
|
I think i need sleep and find another time to continue refactoring. |
Here we need to evaluate how frequently the database is accessed and if it is necessary to cache certain data changes to reduce load. Good night. |
Complete |
What do you think of that config format?
See Structure: See test case for loading: |
404 Not Found |
I know did some restructuring after that and forgot to link to a specific revision. |
Add a YamlProvider not a good idea in this project. But you are right, i need improve configuration files. |
In my opinion the objectification of the configuration is a need. |
This is a how make code clear, simple, and make the configuration file friendly and human-readable question |
So i will create a branch to work(Do a breaking changs on master 100% not a great idea) and try that. Maybe i can explode the config.yml to mutil files. |
The Advantage of my system is, that outdated config values are automatically removed, when the model classes doesn't have the value anymore. New attributes are automatically updated if version number is increased in in main model class. |
I think you should forget everything. The code of this project should be thrown away. Keep the feature description and code it from scratch. |
Issue reopened. -> working for adapter configurations Use reflect to read config to field and write to config from field |
refactored shop loader |
Finished |
Finished |
This issue can be closed because we're under full rewriting. |
Reopen issue cause v3 under refactoring |
Cleanup the static abuse everywhere. |
Refactored MsgUtil class, but still have lots of works need to do. |
Needs heavily refactoring
be SOLID
remove cyclic dependencies ( MsgUtil is depending on Util and the other way around, same for DatabaseHelper)
properly inject dependencies instead of static abuse shit
properly handle configurations
write Adapter for used functionality in libraries
use PreparedStatement in the right way
cache data instead of writing each time -> persist every N minutes
encapsulate the classes to reduce complexity
cleanup commands, introduce a subcommand system
use Player#hasPermission instead of using an explicit PermissionProvider that is already injected into Bukkit system
remove duplication of ServerNMS and ItemNMS
refactor MsgUtil
write javadoc for plugin
Remove classes that are not used anymore
refactor shop loader
The text was updated successfully, but these errors were encountered: