Sorry but this language fucking sucks and anyone defending it is suffering from stockholm syndrome brainrot.
>>106868461people who use it are employed or don't have a better tool to get the shit done. nobody loves this lang but everyone should acknowledge it's the best we got, even you brainlet
>>106868497>it's the best we gotThe best at what?
>>106868461works on my machine
>>106868461>It's not perfectFar from it>It's terribleIn many ways, yes>SO WHY THE FUCK IS IT USED BY SO MANY PROS ?Because in many ways it is unparalleled in terms of portable performance and modularity.But for 80℅ of the dev space, C# is a way better/ sane option.
>>106868461Yes. At the same time, you don't choose the language you're going to use in a vacuum. I don't like C++'s design, but I still use it when I want to make a Qt program or use some obscure algorithm library.
>>106868461I hate to work in C++. In C# everything is ten times faster to solve and it just works instantly.But sadly still C++ is your only practical option on many fields.
>>106868461>anyone defending it is suffering from stockholm syndrome brainrot.ding ding ding ding ding.
>>106868697>/g/ - TechnologyMuch of the c++ today goes on without programmers actually taking advantage of the few good things about it. Sloppification has reached to and shat on every corner.
>>106868894>>>/reddit/
>>106868885What can C++ do that Java or C# can't?
>>106868949not have a garbage collected runtime.
>>106868967^
>>106868949>do that Java or C# can'tthe JVM and the CLR are made in C++, so you can write your shit in java and c#
It's bloated and abstracts away a bunch of stuff. But that goes for nearly every language except for C.Everything C++ has of awful is shared by Python, Java, C#, Javascript, etc, except these languages do it to a much more atrocious level.So I don't get why pick on C++ specifically.
There's nothing seriously wrong with it except that some new/advanced features trigger retards. Plus the alternatives are all worse.
undefined behaviour, horrific dependency management, a committee that has their head up their asses, un-ergonomic syntax, 50 footguns for every non-trivial feature, boost, standard library is both lacking in features and unable to properly meet all usecases (just see std::regex performance), mediocre tooling (compiling any non-trivial project is a massive pain in the ass. only exception is if you're able to use visual studio. also fuck cmake), horrible 100 line template error messageslike don't get me wrong i think C++ has some cool things (RAII, templates, almost anything you need has already been created as a library somewhere) but it's built up a whole lot of cruft over the yearsfor me the main reason i'd use C++ is if there's a C++ library that doesn't have good alternatives or if i'm working on a legacy system
>>106869306C abstracts almost everything about the machine. So does assembly.Just make your own photolithography masks
>>106868949actually produce code that executes directly on the hardware without a middleware layer written in another language to run it
>>106869306Because /g/ is full of retarded college freshman and webdevs that got filtered in their first real coding course nowadays. >>106869332Pretty much. The only people I see complaining about C++ are the people that try to learn it for learning's sake and don't actually use it in a productive manner. Most programmers are whiny faggots that get jackshit done.
>>106869332most other languages keep their core design much tighter and more focused, C++ is all over the placeI will say that since 17 or 20 it's more or less as easy to use as Java or C# for most things, so long as you understand move semantics and aren't going out of your way to be retarded
>>106869459>people I see complaining about C++ are the people that try to learn it for learning's sake and don't actually use it in a productive manner.probably the crux of the matter. it's not the sort of language you can learn everything about.just pick it up and write code it'll buff out
>stockholm syndrome replies.OP won.
>>106869532the only alternative to C++ is C.
>>106869488Pretty much. It's a language meant for actually implementing and producing codebases with, not as some sort of academic language. Outside of the basics (which are covered in Stoustrup's book and any college level C++ curriculum), everything else is pretty much used on an ass needed basis rather than trying to become some C++ wizard or some shit like that.It's widespread usage in the gaming industry, scientific simulation and other scientific work, quants, regular industry and even as a hobbyist language is more proof of its utility as a programming language than a bunch of nerds reading outdated books on the C language and actually dead languages like Lisp. Not to mention all the retards that are trying to reinvent the wheel like Rustfags and Ziggers, who want to make "C++ but worse and with less support, adoption and actual lasting influence".This is why you should never listen to programmers that focus only on their tools and not on what they are actually creating: they don't know what they are talking about.
>>106868461True, but let me ask you. What language does not suck? Do you really think the real problem is the language and not he UNIX mindset?
>>106868461The only defense I'll mount is the compilers are better than any other language.
>>106869585>no linear types>no algebraic capability types enforce compile time contracts>retarded exceptions model (not used by anyone)>no real interfacesC++ is a pretty lame language
>>106869613>hurr durr this screwdriver isn't a torque wrenchtypes in C++ are still very much like types in C, by design. most programmers want an array of bits in memory they can poke in predictable ways before they want some pretentious category theory shit
>>106868504C with class. it's fast, it's legacy and it hurts my brain
>>106869613Tell me how this never stopped anyone but languagefag brainlets from making very useful products with C++. It sounds like you can't program for shit and are blaming the language for your inadequacies.
>>106869613just use a library? literally everything written in C works with it
>>106869613ok nerd now show me how you configure the HDMI interface registers with this shit
>>106869660That is the problem, chud. I'm not talking about types but about a new semantic model to express restrictions and enforce security.
>>106868461I don't think it sucks but for the large majority of cases C++ is not needed. My language of choice is this:- Simple hardware: C- Complex hardware: Rust- System applications: Bash, Python or Rust- Complex applications: Java or HaskellI could use alternatives like Kotlin, Scala, C++, Zig, Go, Lua, but it doesn't really matter. What matters is right tool for the job. C++ is comparable to Rust.
>>106869536This isn't true. You're just being a bitch and further proving you're Stockholm'd wage cuck.
>>106869726>C++ is comparable to RustI would go further and say that C++ is basically Rust, both are conceptually poor languages, I mean why borrowability is not a property of the type instead of a pervasive programming feature?
>>106869660>undefined behavior >predictable Holy shit man. Shut the fuck up.
>>106869737>she programs for freeso yeah exactly what everyone's been saying
>>106869788>he wages at allLower your tone when talking to me.
>>106869777works on my machine, skill issue, et al.in case you haven't grasped it yet, hardware is undefined behavior by definition
>>106869794>NEETopinion discarded