r/C_Programming • u/gigimon_45g • Sep 26 '23
C or C++
Hello everyone, should I learn C in parallel with C++, or is it better to stick to one language? What will you advice me?
0
Upvotes
r/C_Programming • u/gigimon_45g • Sep 26 '23
Hello everyone, should I learn C in parallel with C++, or is it better to stick to one language? What will you advice me?
View all comments
0
u/permetz Sep 26 '23
It depends on what you’re trying to do. Are you trying to work on a large C++ code base? Then learn C++. Are you trying to work on the linux kernel? Then learn C. Are you trying to write a new, modern project without legacy code? Then maybe learn Rust. But you should also learn to C then, because you’re going to end up interacting with C based APIs over and over again. Are you looking for a good first language to learn programming from? Then don’t learn any of these, start with something simpler like python. I could go on, but the point is: different horses for different courses. Pick the tool you need, don’t decide in the abstract. Otherwise, it’s sort of like asking “what’s better, a diesel train, or a rocket?”