From: dblack@... Date: 2003-04-02T21:56:46+09:00 Subject: Re: OO vs. procedural programming Hi -- On Wed, 2 Apr 2003, Gavin Sinclair wrote: > On Wednesday, April 2, 2003, 2:47:15 AM, Robert wrote: > > > The more interesting question to answer might be, when to start writing > > your own classes. That depends on the application. A simple file filter > > (aka grep and similar) can be written without the intervention of new > > classes. > > I tend to create classes even for really simple apps, because Ruby > executes everything as it finds it, meaning procedural code needs to > be organised bottom-up. > > Putting things in classes (including a method "main") allows you to > organise your code how you like, and then just call > > MyApp.main > > at the end. True, but so does: def main ... end main :-) David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav