Forum: Ruby on Rails Passing a full object as arguments VS minimal information?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Fernando P. (Guest)
on 2009-04-01 19:39

Is it a good idea to pass a full object as an argument, or is it better
to only give minimum info to the method?
Emanuele T. (Guest)
on 2009-04-01 21:19
(Received via mailing list)
I would say 'pass the full object' so you're ready to implement more
functionality in your method without reviewing every call you have

On Apr 1, 8:39 am, Fernando P. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.