at any point in time, you have to ask yourself: why am I not using C++? It: >can facilitate massive project scope >compiles to super fast binaries for any platform. minimal runtime, just double click the .exe >can elevate your logic through greater layers of abstraction. >has the biggest ecosystem of any language. more libraries than anywhere else >battle proven. makes pretty much every game, every browser and compilers like llvm >is great for small programs like command line utilities >is great for prototyping. used by the majority of winners in coding competitions
when faced with these facts, you better have some good excuses for not switching to C++ immediately
why. it's not good for massive projects like web browsers, compilers, AAA game engines no where near the power of C++ feature wise tiny ecosystem not great for fast prototyping, doesn't win coding competitions. no where near the winner.
memory safety is a completely imagined problem. just press the ladybug symbol next to the hammer and it'll tell you when & where you have errors. if you care that much, just don't use raw pointers baka.
Chase Reed
>can facilitate massive project scope So can nearly anything else, hence Java/Javascript/Python being the industry leading languages.
>compiles to super fast binaries for any platform. minimal runtime, just double click the .exe How to implement your program will matter so much more than the language you used. People that think C++ is fast via magic end up writing the slowest programs.
>can elevate your logic through greater layers of abstraction. So can anything else, and usually way easier too. C++'s abstractions are pretty janky, and only just now starting to catch up.
>has the biggest ecosystem of any language. more libraries than anywhere else Probably not even true.
>battle proven. makes pretty much every game, every browser and compilers like llvm Technically true.
>is great for small programs like command line utilities Again, pretty much anyone else can too.
>is great for prototyping. used by the majority of winners in coding competitions Is arguably among the worst languages to prototype in. Every trade-off C++ makes is against prototyping.
Nicholas Williams
C doesn’t have all the retarded rubbish I don’t need
My real gripe is coming up with short projects using such a language. >inb4 filtered I have taken CompSci courses that used Python, Java and C. Miss me with that memeshit.
Brody Martinez
>So can nearly anything else, hence Java/Javascript/Python being the industry leading languages. javascript/python cannot build Compilers, AAA GameEngines, web browsers. Java can but why. Yet the other way round, C++ has a massive presence in gui, web backend & wasm >People that think C++ is fast via magic end up writing the slowest programs. normally written code would be much faster in C++. even faster than other languages since default constructors implement move semantics on strings, vectors & dictionaries. >So can anything else, and usually way easier too. C++'s abstractions are pretty janky, and only just now starting to catch up. almost no other language can build their own standard library, stuff like tuple HAS to be an inbuilt type. entt, glm libraries would be not so pretty & usable in other languages. works great for networking since you can pass a struct and have it be serialised without writing out the serialisation & deserialization code >Is arguably among the worst languages to prototype in. Every trade-off C++ makes is against prototyping. no, every tradeoff C++ makes is against appeal to low iq low skill individuals. C++ is way superior at prototyping than python. prototyping with python is a pain since you need to modify your environment and then possibly revert changes after your done. you can send your prototyped exes to anyone and i'll work just as well without them having to install all the ecosystem bullshit through pip.
Noah Lee
>>can facilitate massive project scope Not unique to C++. >>compiles to super fast binaries for any platform. minimal runtime, just double click the .exe Not unique to C++. >>can elevate your logic through greater layers of abstraction. Not unique to C++. >>has the biggest ecosystem of any language. more libraries than anywhere else Demonstrably false. >>battle proven. makes pretty much every game, every browser and compilers like llvm I am not benefited by this. >>is great for small programs like command line utilities Blatantly false. >>is great for prototyping Blatantly false.
Chase Thompson
filtered
Luis Carter
>>can facilitate massive project scope >Not unique to C++. no other language has yet to build a web browser, AAA game engine with published titles or compilers. >>compiles to super fast binaries for any platform. minimal runtime, just double click the .exe >Not unique to C++. unique for compiled languages >>can elevate your logic through greater layers of abstraction. >Not unique to C++. almost no other language has variadic templates, macros, multiple inheritance, partial & full specialisation, etc. >>has the biggest ecosystem of any language. more libraries than anywhere else >Demonstrably false. who cares about newbie node string utility #51362. of the things that C++ has, it is immensely powerful like freetype, glm, yoga, etc. >>is great for small programs like command line utilities >Blatantly false. literally almost every command line utility like grep, find, sed is in C. >>is great for prototyping >Blatantly false. imagine having to set up your ecosystem in order to be able to compile & run your program & having to use shit like docker. opening the cmake project in clion & pressing run would work in 99% of cases.
Vidya and webshit are literally bottom of the barrel trash, I am on your side but these are the shittiest examples. Operating systems for one, hello?
Luis Parker
>no other language has yet to build a web browser, AAA game engine with published titles or compilers. C has. >unique for compiled languages C++ is not the only compiled language. >almost no other language has variadic templates, macros, multiple inheritance, partial & full specialisation, etc. These are mostly C++-only idioms. Other languages solve problems in their own ways. >who cares about newbie node string utility #51362. of the things that C++ has, it is immensely powerful like freetype, glm, yoga, etc. Freetype is written in C. I do not know or care about glm and yoga. Probably useless string utility #2355 just happens to be written in C++. >literally almost every command line utility like grep, find, sed is in C. C is not C++. >>>is great for prototyping >imagine having to set up your ecosystem in order to be able to compile & run your program That's exactly what you have to do in C++.
>javascript/python cannot build Compilers, AAA GameEngines, web browsers. They're not ideal at those 3 things, but they can. Though, I do find it funny that C++ is used for Firefox and Chromium, two browsers that are notoriously horrible in terms of CPU and memory usage.
Those 3 applications are also fairly niche. 99.9% of software is none of those things.
> C++ has a massive presence in gui, web backend & wasm C++ GUI is horrid, what are you on? C++ also isn't the best backend by any stretch, and WASM is completely irrelevant here.
> even faster than other languages since... move? Most languages do a very good job of not needlessly cloning resources, this is not a C++ thing. Not that it matters because performance is rarely lost from something so trivial. The compiler itself is responsible for not even 10% of a final program's most optimal performance.
>something about standard libraries Standard libraries are self contained, easy to test, and massively reusable. Of course its better to take a little extra time to optimize these.
>no, every tradeoff C++ makes is against appeal to low iq low skill individuals. The biggest advocates for C++ end up being the biggest retards more often than not. They see huge names in the industry who use C++ and think that if they also use it, maybe some of their greatness will rub off on them. In truth, they end up being idiots that can't tell you the first thing about how CPUs work. Cache lines? Nope. False sharing? Nothing. SIMD? No chance.
>prototyping with python is a pain since you need to modify your environment and then possibly revert changes after your done. Is a completely reasonable trade-off. If I'm going to be spending the next 1-3 months prototyping something, I could care less about any overhead like that.
Austin Cook
is this a meme? are you a real/professional programmer?
William Gray
Just an enthusiastic beginner (or perpetually stuck in the beginner stage like 99% of Any Forums programmers).
Jace Cox
C# is like C++, except better in every conceivable way.
Austin Baker
>his shitlang needs an IDE to be able to embed a resource file >inby noo just write XAML by hand
Daniel Nguyen
>can elevate your logic through greater layers of abstraction. wtf does this even mean. are you an ai? >has the biggest ecosystem of any language. more libraries than anywhere else strong doubt. i seriously doubt it has a bigger ecosystem than python or js >battle proven. makes pretty much every game, every browser and compilers like llvm are you looking to write another huge piece of tech like a browser, or compiler? if not, don't you think the level of complexity is an issue >memory safety is a completely imagined problem this must be a larp. most crashers/exploits/cves these days are due to memory access issues
Owen Martinez
if this is really op, I suggest you just start by making small useful tools. don't worry too much about the language. go with something easy, like python. no shame in it. once you've spent 5-10 years writing code you'll probably develop a taste, and realise why C++ is not a good choice