O'Reilly logo
  • Keval Desai thinks this is interesting:

to take a bunch of data gleaned from an object and replace it with the object itself


Cover of Refactoring: Improving the Design of Existing Code


What if not all the fields of the object are required as a parameter to that method? Is it still advisable to pass the entire object? Is passing the object in such a case an overhead?