Simplicity is the most underrated attribute of a well-designed system.
There is a tendency for smart people to want to build complex solutions when often, the best solution is one that simple.
We had a dev recently write a whole source generation library to verify configuration at application startup. I pointed out that it would only save -- at most -- 14ms over a reflection based approach and that our application at startup is rolling over nodes in K8s and not a serverless function where cold starts matter.
There is a tendency for smart people to want to build complex solutions when often, the best solution is one that simple.
We had a dev recently write a whole source generation library to verify configuration at application startup. I pointed out that it would only save -- at most -- 14ms over a reflection based approach and that our application at startup is rolling over nodes in K8s and not a serverless function where cold starts matter.
It went from a 1600 line PR to a 60 line PR.