When your in a situation where you need to return two things in a single method, what is the best approach?
I understand the philosophy that a method should do one t
Not my own thoughts (Uncle Bob's):
If there's cohesion between those two variables - I've heard him say, you're missing a class where those two are fields. (He said the same thing about functions with long parameter lists.)
On the other hand, if there is no cohesion, then the function does more than one thing.