Why does everyone here seem to dislike C++?
1–10 of 46 posts
Re: Why does everyone here seem to dislike C++?
#2Re: Why does everyone here seem to dislike C++?
#3I highly recommend these two short books:
https://www.amazon.com/Treading-Python-Beginning-Programming...
http://www.amazon.com/Treading-Python-2-Intermediate/dp/1490...
Re: Why does everyone here seem to dislike C++?
#4In theory, C++ can be as fast as C. (officially lacking the "restrict" keyword, but otherwise fine) In practice, C++ is much much slower. The theory is no help. C++ code runs slow. People layer on the abstractions.
Suggested next language:
Well, although Rust and Ada look nice, I'll tell you what I use at work. I use C99 and lots of assembly. I do assembly for x86 (16-bit, 32-bit, 64-bit), PowerPC, ARM (original, thumb, thumb2, aarch64), ColdFire, MIPS, and many stranger things. Oh, don't forget the build system tools: bash, sed, GNU make, awk
Re: Why does everyone here seem to dislike C++?
#5Re: Why does everyone here seem to dislike C++?
#6Expressing yourself in languages like Python is much easier than C++. You'll be able to concentrate more on solving the problem at hand than dealing with the language. I highly recommend these two short books: https://www.amazon.com/Treading-Python-Beginning-Programming... http://www.amazon.com/Treading-Python-2-Intermediate/dp/1490...
The minimum here should be C with the warnings enabled. Things like Ada and Rust may improve upon this.
Also, I think performance issues can count as "dealing with the language". Python is roughly 100x slower, making it like all your computers are a dozen years older. It's like having a 2004 computer in 2016.
Re: Why does everyone here seem to dislike C++?
#7Go with what you like.
Re: Why does everyone here seem to dislike C++?
#8For an EE, C++ is a pretty good language, in that it lets you get very close to the hardware. Most of the people who criticize it don't work in that world.
I dislike C++ because it's just so unbelievably complicated and hard to learn. There's a special place in hell for the abominations C++ calls error messages. Clang helps, but not enough unfortunately.
Re: Why does everyone here seem to dislike C++?
#9If you have a brain that can handle multiple levels of OO in c++ across multiple threads; keeping multupltformness in mind and crunching out optimized code with all that you learned in your data structure classes, stick with C++.
The pay is way better (like three times more here in Toronto) than anything web or app related, the working hours are more sane, and stuff are usually way more planned in advance.
You'll have way better life sticking to the shops that need your engineering coding skills.
Think carefully and be ready to wait out few months for your first job when you graduate. Charging jobs after is hard. App/web/testing shops will take a decent low level engineer any day of the week. A financial/embedded/engineering company will think long and hard before they hire a web dev for a backend/driver team dev.
In this proffesion you are beign paid to think. Why not approach your career choices similarly?
'everybody making fun of c++' is a non issue. You may as well worry about what wasn't cool in kindergarten. C++ was and is an industry standard.
On a unrelated note: this post will reflect the HN community by their impulsive up/down voting it ;)