Live data from Hacker News

LearnCPP: Website devoted to teaching you how to program in C++

learncpp.com

31–40 of 145 posts

Re: LearnCPP: Website devoted to teaching you how to program in C++

#31
I wish there was a good place to learn “the other parts” of C++, the build systems, using static analyzers, testing, dependency management, etc.

I’m thinking something like MIT’s “missing semester” course which teaches the boots on the ground part of software like how to use Git.

https://missing.csail.mit.edu/

Maybe these resources exist for C++ and I just never found them.

I think a lot of “modern” languages get this right by including these things from the start. The experience is so much better.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#33

The website sometimes fudges things with somewhat-incorrect statements. Maybe it's a minor issue, but I noticed that it says, for example: > When an initializer is provided after an equals sign, this is called copy > initialization. Copy initialization was inherited from the C language. > > int width = 5; // copy initialization of value 5 into variable width > That's not quite right. Consider the following program: #…

Copy initialization does not mean that the copy constructor is called. It is the correct term for an expression `T a = ...;`, which can often result in the copy constructor being called but does not have to. In this case it's mandatory copy elision from a prvalue, which leads to only one constructor being called.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#35
I used to be a C++ dev before moving to Java/Python. I'd like to go back but there seems to be few roles for people that aren't up to date experts. Is this the case? I'm not sure if the C++ shortage is like the COBOL shortage or a genuine active community that is growing.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#36
post #35

I used to be a C++ dev before moving to Java/Python. I'd like to go back but there seems to be few roles for people that aren't up to date experts. Is this the case? I'm not sure if the C++ shortage is like the COBOL shortage or a genuine active community that is growing.

There are jobs if you know where to look.

I regularly see ads searching for C++ developers. I'm in an automotive-heavy region in Northern Europe. C++ is widely used in HMIs, AD/ADAS, and general service development (diagnostic services, middleware). I also see the need of C++ developers in medtech and automation companies around here.

The ads request some experience, but in practice they are happy to recruit what they can find.

Some technologies change, so does C++, but not so long ago I landed a C++ gig for €80+/hr, although being more of a ANSI C90 expert, only used C++ occassionally (for test environments mostly), and being completely out of synch with the "latest" concepts of modern C++ and its tooling (as a reference, std::move was new to me; CMake was an annoying bigger sibling of Make). Customer was happy until that Chinese virus became a fad.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#38

I wish there was a good place to learn “the other parts” of C++, the build systems, using static analyzers, testing, dependency management, etc. I’m thinking something like MIT’s “missing semester” course which teaches the boots on the ground part of software like how to use Git. https://missing.csail.mit.edu/ Maybe these resources exist for C++ and I just never found them. I think a lot of “modern” languages get thi…

For the build system, I like: http://cliutils.gitlab.io/modern-cmake/

In addition to building, it will show how to add cppcheck and clang-tidy to your cmake files. That part is pretty easy. Just don't turn on every check in clang-tidy. Many of them are for specific code bases. Modernization checks are my favorite ones. Keeps you doing stuff the modern way.

My link has you doing dependency management with git submodules. That is a method still in use and even advocated for, but conan is often touted as the more modern way to do it. I've used it on some teams, and I'm undecided. I also have no good resources for it.

Re: LearnCPP: Website devoted to teaching you how to program in C++

#40

As a newbie into programming, I get pulled all the time by people to learn my first compiled language either in C++ or Rust. Every time I ask even the most innocent question in any forum it becomes a shitshow, and I can see, I'm late to the party here in HN.

I'm just a little further down the road than you are and the best course seems to be to learn a little C++ first because it will help inform why Rust works as it does. Then when you try Rust, if you hate it, you've still got C++.
Post reply on HN