Currently the repo just basically has a single FormValidation class and everything is is handled as objects, validating and throwing errors by manually checking things.
A better approach would be to actually create classes and make sure things are initialized through a class constructor which would not only improve readability but also maintainability.
NOTE: Need to make sure to make it backward-compatible!
Currently the repo just basically has a single FormValidation class and everything is is handled as objects, validating and throwing errors by manually checking things.
A better approach would be to actually create classes and make sure things are initialized through a class constructor which would not only improve readability but also maintainability.
NOTE: Need to make sure to make it backward-compatible!