Jared Rypka-Hauer said the following on 3/24/2006 10:47 AM:
> I think what I'm realizing is that (consider a User Reactor object)
> you see getFirstname() (returns string), getLastname() (returns
> string), and getAddress() (returns Address) or getUserRole() (returns
> UserRole) as being the SAME KIND OF OPERATION. They're getters that
> return properties from the User bean... whereas getAddressIterator()
> returns a utility object that isn't a straight-up getter for a simple
> or complex property of the object... is this a correct summary of your
> perspective?
>
> From THAT PERSPECTIVE, I suddenly see why it makes sense to you... you
> don't see methods like getFirstnameString() or getZipCodeNumber() so
> why see methods like getAddressRecord()... right?
>
> Am I on the right track here?
>
> Laterz,
> J
Jared, if I'm tracking the thread right - that's the same thing I'm
thinking.  Naming getFirstNameString() is just silly/redundant/etc  --
because of that getAddressRecord() seems semantically wrong to me.  If I
want an address bean, I want to call get getAddress or getPhone or getAdmin.

-- 
Peter J. Farrell :: Maestro Publishing
Member Team Mach-II :: Member Team Fusion
http://blog.maestropublishing.com

Create boilerplate beans and transfer objects for ColdFusion!
Fire up a cup of Rooibos!
http://rooibos.maestropublishing.com/



 

-- Reactor for ColdFusion Mailing List -- [email protected]
-- Archives at http://www.mail-archive.com/reactor%40doughughes.net/


Reply via email to