> When writing a new module, how do you decide whether to write it as an OOP module or a procedural module?
Bod, great to see you thinking about this important topic so early in your programming career!
The most important aspect of any module is not how it implements the facilities it provides, but the way in which it provides those facilities in the first place.
-- Practice No. 1 in Damian Conway's Ten Essential Development Practices
Given its crucial importance, it's well worth spending considerable time studying the dark art of interface design.
My most comprehensive reference on this topic is On Interfaces and APIs. Other useful references:
For your question, an outrageously simple answer is to ask: Do I need more than one of these? If the answer is yes, OO is indicated, otherwise procedural.
In reply to Re: Procedural vs OOP modules
by eyepopslikeamosquito
in thread Procedural vs OOP modules
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |