|
Posted by Toby A Inkster on 07/25/07 09:24
Michael Fesser wrote:
> They are perfectly OOP, whenever you have to make sure that there's
> always exactly one (not more, not less) instance of a class.
I agree with Sanders here: they're inconsistent with OOP theory. They're
basically just glorified globals wrapped up in a class-oriented syntax.
Of course, they're useful as hell -- just like globals and gotos and all
those other dirty little pleasures that programmers use when no-one's
watching.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 34 days, 13:01.]
Cryptography Challenge
http://tobyinkster.co.uk/blog/2007/07/24/crypto-challenge/
Navigation:
[Reply to this message]
|