Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^4: What are the core points of good procedural software design? (functions, code structuring)by psini (Deacon) |
on Jun 23, 2008 at 12:32 UTC ( [id://693509]=note: print w/replies, xml ) | Need Help?? |
Agree. But OO code without an OO structure behind is like icing without the cake. Taking a "spaghetti code" using only global vars and forcing it into an object seems to me a little like sweeping the dust under the carpet: it's a little better, but very little, and perhaps it doesn't worth the effort. In general the problem is far behind: if you want a good OO code you need a good OO structure that comes from an OO thinking before the project is started (or when it is fully rewritten because you can't understand any more how it works). Disclaimer: I don't blame the OP for this, for several of my customers have plenty of similar code, much of which written by myself. I'm certainly not proud of this, but there are situations in which you are requested to do something quick and dirty (quick in my experience meaning "before yesterday") and then to add features and features to these abominations never having the time to refactor or rebuild them. Careful with that hash Eugene.
In Section
Seekers of Perl Wisdom
|
|