in reply to Re: Subroutine and object
in thread Subroutine and object

Does it matter if we start out with a subroutine or object?

Replies are listed 'Best First'.
Re^3: Subroutine and object
by chromatic (Archbishop) on Nov 24, 2007 at 22:51 UTC

    I don't understand the question. Start out how, as in appearance in the code or in which you should use first to solve a problem?

      should use first to solve a problem?

        It depends on the problem. This is really only something you can answer with experience, but one good guideline is that using objects is useful when you have a collection of logically-contained behavior. If you can point at an entity in the solution and say "Here is an individual thing that does several related things", you might have a good candidate for an object.