17 ms·
I've worked with people who would prefer a complex function to generate a list of properties from a data source over a much simpler hardcoded list, on the basis
by onion2k 4y ago
I've worked with people who would prefer a complex function to generate a list of properties from a data source over a much simpler hardcoded list, on the basis that if a new option is added its easier. They used this pattern for things like asset classes, which admittedly did change about once every 5 years. It made me sad.
- scintill76 4y agoStill peeved about times I was forced to do this, when any meaningful change would also necessitate a code change anyway.