Re: Retrieving unnecessary data
- From: Robert Martin <unclebob@xxxxxxxxxxxxxxxx>
- Date: Fri, 15 Feb 2008 09:39:55 -0600
On 2008-02-14 14:52:24 -0600, ShaneLM <shane.niebergall@xxxxxxxx> said:
I didn't mention that these methods and objects are being
returned via a web service so the classes can't have functionality
associated with it.
Then they aren't classes. Classes expose behavior and hide data. What your web services are returning are *data structures* not classes.
You can hide data structures behind classes. You can make classes that fetch data using web services. So you can still do what you want to do. You can have a Car class that has a method to return the stats and another method to return the passengers. Each of those can be implemented with separate web services.
--
Robert C. Martin (Uncle Bob) | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc. | blog: www.butunclebob.com
The Agile Transition Experts | web: www.objectmentor.com
800-338-6716 |
.
- References:
- Retrieving unnecessary data
- From: ShaneLM
- Re: Retrieving unnecessary data
- From: Phlip
- Re: Retrieving unnecessary data
- From: ShaneLM
- Retrieving unnecessary data
- Prev by Date: Re: Retrieving unnecessary data
- Next by Date: Re: Retrieving unnecessary data
- Previous by thread: Re: Retrieving unnecessary data
- Next by thread: Re: Retrieving unnecessary data
- Index(es):
Relevant Pages
|