Any useful sites/courses/projects to learn C++ as someone who is very proficient in Python?
Im thinking about being a big boy programmer
Any useful sites/courses/projects to learn C++ as someone who is very proficient in Python?
Im thinking about being a big boy programmer
learncpp.com
Though it's not great for someone entirely new to C++, cppreference.com is my go-to reference while I'm developing.
IMO, the best way to learn is to work on a project.
nostr:nprofile1qqsvuxle4kfpvn0jy7lu4v5pxxfuvr45qgwnt06th0r05fx9vrg086gpzpmhxue69uhkummnw3ezuamfdejsz9rhwden5te0wfjkccte9ehx7um5wghxyecpzfmhxue69uhk7enxvd5xz6tw9ec82cs2mddwx, nostr:nprofile1qqsqxefne258ydmfgm2wfl02fsdqgs0d5wx29kweg9amxcqxew4t7kqpzamhxue69uhhyetvv9ujuurjd9kkzmpwdejhgtcppemhxue69uhkummn9ekx7mp0qy2hwumn8ghj7mn0wd68ytn00p68ytnyv4mz7tjlpwg, and I have started working on a C++ SDK for Nostr; you're welcome to contribute, if you want to practice your skills that way!
Are you interested in systems programming or application programming? I assume application.
I personally suggest starting with C then quickly moving to C++. C++ is a superset of C with fun fancy features. When in doubt you can always fall back to functional/procedural programming if needed. Others will disagree because they think C is just fundamentally broken or unsafe (propaganda imo) and you may pickup bad patterns. Yeah there is a lot of sloppy C in examples out there for sure. Deeply understand your fundamentals, don't skip anything in the syntax and you'll be alright. Learn "defensive programming" and you're unlikely to make an unrecoverable mistake. Mistakes will happen, you will cause a buffer overflow now and then, probably a segfault and a stack smash, but youll get better and there are tons of tools to help with that.
You can trust your compiler but don't rely on it. I test myself on every line/edit catching errors before I try to compile it, trying not to become reliant on the compiler like they try to teach you in CS school. In CE school bugs can be far more time consuming on hardware.
As Michael mentioned, were working on a C++ development kit for nostr, and I'm working on a cryptography library called noscrypt.
Start with C. Easier syntax, closer to Python than C++, and it could help as a stepping stone towards C++.
Start by learning the syntax, how to compile C code, the first principles. And then take some Python code and reimplement it in C.
When you’ve mastered the basics in C, move on the C++.