Is there any performance implications if I do either of these:
def do_something(user, article)
...
end
versus
def do_someth
Both method calls will take about the same amount of time.
(It's good to be aware of performance consequences and you asked a reasonable question, but even so, the standard disclaimer1 about early optimization technically applies.)
1.
First, make program work.
Then, profile.
Finally, and maybe, optimize.
Donald Knuth said:
We should forget about small
efficiencies, say about 97% of the
time: premature optimization is the
root of all evil.