From: "ara.t.howard" Date: 2008-12-08T00:10:01+09:00 Subject: Re: class vrs. method On Dec 7, 2008, at 3:58 AM, Tom Cloyd wrote: > Am I missing something? Can anyone give me a compelling reason to > write fewer methods and more classes? class YouCanTellThisStuffGoesTogether end class ThisDeclaresTheAtomsYouThinkAboutTheProblemIn end class ThisPreservesTheGlobalNamespace end class ThisGiveMeATypeForArgumentAndInterfaceChecking end class ThisProvidesAClearPlaceToChopTheProgramUpIntoFiles end class ThisReducesTheArgumentPassingByKeepingStateWithBehavior end class ThisAllowsMeToRefineAndSpecializeMethodsInSubclasses end class IsJustAnotherAbstractionLayerALongWithMethodsClosuresAndModules end class IsMisusedAndOverrated end module SomeTimesIsBetter end var = 42 closures_hide_information_too = lambda{ } def even_methods_can method(:even_methods_can).instance_variable_set '@static', 42 end ### one thing classes often fail to deliver on is making code more re- usable, however they nearly always assist in making it re-editable, which is vastly more important. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama