From: Phillip Gawlowski Date: 2008-05-17T03:58:32+09:00 Subject: Re: Monkey Patching (definition)? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Christoph Schiessl wrote: | | Basically, I am reopening the definition of ExampleClass and adding | another method. At first I am creating a new class method and afterwards | I am creating a new instance method (for the object inst only). Is | monkey patching the correct term for that kind of programming style? Yes and no. Monkey patching it is called, if one ignores potential side effects, or performs something dangerous, like re-opening a a Core class. There was a long discussion on the topic in this thread: | How would you call this style of programming? I'm asking because I'm | quite new to Ruby and currently trying to learn the right vocabulary to | easily communicate with other Ruby programmers. I am definitely not | looking for flame war! Probably 'dynamic'. :P - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Blog: http://justarubyist.blogspot.com Use statement labels that mean something. ~ - The Elements of Programming Style (Kernighan & Plaugher) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkgt2VYACgkQbtAgaoJTgL+FhACdEWCS+csnXHPPu675BgPaMQ/8 RUsAnj8bnNQfBBDELgjMATUDwzYRSXno =VF10 -----END PGP SIGNATURE-----