News for hackers. Stuff that matters.
Re:Do you know Ruby’s ‘Chainsaw’ method? by bluesnowmonkey on Wednesday October 06, 2010 @11:32PM (#1766738)
A better analogy to magic methods would be dynamite. There are a few situations where you should use it, but not many, and generally it's when there's no other option.

His example violates the principle that objects should represent things. (What is a DoNotDisturb?) Back to OOP school, metaprogrammer!

Re:Do you know Ruby’s ‘Chainsaw’ method? by nusco on Thursday October 07, 2010 @06:46AM (#1767418)
From the OP: I considered changing the names because I had the same concern, but in the end I figured that the current name was good enough for a toy example. In hindsight, you're probably right I should have used other names (although your sneering tone is not really necessary).