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.
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.