in reply to Procedural vs OOP modules
> 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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Procedural vs OOP modules
by Bod (Parson) on Oct 29, 2021 at 20:18 UTC | |
by eyepopslikeamosquito (Archbishop) on Oct 30, 2021 at 07:11 UTC | |
by Bod (Parson) on Oct 30, 2021 at 15:56 UTC | |
by Bod (Parson) on Oct 30, 2021 at 16:40 UTC |