Knowing C (or C++) is a useful skill to have. I'm glad that it is still being taught somewhere. It's not a language you can simply pick up one day and be a master in it over a weekend.
In my opinion, PHP is a better language to pick up for doing most day-to-day tasks. PHP is lightweight on system resources, is very fast (but not as fast as C), and runs on the command line (CLI) just fine. PHP is perhaps a better CLI language than web server language. It is written in C but also exposes many C-like functions to PHP userland. I keep a copy of the C source code to PHP handy at all times because knowing how a PHP function works behind the scenes is extremely useful. Although searching the source tree for the file that contains the code for a given function can take a couple of minutes. The PHP source code, while a little bit daunting with its use of C macros, is pretty readable as far as a major project written in C goes. I know a lot of people use Python for command-line tasks, but that's mostly because they don't realize PHP can do the same thing but better in every way that matters: Jumping between PHP and C feels more natural too and the world mostly runs on C/C++ anyway.
C and C++ have their place. These days, I'll drop down to C++ if I need to do a high-performance task that needs to run blazing fast or access low level system calls/APIs not available to higher level languages (scripting languages will only get you so far). Assembly language is also useful to learn for doing CPU-level optimizations and/or calling CPU-specific routines. But Assembly language does restrict you to a specific CPU architecture while C/C++ are designed to be a little bit more cross-architecture and cross-platform while still being extremely "close to the metal."
I'm sure someone will mention Rust. Rust offers a seatbelt to protect you from the windshield when you crash whereas C/C++ is for those who don't mind flying through the windshield now and then in exchange for total control of the vehicle. Using the right tool for the job is the best solution to any problem. If you only have a hammer, everything will look like a nail.
yeah, sadly, Rust is not taught in colleges like I am... I started in Python first then C language. It was really a stretch because C language was more complex than Python and I have a hard time adjusting it... My classmates and my schoolmates were very lucky to have a Python lesson in my major subjects....
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Knowing C (or C++) is a useful skill to have. I'm glad that it is still being taught somewhere. It's not a language you can simply pick up one day and be a master in it over a weekend.
In my opinion, PHP is a better language to pick up for doing most day-to-day tasks. PHP is lightweight on system resources, is very fast (but not as fast as C), and runs on the command line (CLI) just fine. PHP is perhaps a better CLI language than web server language. It is written in C but also exposes many C-like functions to PHP userland. I keep a copy of the C source code to PHP handy at all times because knowing how a PHP function works behind the scenes is extremely useful. Although searching the source tree for the file that contains the code for a given function can take a couple of minutes. The PHP source code, while a little bit daunting with its use of C macros, is pretty readable as far as a major project written in C goes. I know a lot of people use Python for command-line tasks, but that's mostly because they don't realize PHP can do the same thing but better in every way that matters: Jumping between PHP and C feels more natural too and the world mostly runs on C/C++ anyway.
C and C++ have their place. These days, I'll drop down to C++ if I need to do a high-performance task that needs to run blazing fast or access low level system calls/APIs not available to higher level languages (scripting languages will only get you so far). Assembly language is also useful to learn for doing CPU-level optimizations and/or calling CPU-specific routines. But Assembly language does restrict you to a specific CPU architecture while C/C++ are designed to be a little bit more cross-architecture and cross-platform while still being extremely "close to the metal."
I'm sure someone will mention Rust. Rust offers a seatbelt to protect you from the windshield when you crash whereas C/C++ is for those who don't mind flying through the windshield now and then in exchange for total control of the vehicle. Using the right tool for the job is the best solution to any problem. If you only have a hammer, everything will look like a nail.
yeah, sadly, Rust is not taught in colleges like I am... I started in Python first then C language. It was really a stretch because C language was more complex than Python and I have a hard time adjusting it... My classmates and my schoolmates were very lucky to have a Python lesson in my major subjects....