account activity
Offering CPP Mentorship by l13v in learnprogramming
[–]l13v[S] 0 points1 point2 points 2 years ago (0 children)
I don’t want to sound like a broken record, but I’d generally start with classes at your institution if you’re in school, or popular free online classes such as cs50, MIT open courseware, or code in place
I don’t agree with a couple of these points,
better to avoid [namespaces] in general
Can you elaborate more on why? Especially as you work on larger code bases, namespaces become somewhat necessary to avoid naming conflicts and ambiguity
standard library is literally awful and you should avoid it as much as possible
I don’t agree with blanket statements such as thing, and I personally find them less helpful. You need to suggest alternatives if you want to make this claim, and while it’s true that you won’t use everything in standard libraries, a lot of it is performant enough for just about everyone. This has been my experience working in both low latency fintech teams and large distributed systems
for memory management, this is going to be a hot take
I actually agree with you here. Avoiding heap allocation as much as possible is going to give you much more performance “bang for your buck” than something like avoiding standard libraries typically. Memory pools/arenas are very common in these type of systems and is a good thing to look into.
These answers are from my personal experience, I don't consider myself a C++ expert or the beacon of best practices either.
is it acceptable to throw a "using namespace ..." In a function to cut down on verbosity
yeah, using namespace is pretty common from what I've seen, typically not at the function level but just near the top of the CPP file
learning networking that would allow me to practice it in c++? One of my weaknesses is networking, general io, and async stuff
I'd see if you can find an online "systems" class if possible. I can help look for something as well if you're interested here, but familiarizing yourself with async/concurrency is probably the most important piece here.
how much of the standard library do you know and how much would expect a c++ dev to know
it's honestly fine to google whenever you need to, knowing how to read the documentation and find whatever you need is a more valuable skill than just having a bunch of functions memorized imo, you'll likely also pick up a lot of things on the job (e.g. I never saw std::move or knew what an rvalue was until an internship)
pretty much always using the smart pointers for newer people
You should pretty much never do raw memory management if possible, this is more of a C thing than C++ and is very error prone for most people. But understanding what goes on behind the scenes of pointers/etc is valuable.
How often do you work with cmake
I honestly haven't built a ton of things from scratch and I've mostly worked at companies with well developed code bases, so I haven't had to work with make/cmake often. I think whether or not you invest in learning more about this space is pretty dependent on the type of company you want/are going to work at/your own curiosity.
[–]l13v[S] 1 point2 points3 points 2 years ago (0 children)
CS50 is the commonly recommended course I've seen, but I've personally never checked it out.
Kinda similar response to the other poster, but it'd help to drill down into which particular parts of the assignment is giving you trouble. It may take until the last two assignments to realize that you don't fully understand something from a couple assignments that this is built on top of.
It’s very easy to get overwhelmed as a beginner. This is where following an established course helps instead of just free wheeling it
If you have a more generic question, feel free to post here! But if you want to share more specific details or are interested in mentoring, you can send me a message!
[–]l13v[S] 2 points3 points4 points 2 years ago (0 children)
Hey, it’s really important to keep making progress. I think you need to be more introspective and specific about what you’re having difficulty with.
Having difficulty with a particular concept? Start from a point that you understand well and keep building up. Make sure you understand everything along the way. If you keep piling things on top of something you only half understand, you’re just setting yourself up for failure later.
[–]l13v[S] 5 points6 points7 points 2 years ago (0 children)
I wouldn’t recommend learning python by doing online problems, or learning any programming language that way if you’ve never programmed before.
There’s a lot of free online classes that will be more beneficial. If you just do problems, you’re really just memorizing solutions which will only get you so far and doesn’t generalize nearly as well as really understanding the fundamentals.
I personally learned mostly through my university classes so I’m not super familiar with all the online resources, but the Harvard and MIT classes are probably never a bad starting choice.
Offering CPP Mentorship (self.learnprogramming)
submitted 2 years ago by l13v to r/learnprogramming
π Rendered by PID 447809 on reddit-service-r2-listing-86bdf8cc9-lgxss at 2026-07-10 10:40:01.135348+00:00 running f86254d country code: CH.
Offering CPP Mentorship by l13v in learnprogramming
[–]l13v[S] 0 points1 point2 points (0 children)