Best practice for passing object
<p>I have a little simple question.</p>

<p>Let's say I have a data object with about 10 properties, and I want to pass data from my object to a function.
Most of the time I only need one of these values in the receiving function, and could just as well pass only that value (let's say an int). So what is the pros and cons with always sending the whole object vs only sending one of the contained values?</p>

<p>Is there a best practice?</p>
