loading...

re: Object Oriented Tricks: #3 Death By Arguments VIEW POST

TOP OF THREAD FULL DISCUSSION
re: The most common mistake I see is methods that only take one object as a parameter. This is normally a sign the method should be on the parameter's ...
 

Interesting point.

There are lots of situations where this is not a great idea. It's too difficult to maintain as a rule when other dependencies required within the function come into play.

However, your point that it should be considered as a place for the method is a great one. It should lead to the consideration of Value Objects.

Code of Conduct Report abuse