Software engineering is hard to get right. One personâs pretty data model looks like metadata-addiction to another person.
I think we can learn some lessons from code-commenting: donât try to model everything! You need to step back and let the code speak for itself.
For instance, as just one random illustrative example, you might need to return 2 values from a function in Java (a language with no direct support for multiple return values). Should you model it as a MyFunctionCallResult class with named ValueOne and ValueTwo fields (presumably with actual names appropriate to the problem at hand)? Or should you just return a 2-element array (possibly of mixed types) and have the caller unpack it?
I think the general answer to this is: when in doubt, donât model it. Just get the code written, make forward progress. Donât let yourself get bogged down with the details of modeling a helper class that youâre creating for documentation purposes.