Forum: Ruby :-) Sharing a Shower Moment :-)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
45196398e9685000d195ec626d477f0e?d=identicon&s=25 transfire (Guest)
on 2005-12-10 13:31
(Received via mailing list)
What did the Rubyist say to the duck?

  "What type are you?"

What did the duck say back?

  "Does it matter?"

T.
4feed660d3728526797edeb4f0467384?d=identicon&s=25 billk (Guest)
on 2005-12-10 19:24
(Received via mailing list)
From: "Trans" <transfire@gmail.com>
> What did the Rubyist say to the duck?
>
>  "What type are you?"
>
> What did the duck say back?
>
>  "Does it matter?"

To quack or not to quack, that is the question.


 O:-)
71f1b6b2c3fd9af2e8c52618fb91caa6?d=identicon&s=25 Jules Jacobs (jules)
on 2005-12-10 20:10
:) :)

Would fit in Why's Guide to Ruby.
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 djberg96 (Guest)
on 2005-12-10 22:51
(Received via mailing list)
Trans wrote:
> What did the Rubyist say to the duck?
>
>   "What type are you?"
>
> What did the duck say back?
>
>   "Does it matter?"
>
> T.

Why did the duck cross the road?

To respond to the other method.

That, and the chicken retired.

- Dan
Fbaa72b7e8188955d64448f74b8e1feb?d=identicon&s=25 trashcan (Guest)
on 2005-12-10 23:16
(Received via mailing list)
Daniel Berger wrote:

> Why did the duck cross the road?

There was an instance of road, an instance of duck and an instance of
farmer who planned to make an instance of duck soup for dinner.
37a3c73ffbf864e4b28f7f2384ee12ce?d=identicon&s=25 Timothy Hunter (tim-hunter)
on 2005-12-10 23:24
(Received via mailing list)
Daniel Berger wrote:
> Why did the duck cross the road?
>
> To respond to the other method.

Q. How many ducks does it take to change a lightbulb?
A. (0..4). 1.to_f, 2.to_s, and (0..2).to_a
91ac0ea6ae5c8cd67e2ed455b43ffbee?d=identicon&s=25 sgentle (Guest)
on 2005-12-10 23:28
(Received via mailing list)
On 12/11/05, Daniel Berger <djberg96@gmail.com> wrote:
> Why did the duck cross the road?

Because road.is_a? Crossable returned true.

Sam
132a94ca65959bda6c74fae54bff2425?d=identicon&s=25 ezra (Guest)
on 2005-12-10 23:32
(Received via mailing list)
On Dec 10, 2005, at 1:47 PM, Daniel Berger wrote:

>
> Why did the duck cross the road?
>
> To respond to the other method.
>
> That, and the chicken retired.
>
> - Dan


If a duck quacks in the woods... Does anyone.respond_to? his calls?


-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ezra@yakima-herald.com
509-577-7732
8a85c693f13ef7cb542ef94d2a403d4d?d=identicon&s=25 luc (Guest)
on 2005-12-11 14:33
(Received via mailing list)
On 10 déc. 05, at 23:27, Ezra Zygmuntowicz wrote:

> If a duck quacks in the woods... Does anyone.respond_to? his calls?

In ObjectSpace, nobody can hear you quack.
D812408537ac3a0fa2fec96eb8811559?d=identicon&s=25 John Carter (Guest)
on 2005-12-11 20:57
(Received via mailing list)
On Sun, 11 Dec 2005, Ezra Zygmuntowicz wrote:

>>>   "Does it matter?"
>
>
> If a duck quacks in the woods... Does anyone.respond_to? his calls?


You guys are Quacking me up. This is riDuckulous!

Anyhoo, a Javadroid would say "What type are you?" and the Ruby duck
would
give that reply.

A Rubyist would say, "If I asked you to Quack, would you respond?" Or
using the postfix "unless"...

"Quickly Quack unless have Qualms!"

...and promptly get nibbled to death by Ducks.

I'll Quit now and go Quietly with no more Quirks.


John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : john.carter@tait.co.nz
New Zealand

Carter's Clarification of Murphy's Law.

"Things only ever go right so that they may go more spectacularly wrong
later."

From this principle, all of life and physics may be deduced.
36958dd94ca666a38483df282a5214d5?d=identicon&s=25 Pete (Guest)
on 2005-12-11 21:18
(Received via mailing list)
Java: What type are you?

public final class Duck extends AbstractAnimal implements MayQuack,
CanSwim

AbstractAnimal extends Lifeform

Lifeform extends Object

oh, well... hail to type-safety :-)

just say quack, god-damn-it !



On Sun, 11 Dec 2005 20:55:14 +0100, John Carter <john.carter@tait.co.nz>
C8a634a01a2c4508360874bff7fb1a7f?d=identicon&s=25 Kevin Olbrich (Guest)
on 2005-12-11 21:30
"What's in a Type? That which we call a Duck
by any other class identifier would quack as loudly."

Even Shakespeare got it.
This topic is locked and can not be replied to.