Hacker News new | ask | show | jobs
by dkrikun 2751 days ago
Writing C++ like Java (or any other language for that matter) won't help anyone. The code will turn out non-idiomatic and weird for any couple of C++-eyeballs.
2 comments

This is a classic design pattern. Its not language specific.
I always find this comment funny, because C++ is older than Java and many Java programming patterns originated from C++ designs.

Then again, many C++ younger devs don't even know what Booch method might be all about.

Especially since the GoF Design Patterns, which are often cited as the main reason for Java being verbose, were described in the original book using C++ (and smalltalk) examples.

Just because they may be overused in Java doesn't mean people shouldn't use them at all in other languages.

They have originated from C++, fine, but it is a different language, different ecosystem, different community, different ideology and -- different idioms
That is the thing, doing MFC, OWL, VCL, Qt, wxWidgets, DCOM, CORBA, Motif++, BeOS based applications was hardly any different from what Java became.
Yes most of these things are terrible