You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there are far too many magic strings, and the system is prone to silent failure from typo, change, etc.
One suggestion is to make constant package files. For example, a library that needs Form related constants will need to have use FormConstants and use getter like getDefaultHeader() to use a constant. This way, changing the value will not break anything, and some mistakes like typo will be caught by the compiler.
The text was updated successfully, but these errors were encountered:
Currently there are far too many magic strings, and the system is prone to silent failure from typo, change, etc.
One suggestion is to make constant package files. For example, a library that needs
Form
related constants will need to haveuse FormConstants
and use getter likegetDefaultHeader()
to use a constant. This way, changing the value will not break anything, and some mistakes like typo will be caught by the compiler.The text was updated successfully, but these errors were encountered: