1
C-sucks
2y

dude, C++ has evolved a lot, why don't companies move to C++ from java!
It's a universal truth that java's design sucks.

Comments
  • 13
    C# exists as well. A better Java
  • 2
    I started learning Modern C, realised I was basically learning a second language, so just moved to Rust. Very happy now.

    But if there was only one language, I’d be bored. I’m not a religious girl. Horses for courses.
  • 6
    Literally all the bad things that exist in Java also exist in C++ plus a bunch more
  • 0
    Stop whining, start coding. *

    * JavaScript excluded.
  • 2
    C++ is awesome but it‘s also a nightmare.

    Java just sucks.
  • 4
    Its hard enough to find good enough java developers.
    Even if C++ have evolved many of the basic problems with memory management still exists if you use old style and finding good enough C++ devs will be much harder.

    And then you have existing code.

    Throwing that away to switch will almost never pay of.
  • 0
    If not because of a lot other reasons, migration is terribly expensive.

    Not just costs for rewriting (when was this ever a good idea? see also https://joelonsoftware.com/2000/04/...), the costs of running two systems in parallel and, if only writing new software in C++ instead of migrating, at least training (got twenty years experience in Java? To bad, now learn C++! We will talk again in five years!).
  • 0
    They all are based to learn java,

    I started with C, C++, C#, and then JAVA.

    What about painting using java applet code?
  • 0
    @Voxera
    > Memory Management problem
    Uuuh, you mean control and too optimizable performance problem? Yeah :( It's still too good unfortunately
  • 1
    You are comparing two wholly different things. They are two different programming languages aimed to solve two different types of problems. Would you develop a microcontroller in Java? Would you develop an enterprise HTTP server in C++?

    Yes, C++ evolved a lot, but when people talk about programming languages as one is better than another, I really wonder if they ever programmed a single day or they just watch memes
  • 1
    @Hazarth I think she's more talking about data races, memory leaks and UB
  • 0
    tech debt
  • 0
    @12bitfloat yes.

    Even if there are much better solutions today I would bet you still can make all the old mistakes.

    And regarding performance, in most software today the language is never the bottleneck, its database or other io.

    And c++ will not help with that.

    And just for clarity, I have written commercial grade software in C that ran for months at a time without memory leaks or other problems so I do know somewhat about it.
  • 1
    @Hazarth as mentioned, unless they removed a lot of the power in c/c++ it should still be quite easy to forget to free memory or overwrite buffers and similar.

    Sure there are probably much better solutions but unless they removed the old ways some less stellar devs will copy paste old solutions an introduce memory leaks or buffer over run bugs ripe for abusing.

    Yes C++ is fast and powerful but I actually inly know a few devs I would trust with that much power.

    Most of them much better off in a more forgiving language, and the customers are also better off.

    And for most applications the bottle neck will be IO not in proc memory management or code execution.

    And sure, I know a very few devs that probably could whip up a good application fast using c++ without any gleaming security problems but most that even could would take more time doing it than in a more high level language.

    And spending that extra time just to be able to brag about using C++ is just bad for the company.

    So for the majority of all devs, c++ would bad for security and customers.
Add Comment