From: Gavin Sinclair Date: 2003-04-02T18:34:31+09:00 Subject: Re: OO vs. procedural programming 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. Gavin