The main thing I disagree with is "cheating". There is no "cheating". It's abstraction to offload some of the work of the dev into the computer. It comes at a cost of course, but it's not "cheating".
I always think it's funny when people say they like C because it's close to the metal, but if you've ever programmed in Assembly, you know that even C is a high level abstraction above assembly. And Assembly is a high level abstraction over machine code.
C++ is full of footguns because of its long history. Even experienced programmers will accidentally use after free or fail to declare their virtual destructors just right and spend days debugging.
Rust shows that you can have just as much power with more safety if you design a new language from scratch (if you really need to do pointer arithmetic that the compiler can't verify, you can always make that part unsafe; at least the rest of the program isn't!)
A better solution is to just get rid of RAII and provide defer instead, and better promitives like array slices, instead of everything just being a pointer that you need to manually pass around extra data alongside to properly interpret.
Yeah this is absolutely BS. Just because there is a lot of something doesn't mean something is hard. That would mean spelling is hard, because there is millions of words.
I'd say that a programming language is a trade-off. It's not that other languages cheat or that C++ is somehow better or worse, it's that they all try to be good at different things.
I think cheat is the wrong word. Other languages cns heavily abstract what's going on. C/C++ you manually manage a lot of normally abstracted elements which where people might see a learning curve.
I am of the opinion that C is the language to learn programming where Python is the language to learn what programming does for you.
In fact, it's funny that you call "other languages" cheats, when C++ is basically a huge bloat of cheats on top of C (Isn't it called "C with Cheats"?). And worse, a huge legacy of layers on top of layers of contradictory cheats.
As Linus once wrote:
``` C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C.
[...]
In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are basically available in C. And limiting your project to C means that people don't screw that up, and also means that you get a lot of programmers that do actually understand low-level issues and don't screw things up with any idiotic "object model" crap. ```
C++ is like English. Both are hot messes that feel like they're easy and you know and love if it's all you learned during your formative years. If you didn't, you recognize how hard and what a pain it is compared to your preferred language.
I don't know if it's just because I learned Python first, but I have an inexplicable dislike of double colons as any type of operator or anything, I think they just look wrong in general
Python beauty is in simplicity (not readability since it can be hard to read without bracket) C# beauty is in the OOP paradigme and the reduction of boilerplate code. C++ beauty is in performance and versatility Rust beauty is in safety feature etc...
And I think that’s what’s so great, we all get to choose which languages we like and don’t like and even if people don’t agree, that’s fine cause it most likely will not affect them at all.
Cheating is the whole point of every high-level language ever invented, except certain esoteric things and honestly it even applies to most of those. That's literally the point, and it's often a good thing.
Idk how to program, but I've made a bunch of my ideas come to life where I would otherwise still be thinking about ithem instead of using them right now. Def cool to me!
what is to cheat? how does one language cheat over the other? like how would java cheat over C? or rust vs java which would cheat the most or at all? is cheating the new word for "abstracting concepts behind keywords recognized by a language's compiler"?
Well C++'s syntax makes it more absurd and pretty much harder than plain C in my opinion, i understand it's a powerful language, but C++ isn't just hard in the name of computer science
You know it seems to me that most languages are someone's pet project... and then IF they blow up that someone generally stays important to the community and continues to drive a lot of the design and development... C++ has Bjarne but I would argue that C++ is much more committee driven than other languages.... Maybe the problem is that C++ ISN'T someone's strong opinion... its a mish mash of bits of a whole bunch of peoples strong opinions.
Saying using certain languages to code is cheating is simar to saying using bricks or steel bars to build something is cheating instead of using bamboo straws or something
Either I’m weird or people are just stupid, I don’t really like how c# handles classes and variables, and I prefer C++ over it. Only thing that makes me sometimes use C# is NuGet because packages work out of the box, while I often have hard time making vcpkg downloaded package work (most of the times it first word so I just abandon the project or do this in C#)
To name one thing, the pre processor is a bad, confusing, and difficult way to do modules compared to an export/import system that most other languages use.
So in at least that one case, it's not computer science that is hard but C++ in particular.
wtf are you talking about? If anything, c++ is antagonistic to "computer science" because it exposes a ton of the details that you generally gloss over in computer science.
I mean, at least in C, I can understand what I'm doing. C++ stacks so many layers of shitty new norms that a single problem can be solved in a miriad of different but quite the same syntactic sugar. So much that last time I asked a senior developper a clarification on the deeper meaning of a nuance of properties initialization the answer was : do like this, you have to do it like this...
Well, there is something to be said about C++’s language designs…
Stuff like: - functions implicitly decaying to pointers and lambdas don’t - the templating engine not performing any verification of the veracity of the generated code - the error messages - the standard library’s implementation and its documentation - the mix of C++ and C standard libraries - move semantics being finicky - 80% of the APIs being outdated, (I might be exaggerating) without it being clear which is which
I could go on… many other systems level programming languages are far simpler, whilst still being able to output code of the same performance, so this feels a little bit like copium
honestly, c++ isn't as bad as people make it out to be. still, it brings a lot of footguns that make it not that nice to use. whenever I write c++ I usually end up just writing c code because I find that easier, and at that point why wouldn't I just write it in c in the first place?
I do know someone who is really good at c++ and will actually use a lot it for his embedded projects, but even he says for most projects it just doesn't make sense.
I also think that saying some languages "cheat" is outright wrong. just because someone else wrote an abstraction that doesn't make that abstraction a cheat. otherwise you would have to at the very least write binary code on bare metal, because asm is already a form of abstraction, and so are things like syscalls which your os gives you access to.
Computer science? As in the field of mathematics? Most C++ isn't hard because computer science is hard, most C++ is weird business logic in codebases older than you are
If you consider abstraction cheating then C++ is also cheating.
C++ is not hard because it is "not cheating" it is hard because they got C and added too much stuff in improper ways.
The actual "CS" lang would be assembly, or C, not C++.
C++ also has much much better alterntives, golang, C#, rust, etc
This is coming from a C++ dev, The lang you choose is your choice and preference, and I chose C++, but C++ is not a good lang, it's frankly a bad lang just that I make bad choices but for low-level C-like langs C++ is the only mainstream choice.
Abstraction is a corner stone of computer science. If you don't need the fine control that low level languages gives you, you chose the wrong language.
C++ is an overly commplex pile of random ideas that just keeps growing, and to write C++ in a sane way you essentially need to treat it as C but with a few niceties, like operator overloading (for math), and function overloading (though that is also its own can of worms).
Also, this madness makes it hard to work with -- way harder than it has to be. Pretending otherwise is just a coping mechanism.
Eh C++ is more just a nasty language imo. If you want real hardware level use C, it's simpler and nicer to use. If you want an abstracted language but still low level use rust, actual mem checking and far better ecosystem. If you want portability use Kotlin, Java or Python for the VMs they use, etc. C++ just doesn't fit anywhere anymore with new languages imo.
I’m actually an expert in coding computer science. I tried to learn c++ but I’d already began setting up my dotfiles for comp-sci language so it was basically easier to stick to programming in that…
Nah, c++ has 6 ways of doing the same, with 5 of them being a footgun. It has a terrible philosophy because it tries to add modern abstractions on a language that clearly should not support them, and that creates pitfalls that cannot be removed due to compatibility
Basic C++ is not hard, its a common misconception and stereotype that people developed throughout its lifespan, what hard are the 40+ years of backwards compatibility with C, With millions of edge cases and multiple programming paradigms that a normal person will probably never touch in its entire lifetime
“Cheat” is a morally loaded word, but the meme is right.
Forcing rocks to count is hard. That’s why one team abstracted it so that all we have to do is write machine code.
But writing machine code is also hard. That’s why another team abstracted it so that we only have to write pre-compiled code.
But some pre-compiled code is still hard. That’s why another team abstracted that so that we can write C…
Etc etc, until you get to a modern desktop.
What the meme is also that I think is actually worth thinking about, is that C++ seems to be a very significant bottle neck in the abstraction chain. Like, it’s true, C++ is hard, because the things it needs to abstract are complicated.
But like, that’s a good thing? I don’t know why we put a bad moral judgment on it by calling it cheating
Not cheating, abstractions happen in every language (even assembler instructions are converted to different opcodes inside CPU).
Part that makes C++ “hard” is general assumption it makes about users - language is and always was designed with assumption that average user is CompSci expert, with proper theoretical background. This means both a lot of trust in user, and giving enough freedom to settle a lot of what other languages handle by design as just conventions.
Obvious downside: C++ is atrocious language to learn programming with, and comparably bad as “just get things done” tool with enough guardrails to avoid major incidents when cooperating. Still, recommendations and practices like MISRA exist, and they do what they’re supposed to - being conventions to ensure correctness.
Still, proper good C++ course should probably start with good chunk of math (at least enough to internalize proofs and transitive properties) and compiler theory before even touching code. Potentially a problem, but hey - average compsci grad should know all that already, no?
No that's the reason why C is hard. C++ is just a complex language full of all kind of shit that may or may not make sense that you really need to know regardless
C/C++ is comp sci wrapped in words and convenient shortcuts. Assembly is shorter words, without shortcuts. Machine code is no words. You become one with the concepts. You channel your inner registers. You become a Nostradamus for branches. Your blood starts flowing though the kernel space. You feel every page fault in your nerves.
Fair. I spent several years trying to learn "programming" by reading books about programming in C++ and other languages. Never got anywhere until I started to look at it in a different way. Learn computer science then use programming to solve problems. That being said, C++ was still hard to learn and I haven't used it in years. I wouldn't say that's because other languages "cheat". Most people don't want to learn how to build an engine from the ground up just to drive a car.
Nah bro, it’s also bot true. CS is hard, it c++ is freaking 3 languages at once with contradicting philosophy even - c with classes, macroses (yep, they still exist) and templates. This complexity is language evolution legacy, not derived directly from CS complexity.
C++ is just very big. It's like exploring a massive maze at first, but if you spend a while exploring you get used to what's going on. There's less abstraction so you end up going down long rabit holes researching very specific things about the language that isn't intuitive.
Especially for high performance programs, learning the details of memory management and optimization is it's own journey in itself.
What a cope. You will never know C++ in its totality because it's overengineered, it will always be harder than others, the standard is only being expanded and not always most elegantly
I had a service crashing repeatedly in prod once because a coworker initialized a variable on the stack, within a block, and set a singleton pointer to it.
Every single unit test, integration test, manual dev test, and QA test passed with flying colors.
The service couldn’t stay live for more than a couple days before crashing.
It took FOREVER to find this bug, because compiler optimizations in our prod build made finding the culprit damn near impossible.
I only found the problem in any reasonable time because I roughly knew the 2 week window when the change was probably introduced, and eventually assumed that the non-C++ developer was probably the one that made the mistake, and assumed it would be a change reviewed by this Java developer on the team… so I browsed through their changes over that 2 week interval and immediately found the bug.
C++ is cheating. Even modern assemblers with math-libraries, automatically unrolling for-loops, named constants and variables and other preprocessor helper-macros are cheating!
its honestly amazing to me how many programmers dont understand how variable types actually work, and how the cpu does math with variable types. Its bad. There are a lot of programmers missing these basic building blocks, and part of the problem is how high level languages hide all that from you.
Yep, C is mega outdated in the feature-poor direction and C++ is a basket case of crazy additions trying to add modern features to a language that wasn't really designed for them
Whether you choose Rust or Zig or Nim or whatever else, the world needs to move past C++
Whether we’re talking about STL or not, it’s crazy wrong to consider something like this an example of the “design philosophy” of the language as a whole.
Yep, I'm developing a video game using C#, I'm sure those abstracted concepts could be useful, but getting the game done somewhat quickly is more important.
I started building CPUs from logic gates before I really understood programming. I had a terrible time programming in machine code, as I didn't really understand how to use abstraction to my advantage at the time. Also I had counterfeit eeproms that didn't support the parallel byte at a time mode I was trying to use and ending up failing to have any computer running the basic OS I designed, and then I ran out of time to spend on it. I had several computers that did run from ram if you programmed with a dip switch.
304
u/Mateusz3010 Aug 07 '26
That's why I only code in Assembly
294
u/citrusraspberry Aug 07 '26
The main thing I disagree with is "cheating". There is no "cheating". It's abstraction to offload some of the work of the dev into the computer. It comes at a cost of course, but it's not "cheating".
25
u/TOGoS Aug 07 '26
C++ is full of footguns because of its long history. Even experienced programmers will accidentally use after free or fail to declare their virtual destructors just right and spend days debugging.
Rust shows that you can have just as much power with more safety if you design a new language from scratch (if you really need to do pointer arithmetic that the compiler can't verify, you can always make that part unsafe; at least the rest of the program isn't!)
20
u/Simpicity Aug 07 '26
C++'s difficulty comes from entirely self inflicted wounds.
7
u/DaveAstator2020 Aug 07 '26
you obviously forgot to take your T&&
23
u/comrade_donkey Aug 07 '26 edited Aug 07 '26
This has to be ragebait.
C++ is hard enough to read that it requires disambiguating an O(n³)-constructed Tomita GLR parse forest by most-vex to even build a deterministic CST.
C++ is vast enough that no single one of its own committee member knows all of it.
C++ is so big that organizations only approve strict subsets of it for their own use.
And that's only scratching the surface. If you truly understand any meaningful slice of C++, you'd never say C++ isn't hard.
It's objectively hard. In more ways than one.
6
u/tottasanorotta Aug 07 '26
I'd say that a programming language is a trade-off. It's not that other languages cheat or that C++ is somehow better or worse, it's that they all try to be good at different things.
5
u/MadSpacePig Aug 07 '26
Using a flint and steel isn't hard, starting a fire is, matches cheat.
See how dumb that sounds?
13
u/i_knooooooow Aug 07 '26
Nah it is in fact cpp
Wtf do you mean *&foo? The deref of an adress? Thats just foo!
C is simple cpp is just bloat
22
u/Sienile Aug 07 '26
That's not a hard pill, that's common knowledge.
11
u/Pares_Marchant Aug 07 '26
C++ Isn't hard. It's gross.
In fact, it's funny that you call "other languages" cheats, when C++ is basically a huge bloat of cheats on top of C (Isn't it called "C with Cheats"?). And worse, a huge legacy of layers on top of layers of contradictory cheats.
As Linus once wrote:
```
C++ is a horrible language. It's made more horrible by the fact that a lot of substandard programmers use it, to the point where it's much much easier to generate total and utter crap with it. Quite frankly, even if the choice of C were to do nothing but keep the C++ programmers out, that in itself would be a huge reason to use C.
[...]
In other words, the only way to do good, efficient, and system-level and portable C++ ends up to limit yourself to all the things that are basically available in C. And limiting your project to C means that people don't screw that up, and also means that you get a lot of programmers that do actually understand low-level issues and don't screw things up with any idiotic "object model" crap.
```
4
u/AshtonVoid Aug 07 '26
C++ is like English. Both are hot messes that feel like they're easy and you know and love if it's all you learned during your formative years. If you didn't, you recognize how hard and what a pain it is compared to your preferred language.
4
u/recursion_is_love Aug 08 '26
C++ is for C programmer who don't want to learn Java.
I better use Java for OO and C for structured programming.
Rust kill them all.
3
u/MarkEE93 Aug 07 '26
Computer Science isn’t hard, your ai model needs just one more data centre.
3
u/Clean_Hyena7172 Aug 07 '26
😂
3
u/Elluminated Aug 07 '26
Other languages don’t cheat - they optimize.
3
u/doc720 Aug 07 '26
3
u/JustRodriguezfan Aug 08 '26
that's why I use GDscript
2
u/somnamboola Aug 08 '26
I'll just leave it here
2
u/Material_Pea1820 Aug 08 '26
my language of choice is python written with ai.
5
u/Jeremi360 Aug 07 '26
I doesn't care,
C++/Rust are ugly, hard to read,
I much more prefer Python or C#
1
u/zoharel Aug 07 '26
Cheating is the whole point of every high-level language ever invented, except certain esoteric things and honestly it even applies to most of those. That's literally the point, and it's often a good thing.
1
u/jimmy_timmy_ Aug 07 '26
C++ is a set in computer science. Computer science is a set of being hard. Therefore, C++ is hard
1
u/Brilliant-Parsley69 Aug 07 '26
As I know, you could abstract in C like in every other language. if you haven't done that by today, I would assume that this is a your problem. ☝️🤓
1
u/Boltiten Aug 07 '26
It's harder to program when not cheating then? You do only arrive at the same point
1
u/thanosbananos Aug 07 '26
As far as I understood it coding in C++ is easy, mastering is hard, no? I got into C++ fairly easy but it doesn’t mean I know all the quirks of it
1
u/PriyanshuDeb Aug 07 '26
hmm... so you're saying C cheats?
/j (or not /j...)
1
u/pp_amorim Aug 07 '26
People still think just because a language is hard, so it's good? 😂
1
u/Weak_Cantaloupe597 Aug 07 '26
Bro it’s easy just paste that curl command and you will instantly get a todo app! /s
1
u/Dry-Willingness8845 Aug 07 '26
If Computer Science is hard, and one language requires it while the others don't, that language is indeed also hard.
Maybe you need to go back and relearn how inheritance works.
1
u/MaximumMeaning9728 Aug 07 '26
This is why I only code in LLM nowadays.
Seriously, this shit is all completely outdated.
1
u/Repulsive-Soft-4948 Aug 07 '26
Idk how to program, but I've made a bunch of my ideas come to life where I would otherwise still be thinking about ithem instead of using them right now. Def cool to me!
1
u/Vaelisra Aug 07 '26
Yeah, because as everyone knows the rules of computer science don't apply in high level languages.
1
u/dhnam_LegenDUST Aug 07 '26
How to cheat CS (without giving preimplmented library) anyway?
1
u/SelfDistinction Aug 07 '26
Constructing an object in a constructor is considered bad practice and is actively discouraged.
1
u/StephenRoylance Aug 07 '26
no, c++ is hard, because who can keep track of what all the different punctuation marks mean? I find C and rust vastly easier to read.
1
u/nwbrown Aug 07 '26
Abstracting over complex things isn't cheating, it's part of computer science.
1
u/Unknown_TheRedFoxo Aug 07 '26
what is to cheat? how does one language cheat over the other? like how would java cheat over C? or rust vs java which would cheat the most or at all? is cheating the new word for "abstracting concepts behind keywords recognized by a language's compiler"?
1
u/vaklam1 Aug 07 '26
I don't even get what this joke is trying to convey.
I'm gonna quit CS.
1
u/globohydrate Aug 07 '26
That’s why I only code in Claude
1
u/Moscato359 Aug 07 '26
C++ cheats by using a compiler
Every language cheats
1
u/LuckyPichu Aug 08 '26
I find C easier than C++ tbh. I feel like C++ lies to me with name mangling, implicit behavior, etc
Probably not a terribly unpopular opinion but C++ makes me sad because it feels bloated.
1
u/BellybuttonWorld Aug 08 '26
C++ syntax is needlessly cruel and perverse. We never should have crawled out of the C.
1
u/Proman4713 Aug 08 '26
Well C++'s syntax makes it more absurd and pretty much harder than plain C in my opinion, i understand it's a powerful language, but C++ isn't just hard in the name of computer science
1
u/Razzmatazz_Informal Aug 08 '26
You know it seems to me that most languages are someone's pet project... and then IF they blow up that someone generally stays important to the community and continues to drive a lot of the design and development... C++ has Bjarne but I would argue that C++ is much more committee driven than other languages.... Maybe the problem is that C++ ISN'T someone's strong opinion... its a mish mash of bits of a whole bunch of peoples strong opinions.
1
u/Mefron_Gautama Aug 08 '26
The hard part about C++ is actually the way you use it.
If you are going to use it like C++ is intended to be used, it's really kinda hard.
If you use it like a super C, the wrongest way as C++ devs call, it is kinda good.
1
u/Ignitetheinferno37 Aug 08 '26 edited Aug 08 '26
Saying using certain languages to code is cheating is simar to saying using bricks or steel bars to build something is cheating instead of using bamboo straws or something
1
u/Blazej_kb Aug 08 '26
Either I’m weird or people are just stupid, I don’t really like how c# handles classes and variables, and I prefer C++ over it. Only thing that makes me sometimes use C# is NuGet because packages work out of the box, while I often have hard time making vcpkg downloaded package work (most of the times it first word so I just abandon the project or do this in C#)
1
u/katoptronophile Aug 08 '26
Bot post.
1
u/Horror-Water5502 Aug 08 '26
C is easier than C++ and it dont cheat
1
u/tigran_kh Aug 08 '26
Is this what C++ programmers genuinely believe in 😭 you do realize, right, that you're not stuck with C++ forever? So why be stuck in denial?
1
u/Xtergo Aug 08 '26
I'm assume you aren't a very experienced C++ dev
1
u/La-ze Aug 08 '26
C is not hard, and C++ can good quality of life. But omfg the C++ is butchering it's STL something awful.
Also the developer experience really does suck with not even a standard compiler.
1
u/ohkendruid Aug 08 '26
To name one thing, the pre processor is a bad, confusing, and difficult way to do modules compared to an export/import system that most other languages use.
So in at least that one case, it's not computer science that is hard but C++ in particular.
1
u/Virgil_the_White Aug 08 '26
1
u/Librarian-Rare Aug 08 '26
By cheating you mean being better. It’s like saying that pro athletes “cheat” by training harder than you
1
u/willnx Aug 08 '26
vector<bool> has entered the chat...
1
u/Lou_Papas Aug 08 '26
I’d agree if you said C, but you had to pick the low level equivalent of Python
1
u/zamroni777 Aug 08 '26
https://bidenwhitehouse.archives.gov/wp-content/uploads/2024/02/Final-ONCD-Technical-Report.pdf
no longer recommended by us gov due to memory safety issues
1
u/MooseBoys Aug 08 '26
wtf are you talking about? If anything, c++ is antagonistic to "computer science" because it exposes a ton of the details that you generally gloss over in computer science.
1
u/AlexMTBDude Aug 08 '26
*"Other languages make life easy for the programmer, C++ makes life easy for the CPU"
1
u/Fart_Tounge_5609 Aug 08 '26
This is true of C. C++ is unnecessary complication on top of it.
1
u/No_Cartographer_6577 Aug 08 '26
Let's be real. Most coding languages are easy to grasp. Its large code bases that are hard
1
u/I_am1221325 Aug 08 '26
It's both. C++ is poorly designed and doing a lot of stuff in it is a nightmare, that's why rust became so popular.
1
u/yota-code Aug 08 '26
I mean, at least in C, I can understand what I'm doing. C++ stacks so many layers of shitty new norms that a single problem can be solved in a miriad of different but quite the same syntactic sugar. So much that last time I asked a senior developper a clarification on the deeper meaning of a nuance of properties initialization the answer was : do like this, you have to do it like this...
1
u/-Ambriae- Aug 08 '26
Well, there is something to be said about C++’s language designs…
Stuff like:
- functions implicitly decaying to pointers and lambdas don’t
- the templating engine not performing any verification of the veracity of the generated code
- the error messages
- the standard library’s implementation and its documentation
- the mix of C++ and C standard libraries
- move semantics being finicky
- 80% of the APIs being outdated, (I might be exaggerating) without it being clear which is which
I could go on… many other systems level programming languages are far simpler, whilst still being able to output code of the same performance, so this feels a little bit like copium
1
u/Less_Butterfly_2343 Aug 08 '26
honestly, c++ isn't as bad as people make it out to be. still, it brings a lot of footguns that make it not that nice to use. whenever I write c++ I usually end up just writing c code because I find that easier, and at that point why wouldn't I just write it in c in the first place?
I do know someone who is really good at c++ and will actually use a lot it for his embedded projects, but even he says for most projects it just doesn't make sense.
I also think that saying some languages "cheat" is outright wrong. just because someone else wrote an abstraction that doesn't make that abstraction a cheat. otherwise you would have to at the very least write binary code on bare metal, because asm is already a form of abstraction, and so are things like syscalls which your os gives you access to.
1
u/rudxDe Aug 08 '26
C is not hard. C++ has a lot of complex bloat. C is the pure CS language.
1
u/anto2554 Aug 08 '26
Computer science? As in the field of mathematics? Most C++ isn't hard because computer science is hard, most C++ is weird business logic in codebases older than you are
1
u/Mr_QQ-10 Aug 08 '26
It does not.
If you consider abstraction cheating then C++ is also cheating.
C++ is not hard because it is "not cheating" it is hard because they got C and added too much stuff in improper ways.
The actual "CS" lang would be assembly, or C, not C++.
C++ also has much much better alterntives, golang, C#, rust, etc
This is coming from a C++ dev, The lang you choose is your choice and preference, and I chose C++, but C++ is not a good lang, it's frankly a bad lang just that I make bad choices but for low-level C-like langs C++ is the only mainstream choice.
1
u/Luzzgar Aug 08 '26
Abstraction is a corner stone of computer science. If you don't need the fine control that low level languages gives you, you chose the wrong language.
1
u/s0litar1us Aug 08 '26
C++ is an overly commplex pile of random ideas that just keeps growing, and to write C++ in a sane way you essentially need to treat it as C but with a few niceties, like operator overloading (for math), and function overloading (though that is also its own can of worms).
Also, this madness makes it hard to work with -- way harder than it has to be. Pretending otherwise is just a coping mechanism.
1
u/Zachattackrandom Aug 08 '26
Eh C++ is more just a nasty language imo. If you want real hardware level use C, it's simpler and nicer to use. If you want an abstracted language but still low level use rust, actual mem checking and far better ecosystem. If you want portability use Kotlin, Java or Python for the VMs they use, etc. C++ just doesn't fit anywhere anymore with new languages imo.
1
u/AnythingEastern3964 Aug 08 '26
I’m actually an expert in coding computer science. I tried to learn c++ but I’d already began setting up my dotfiles for comp-sci language so it was basically easier to stick to programming in that…
1
u/FFS-IamNotABot Aug 08 '26
You should find out what Vint Cerf thinks of computer science.
1
u/need-not-worry Aug 08 '26
What's the hard computer science problem that forces C++ to have this kind of API?
Totally avoidable in other languages, but maybe because they cheated 🤔
1
u/No-Painting-3970 Aug 08 '26
Nah, c++ has 6 ways of doing the same, with 5 of them being a footgun. It has a terrible philosophy because it tries to add modern abstractions on a language that clearly should not support them, and that creates pitfalls that cannot be removed due to compatibility
1
u/patrlim1 Aug 08 '26
C++ isn't hard, it's poorly designed and tedious to use.
1
u/PollutionLopsided787 Aug 08 '26
C is easier than c++
1
u/Shiv-K-M Aug 08 '26
C++ is a gun with 2 barrels one in front another one opposite to it 😭
1
u/Impact_International Aug 08 '26
Basic C++ is not hard, its a common misconception and stereotype that people developed throughout its lifespan, what hard are the 40+ years of backwards compatibility with C, With millions of edge cases and multiple programming paradigms that a normal person will probably never touch in its entire lifetime
1
u/Gecons Aug 08 '26
other languages aren't cheating, they're just different
also programming isn't computer science
1
u/razor_train Aug 08 '26
Hey now, LOLCODE isn't cheating.
1
u/EENewton Aug 08 '26
Is it hard, or just tedious?
1
u/crusoe Aug 08 '26
C++ is hard and if you think it isn't its you.
Quick name every piece of UB in C++. Name which compilers exploit UB for optimizations and how they differ.
1
u/teetaps Aug 08 '26
“Cheat” is a morally loaded word, but the meme is right.
Forcing rocks to count is hard. That’s why one team abstracted it so that all we have to do is write machine code.
But writing machine code is also hard. That’s why another team abstracted it so that we only have to write pre-compiled code.
But some pre-compiled code is still hard. That’s why another team abstracted that so that we can write C…
Etc etc, until you get to a modern desktop.
What the meme is also that I think is actually worth thinking about, is that C++ seems to be a very significant bottle neck in the abstraction chain. Like, it’s true, C++ is hard, because the things it needs to abstract are complicated.
But like, that’s a good thing? I don’t know why we put a bad moral judgment on it by calling it cheating
1
u/ieatpies Aug 08 '26
I think I'd agree more if you said C and not C++
1
u/keriefie Aug 08 '26
Actually dispise whenever i have to work with CPP, there are so many things that just annoy me, like headers for example.
I absolutely love working in Rust, I just wish more things were made in it so I can actually use my skills.
1
u/Haunted_Entity Aug 08 '26
Unless were all using abacus/mental artith/etc were all cheating. .
that is literally the entire point of computers.
1
u/AdorablSillyDisorder Aug 09 '26
Not cheating, abstractions happen in every language (even assembler instructions are converted to different opcodes inside CPU).
Part that makes C++ “hard” is general assumption it makes about users - language is and always was designed with assumption that average user is CompSci expert, with proper theoretical background. This means both a lot of trust in user, and giving enough freedom to settle a lot of what other languages handle by design as just conventions.
Obvious downside: C++ is atrocious language to learn programming with, and comparably bad as “just get things done” tool with enough guardrails to avoid major incidents when cooperating. Still, recommendations and practices like MISRA exist, and they do what they’re supposed to - being conventions to ensure correctness.
Still, proper good C++ course should probably start with good chunk of math (at least enough to internalize proofs and transitive properties) and compiler theory before even touching code. Potentially a problem, but hey - average compsci grad should know all that already, no?
1
u/Vincenzo__ Aug 09 '26
No that's the reason why C is hard. C++ is just a complex language full of all kind of shit that may or may not make sense that you really need to know regardless
1
u/neoqueto Aug 09 '26
C/C++ is comp sci wrapped in words and convenient shortcuts. Assembly is shorter words, without shortcuts. Machine code is no words. You become one with the concepts. You channel your inner registers. You become a Nostradamus for branches. Your blood starts flowing though the kernel space. You feel every page fault in your nerves.
1
u/GhostingProtocol Aug 09 '26
C++ is redicously abstracted... If anything you should have compared it to coding in binary
1
u/AeiEyeSpry Aug 09 '26
Fair. I spent several years trying to learn "programming" by reading books about programming in C++ and other languages. Never got anywhere until I started to look at it in a different way. Learn computer science then use programming to solve problems. That being said, C++ was still hard to learn and I haven't used it in years. I wouldn't say that's because other languages "cheat". Most people don't want to learn how to build an engine from the ground up just to drive a car.
1
u/U-might-know-me Aug 09 '26
Nah bro, it’s also bot true. CS is hard, it c++ is freaking 3 languages at once with contradicting philosophy even - c with classes, macroses (yep, they still exist) and templates. This complexity is language evolution legacy, not derived directly from CS complexity.
1
u/theacp127 Aug 09 '26
C++ is just very big. It's like exploring a massive maze at first, but if you spend a while exploring you get used to what's going on. There's less abstraction so you end up going down long rabit holes researching very specific things about the language that isn't intuitive.
Especially for high performance programs, learning the details of memory management and optimization is it's own journey in itself.
1
u/DescriptionThick8515 Aug 09 '26
I wish every Java developer had to learn memory management in C.
1
u/CursedPoetry Aug 09 '26
Programming isn’t hard lol, it’s understanding the concepts and the drive to push through…but that’s more about life
1
u/SweetAriadna Aug 09 '26
That would be true if it were talking about C, not C++
C++ is a mess
1
u/Omnikkar Aug 10 '26
C++ parsing is equivalent to the halting problem in general
1
u/Wise-Ad-4940 Aug 10 '26
With this approach you would need to write code in assembly. Or write the machine code by hand.
1
u/ndreuentertainment Aug 10 '26
Nahh
1
u/Intelligent_Health26 Aug 10 '26
at this point start coding by punching cards.
1
u/JanoGospodarSvega Aug 10 '26
What a cope. You will never know C++ in its totality because it's overengineered, it will always be harder than others, the standard is only being expanded and not always most elegantly
1
u/fixermark Aug 10 '26
... Wat?
1
u/SirThunderDump Aug 10 '26
I had a service crashing repeatedly in prod once because a coworker initialized a variable on the stack, within a block, and set a singleton pointer to it.
Every single unit test, integration test, manual dev test, and QA test passed with flying colors.
The service couldn’t stay live for more than a couple days before crashing.
It took FOREVER to find this bug, because compiler optimizations in our prod build made finding the culprit damn near impossible.
I only found the problem in any reasonable time because I roughly knew the 2 week window when the change was probably introduced, and eventually assumed that the non-C++ developer was probably the one that made the mistake, and assumed it would be a change reviewed by this Java developer on the team… so I browsed through their changes over that 2 week interval and immediately found the bug.
C++ is such a pain in the ass sometimes.
1
u/TraditionalNewt255 Aug 10 '26
Thats why i write the binary on paper
1
u/ewrt101_nz Aug 11 '26
Cpp is fine but the build pipeline for any cpp project that’s more than one file sucks ass so much.
I can’t think of anything I hate more than compiling c/cpp code
1
u/nevemlaci2 Aug 11 '26
C++ also cheats
1
u/UsualEgg563 Aug 11 '26
C++ is cheating. Even modern assemblers with math-libraries, automatically unrolling for-loops, named constants and variables and other preprocessor helper-macros are cheating!
1
u/Adorable-Strangerx Aug 11 '26
Computer science hard? Have you seen music theory?
1
u/Anon324Teller Aug 11 '26
This feels like something someone would say about C not C++
1
u/usr_pls Aug 11 '26
There's 32 reserved words in C
c++ increases that to 95 (depending on version and compiler)
english has over nine hundred thousand words so about 0.0001% of english is the c++ programming language
easy peasy!
1
u/Acrobatic-Most-1923 Aug 13 '26
C is better than c++, you don't need object orientes programming when you have function pointers
1
u/Temporary-Repeat8366 Aug 13 '26
Used to find C++ difficult but now I can code in my brain
1
u/Lollodoro Aug 14 '26
It would have made sense with any system programming language other than cpp
1
u/gameplayer55055 Aug 07 '26
C++ isn't hard but Microsoft Windows is
1
u/HalifaxRoad Aug 07 '26
its honestly amazing to me how many programmers dont understand how variable types actually work, and how the cpu does math with variable types. Its bad. There are a lot of programmers missing these basic building blocks, and part of the problem is how high level languages hide all that from you.
Be mad and get good I dont care.
85
u/[deleted] Aug 07 '26
[removed] — view removed comment
21
u/[deleted] Aug 07 '26
[removed] — view removed comment