------art_28777_17675217.1156920023056
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On 8/30/06, John Carter <john.carter / tait.co.nz> wrote:
>
> Ah me. In a fit of over user friendliness I did a couple of
> the most colossally stupid things in a class.
>
> I, with head hung in shame, record them here so that...
>   * others may avoid them,
>   * I remember to avoid them later,
>   * writers of obfusticated ruby may benefit.
>
> a) Name a method the same as something in the Kernel module and then
>     forget that you have done so.
>
>     In particular I overrode "puts" in something that didn't inherit from
>     IO. OUCH! That really does make printing debugging statements
>     interesting.
>
> b) Put various key Ruby terms (eg. "raise") in alias statements.
>
> c) Do two or more of these very very dumb things in the same body of code.


This is a chellange, I am sure I can do better or was it worse?

Robert

-- 
Deux choses sont infinies : l'univers et la bóŐise humaine ; en ce qui
concerne l'univers, je n'en ai pas acquis la certitude absolue.

- Albert Einstein

------art_28777_17675217.1156920023056--