r/cpp • u/Its_Blazertron • Aug 25 '21
Experience C++ developers: do you enjoy using C++ (even for personal/hobby projects?)
Do you actually enjoy using C++, or do you only use it for work, or purely for performance? This question is aimed at people with years of experience, who've worked on large projects in C++. I see people who dislike the language, but use it purely for performance reasons. This sort of discourages me from learning it. I don't want programming to feel like work.
204
Upvotes
43
u/braxtons12 Aug 25 '21
That's not what they mean. Classes are absolutely fine when what you need actually is a class. Java programmers (and to a somewhat lesser extent C#) tend to make EVERYTHING a fully fledged class or interface (or a pair of both) so you end up with things like
public interface AbstractThingyFactorySingletonFactoryandpublic class ThingyFactorySingletonFactorywhen all you really needed wasauto get_thingy_factory() -> ThingyFactoryor even better yet justauto make_thingy() -> Thingy