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 19 '26
yeah, I know the difference, but I just like the play on words. Like how a knife is "functional" as it "serves a function", so is it in my mind with "functional programming": you write commands and procedures to serve a singular function (change some data, save it to disk, send it across the internet, change the color of an object on screen, etc). But I know that in computer science they mean something else.
I just prefer logical steps instead of "magic" stuff that happens due to structure. I actually like wikipedia's example on imperative vs. functional: https://en.wikipedia.org/wiki/Functional_programming#Imperative_vs._functional_programming
so I can see how somebody who is not a programmer will like the functional one more since it reads like a human thinks: "ok, so we we take our list of numbers, then filter them by whether they are even or odd, then multiple each of those by 10, then sum them". But this is too high-level for my taste as you don't know exactly what's happening each step of the way. While this is fine for a simple example like this, in real life when we need good performance and scalability, knowing exactly how each of thse steps of the process work is CRITICAL. And if, for example, we need to modify one of the steps in this process, it becomes a Herculean task as each function is built on top of another function in another class and implementing another interface and so you really have no other choice than to go to imperative programming to get your custom code to run. Either that or stick with the hierarchical logic of functional programming and extend the logic tree to create a superset of commands that now can be controlled via a flag or maybe it's a whole new implementation or something. It drives me absolutely insane when I know EXACTLY what needs to be done but have to fight with some kind of hierarchical abstraction to get it to do what I want. It's like knowing that the fish has to go into the frying pan but all you have are ways to put it in the oven. The burner is right there, as is the pan, so just use them. But instead you have to define a new class that can either be a stovetop or an oven and then a baking tray or a pan, and then make sure they all have implementations of the cook() and check_doneness() functions that are inherently way different but because we need this hierarchy, we must shoehorn our log into this structure. And god forbid we want to bake the fish in the oven and finish in the pan for crispiness - now we have to abstract the cooking process to include a "Listable" interface or something with each node being a step in the process that can be be potentialy infinite even though our use case is simply one or the other.
Anyway, this is giving me anxiety. Time to go back to "functional" (imperative ;-) ) programming in C. Have a nice day!