CMPUT301F18T24 / Mark-Me

This is an Android app for keeping track of medical issues.
Apache License 2.0
4 stars 4 forks source link

Code base: Replace magic literals. #88

Open vppatel111 opened 5 years ago

vppatel111 commented 5 years ago

Try to avoid hard-coded magic literals in your code (like the server and index for elastic search in your control). And replace these with named constants, for easier maintainability in light of changes. You can also do something similar for messages used in toasts and dialogues. Using variable allows you to load different languages using key value pairs (or something along those lines), instead of having hard coded messages.