r/C_Programming • u/Ok_Reserve996 • Oct 18 '26
C limitations
Hi all,
I am currently learning c++. Its okay. Not sexy but also not as bad as some say.
The reason I am learning c++ is that I have read that C has limitations as soon as a project gets more complicated. For example, if you make a scientific calculator with many features like graphs etc.
Trading engines/tools are also not recommended to programm in C.
Since I have not learned C and have only read from some old forum posts etc, I cannot confirm/deny these facts.
I am aware that "everything" is possible and that C++ comes with QoL improvements especially with Classes. But I assume that doesn't mean that someone has to use C only for kernel work. Embedded is also possible with C++ right?
I would appreciate your thoughts and opinions.
The goal of this post is to understand how and if C could fit me more with my goals and what real advantages or disadvantages C has.
View all comments
Show parent comment
2
u/LordRybec Oct 19 '26
Ah, I see. Then maybe just make it more clear that it's a joke, so that people don't get confused!
As far as the rest goes, I generally agree. I really like Haskell, but I never use it, and part of the reason is not knowing what is going on under the hood. Most of my programming is low level stuff. Either it's full on microcontrollers, or I'm going super low level number manipulation. This is really easy to write and to follow in C. I can do complex pointer manipulation stuff to work with 8 or 16 or 32 bit partitions of 64 or 128 bit values, and it's still fairly easy to see what is happening. I don't even know if I can do stuff like that in Haskell. And in microcontroller programming, things like order of operations are really important, and I spend a lot of time manipulating registers and such. Order of operations isn't guaranteed in functional languages. I actually think I can do register related memory accesses in Haskell, with unsafe memory accesses, but it's basically imperative at that point anyway, and Haskell does not make that stuff easy. I wrote an Asteroid clone in Haskell, for my undergrad senior project (my idea, as I figured if I could do a real-time game in Haskell, I could do pretty much anything), and it actually wasn't too bad, but it certainly wasn't even remotely well optimized. I'm not sure I'd do a game in Haskell again, due to the optimization thing, but what I do for my daily drive/job just doesn't work in functional at all. Functional is like asking the system for the outcome you want, and then the compiler does its best to do it. That only works if the compiler understands the underlying hardware well enough to know how to achieve that outcome. With imperative you are giving it the steps you think will achieve what you want. That means bugs are more likely, but it also means you have 100% of the power available within the system/OS you are coding for.
So as much as I like functional, only imperative (and especially low level like C) can do what I need the way I need.