That is indeed what I meant though of course it is not an absolute statement. As a general rule of thumb, inside your own web application, passing objects rather than raw data will lead to easier to read & debug code, quite likely at the risk of tighter coupling, you are correct.
'Course unless you're building a framework or library coupling should probably not be your main priority when building a web site.
As for the Law of Demeter, like my list that too is a rule of thumb and not an absolute, requiring judgement calls.
'Course unless you're building a framework or library coupling should probably not be your main priority when building a web site.
As for the Law of Demeter, like my list that too is a rule of thumb and not an absolute, requiring judgement calls.