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
1
u/tastygames_official Oct 18 '26
it's perhaps complicated to explain to a beginner, but basically a typical C functional programming snippet might look like this:
So you just chug along and do one thing after the other and jump into functions whenever they are needed. But for OOP (which C++ tends to be, even though you technically don't have to write OOP) is more like this:
so you can kinda tell what's going on, but there's a lot of boilerplate stuff to make it all work within common modern paradigms and design patterns, so it just ends up making the code really hard to read. Notice how many extra functions you have to call and variables you have to create just to save yourself from writing out the logic by hand. The whole idea with these OOP design patterns is to have the structure do all the work so you only ever just pass around some configuration settings and everything just "magically" gets done. But the worst part is when you look into one of the functions to see what's actually happening it just looks like this:
so it's a neverending chase to track down where the code is actually being executed as every function is written small and only ever does one thing so it can be unit-tested but this means you never have a full understanding of what's going on without looking through tens (if not hundreds) of functions and files just to track down what's going on.
Maybe I'm biased, but when I entered into software development as a career (after maybe like 10 years of doing it "just for fun"), I quickly was forced into doing everything the OOP way for a lot of stuff and it just really got to me over the years (decades, really), so I'm so super happy to be back in functional programming land where everything is right there in one place and the logic follows top to bottom rathe than having to look through an entire project just to find its entry point.