may help you . It's definitely sad when other programmers care little about good software design. The only things I can suggest to do are: Follow some of the excellent developers around the world on their blogs to gain insights into their ideas Continue to encourage those around you to become interested in good design If there is no one local to validate your designs you can make friends with other developers online and ask them the validate ideas for you Participate in open source software and use that as a source of validation for your ideas Ask questions on stackoverflow.com about your ideas Keep programming and learn from your experiences Don't stay at your current company too long. Moving companies is a great way to keep yourself from getting comfortable and complacent Get involved in a local user group filled with like minded developers
How to use aurelia-validate with a object properties to validate?
This might help you Restructure? By the looks of your posted code snippets, I presume that MyForm will never have a populated Custom1 and Custom2 property in the same request. So, instead of having a parent model that holds both payload kinds, I would encourage you to directly use the model that represents the payload being validated. Then you won't run into this nasty pattern of checking the kind wherever necessary.
I want to validate password using react with ant design