logoalt Hacker News

nftu • today at 12:48 AM • 1 reply • view on HN

My favorite OOP joke:

A programmer had a problem so he decided to use Java. Now he has a ProblemFactory.


Replies

prewett • today at 1:03 AM

That’s a Java problem, though. OOP doesn’t require factories everywhere (see the Qt library, for instance). Java just had architecture astronauts build their API for years and years. C++ doesn’t have any factories in its std libraries, to my knowledge, and a lot of C++ code makes little to now use of them.