Nick Gall wrote:

> CREATE, SERIALIZE, PRINT, and DELETE are paradigmatic examples of OO 
> polymorphic methods. So what's different about REST's "uniform 
> interface" generally, or HTTP verbs specifically? Your statement that 
> "Each resource might exhibit slightly different behavior, but the 
> behavior of a particular resource (identified by its URI) should not 
> change" doesn't parse for me. Given how complex the concept of 
> polymorphism is (see this Wikipedia 
> <http://en.wikipedia.org/wiki/Type_polymorphism> entry), could you 
> elaborate a bit?
>









I agree with Nick. Wikipedia definition of Polymorphism is:
"In general, polymorphism describes multiple possible states for a 
single property "
http://en.wikipedia.org/wiki/Polymorphic

Computer science definition is kind of misleading because it allows 
differing operations
to be assigned to different types.  IMHO, however,  it is implicitly 
implied that the behavior
of a function should remains consistent irrelevant of the type(s) to 
which a function is applied.
Polymorphism (computer science): (Wikipedia)
"a mechanism allowing a given function to have many different 
specifications, depending on the type(s) to which it is applied. "

For example, if there is a service to get employee information, I should 
be able to
get the same information with the same level of service in the situation 
below:
1. provide employee number
2. provide department, team, and phone number (assuming these will be 
unique)

That said, as normalizing every table in a database is not a very good 
idea,  making every
service polymorphic is not a good idea in actual implementation.

H.Ozawa







 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/service-orientated-architecture/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/service-orientated-architecture/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to