On 16 January 2012 15:45, Martin Heidegger <m...@leichtgewicht.at> wrote:
> The descriptive long names such as sendString are funny as long as they are
> short. I have had occasions
> where I wanted to differ between a complex object and a string
> representation: sendString(), sendQuery(), then there were two totally
> different type of Querys
> sendGeneratedQuery, sendSuperQueryFromHell,
> sendTheRoomServiceObjectThatNoOneEverWanted(). (just saying)

Probably the proper OOP solution would be to use
GeneratedQuery.send(), SuperQueryFromHell.send() etc.
I know that it's not always possible e.g. for remote inrerfaces but I
doubt if it's worth implementing (hack together) the controversial
feature just for very specific usecases.

Cheers,
Iwo

Reply via email to