What are must haves for absolute beginner programmer c++?
Posted by squifs@reddit | learnprogramming | View on Reddit | 26 comments
I’m currently trying to get started in c++, I figured before I actually start that I get some advice first. What are some must haves, should I get an account with reply, GitHub or something else. What are the best free sources to get involved? What’s the best way to be involved with the community to grow?
Rotsei@reddit
At the risk of downvotes.... the first thing to do is forget about C++ and learn Rust instead. Don't take my word for it. So many are moving codebases already, including the big guys. Unless you plan on maintaining legacy code it's may be a waste of time and effort.
Acceptable-Fig2884@reddit
I don't see any problem with starting with C++. It still gets a ton of usage and at the end of the day once you've learned one language it isn't hard to switch to another.
code_tutor@reddit
It's very hard to switch to Rust... it's a disgusting syntax language.
code_tutor@reddit
Rust is fucking trash and learning C++ makes it easier to learn Rust anyway
What big guys? Amazon says they're all in on Rust but then their SDK lags months or years behind. It's the same everywhere.
Rust still can't even make a game engine. Like 50 engine attempts and no games meme. How can it solve real problems. It can't.
Borrow checker is also overrated. It makes iteration impossible because all code is production code. Almost all errors are logic errors and garbage collected languages are a million times better, so the only reason to use Rust is if you want performance and don't trust C++. That's a low bar and if C++ improves even slightly as far as security then Rust is just dead. Meanwhile, actually good languages are in development that don't have dogshit syntax.
The only people who use Rust are tween furry dipshits and the occasional hurt dev who has buffer overflow PTSD.
Btw I wonder if anyone who likes Rust has even used it. I regret every project I did in Rust. I have an API that reliably breaks every time SSL updates and have to manually write AWS code. Tokio is running everything and anything not run by them has like a single maintainer or is a dead project, like the Actix guy using unsafe and just bailing. Error messages look like this shit https://bevy-cheatbook.github.io/pitfalls/into-system.html. A lot of libraries work around the safeties and just panic instead of forcing you to handle it. And it's impossible to write even simple elegant code without proc macros and lifetimes everywhere.
Not that C++ is great -- it's not. Just Rust is somehow worse than a dinosaur language and even slower to work with. It's a sidegrade at best. Anyone moving codebases will regret it. That's a fucking stupid idea.
Not to mention their community is a literal cult and some of the worst programmers. Oh and they don't write documentation. Not even a readme.
And yes, you should much prefer maintaining legacy code over this streaming pile.
dkopgerpgdolfg@reddit
You don't need to like Rust, but how about staying truthful, and taking your rant to a place where it belongs?
Most of your post is opinion and insults, logical fallacies, and/or provably wrong statements.
code_tutor@reddit
I gave examples of everything and you didn't give a single supporting argument, so you stfu about fallacies. Oh provably wrong? With no proof? Good job, debate team imposter.
Stay truthful? lol what a nutty thing to say. You're the only liar here, literally all projection. You think people lie because that's all you do.
You're one of those furry wackos too lmao. Your posts are literally all in the Rust sub. You people who never programmed in your life, all arguing with your feelings. Everything checks out. Does it make you feel special to program in Rust? Do you feel personally attacked if someone doesn't like the programming language that you made your identity? Are you wearing a Ferris shirt while sucking your thumb and crying into your crab pillow? Gtfo out of here with your cult crap. lol
KwyjiboTheGringo@reddit
Source? I see a lot of people claiming this to be the case, but is there any real number to back this claim? Surely the big guys who are backing Rust could put some kind of number on it? Even a loose number like "by 2030 we expect x percentage of active C++ codebases to have been transition" would be helpful.
Also unless you work on blockchain stuff, you aren't getting a Rust job without already knowing C++. The most likely corporate use of Rust is some company that already has a significant C++ codebase is building out a new tool or service with Rust. They usually want someone with C++ knowledge already so they can also work on the existing codebases.
Remarkable_Teach_649@reddit
Thanks for the advice, me and my team will stay with c++20
RedQueenNatalie@reddit
And rightfully so, OP wasn't asking for a recommendation for a language to learn or whats popular/needed in the job market.
squifs@reddit (OP)
I do see the risk there, out with the old in with the new.
squifs@reddit (OP)
Are there any online courses that are free that aren’t a waste of time as well?
1mmortalNPC@reddit
Codecademy offers free courses for most languages.
aqua_regis@reddit
And common to all of them is that they are notoriously low quality, hold too much hand, and barely scratch the surface. Anything beyond is way overpriced.
Sbsbg@reddit
Free, good and recommend by everyone in the C++ community:
https://www.learncpp.com/
Alas93@reddit
it's not C++ specifically, but the CS50 course on EDX from Harvard can be "audited" for free (meaning you take the full course but aren't awarded any kind of proof of completion, you can buy the certificate which you could then use on a resume or something). It's a fantastic course just about programming in general so if you're relatively new to programming it can be a great place to start.
as for must haves, I don't really do any C++ or anything, but I'd say don't put the cart before the horse. Learn the basics, make some simple programs, and work your way through problems.
squifs@reddit (OP)
I’ve never heard of that, I’m definitely gonna check it out.
mredding@reddit
I presume you're on Windows. Install Visual Studio - not Visual Studio: Code. The former is an IDE that comes bundled with a compiler and debugger, the latter is an editor with a plugin interface, more appropriate for intermediate to advanced developers.
The VS comes with a community or student license, so it's free for personal use. The IDE is as turn-key as C++ gets. You'll use the Wizard to configure a blank "Win32 Console Application". In the Solution Explorer window you'll right-click and add a source file, then you're off to the races.
Programming books are good. There are plenty of tutorials online. learncpp.com is recommended over in r/cpp_questions - go there to ask questions. cppreference.com is a reflection of the C++ standard itself, and kept pretty much up to date. There are even links to the spec final drafts, if you want to look at them; the final drafts are typically verbatim the formal draft you only buy if you're a corporation because you need definitive and legal authority on the subject.
Comprehensive_Mud803@reddit
A C++ compiler and a text editor is all you need to get started.
HashDefTrueFalse@reddit
Nothing except a device capable of running a compiler and a text editor!
Zeronullnilnought@reddit
You should watch at least 20 hours of tutorials before you write your first line, otherwise you may make mistakes which will cost you
/s, just start writing hello world and go through a tutorial. best way to get involved, find something you are interested in and reach out or just make your own shit and experiment.
code_tutor@reddit
you haven't even started and you're worried about this shit... you are procrastinating
squifs@reddit (OP)
Haha, I got the idea in class about a hour ago
silly_bet_3454@reddit
I would take a step back.... is this your first programming language? Why did you choose c++? What are you trying to learn or do?
Small_Dog_8699@reddit
Do you have a good therapist?
dkopgerpgdolfg@reddit
A understanding that there isn't one single tight C++ community, but applications in many fields, with many differences between them.
Independent thinking, recherching skills, no cargocultism, ...
Having a github account or not depends only on if you want to use it, it doesn't make you more/less C++ programmer.
Lyrick_@reddit
https://isocpp.org/get-started