Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Bad code practices #2

Open
IllusionTheDev opened this issue Nov 18, 2019 · 0 comments
Open

Bad code practices #2

IllusionTheDev opened this issue Nov 18, 2019 · 0 comments

Comments

@IllusionTheDev
Copy link

Since the code seems really messy, here are a few things to improve it

  • Use singletons (Static instances of classes tend to bring memory leaks since they can't be garbage collected that easily)
  • Separate your code (Your main method has 100+ lines of junk that can be written somewhere else and more efficiently)
  • Proper naming conventions and consistency (Rename your Main class to Left4Discord, maintain consistency > "outOfTimeTask.java" < etc..)
  • Avoid static abuse (This can be worked around using singletons)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant