code clarity, computer code, computer languages, computer programming, Java, Python code, readable code, toString, __str__
Although I’m categorizing this one as really good advice, rather than as a rule, I think it should be viewed as basically a rule. I think it should be a rule in any object-oriented language that supports it natively (Java and Python, for example).
The advice (rule of thumb, say) is to always create a useful implementation of
toString when you create a class. It makes your development and maintenance life ever so much better.