See my answers inline.

On 9/11/06, jeffrschneider <[EMAIL PROTECTED]> wrote:

Let's take REST out of the equation for a second.

Do you consider the standard relational database as having a
polymorphic interface?
do('Select * from Employees')

Is 'do' polymorphic? Depends on the API suite that 'do' is part of. If 'do' is a unique operation on only relational datasets, then no. If 'do' is overloaded to apply to lots of different types of "objects", then yes.

Is 'select' polymorphic? Yes, since it works for all relational objects (ie tables).

Why/Why Not?

Thanks,
Jeff

--- In [email protected], "Nick Gall"


<[EMAIL PROTECTED]> wrote:
>
> "Using this definition, you could say that the combination of REST
services
> are polymorphic. You can not, however, say that an *individual*
service is
> polymorphic"
>
> Why in the world not? Different URIs can have the "same verb
applied to
> them", e.g., GET. So GET is polymorphic. What's so hard to grasp
about this?
>
> If basic OO concepts are this widely misunderstood, no wonder REST
is so
> widely misunderstood.
>
> "If the interface is explicit, then the polymorphic context should
be
> implied in the message." Actually it's dispatched off he URI.
> http://rest.nick.com/employee/123 dispatches to my employee
processing code
> and http://rest.nick.com/product/123 dispatches to my product
processing
> code. URI dispatching is done billions of times every day with
great ease
> and good enough efficiency. So what's the problem with polymorphic
REST
> verbs.




--
Nick Gall
Phone: +1.781.608.5871
AOL IM: Nicholas Gall
Yahoo IM: nick_gall_1117
MSN IM: (same as email)
Google Talk: (same as email)
Email: nick.gall AT-SIGN gmail DOT com
Weblog: http://ironick.typepad.com/ironick/
Furl: http://www.furl.net/members/ngall __._,_.___


SPONSORED LINKS
Computer software program Computer software spy Computer job
Database software Discount computer software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to