C versus C++

I also came from Python and I can recommend Bjarne Stroustrup’s: “A Tour of C++”
It’s a good introduction by the creator himself and teaches a lot of best practices.
Also if you wanna nerd on C++ I’d recommend the videos by Jason Turner.

For me the rant about C++ vs C is about the same as not using Python because “it’s slow”.
I mean, I value getting to a solution faster, making fewer stupid errors and writing less boilerplate code over a few milliseconds of execution time.
(And even that is not true for C++ as it will be compiled to almost the same as C).

There are definitely a lot of situations where you need to get the last bit of performance. That’s why Daisy or Teensy or any other embedded platform sprinkle in some C or even Assembler where its needed. Just like you would throw in a C/C++ extension in Python when things need to be faster.

1 Like