Hacker News new | ask | show | jobs
by wirthjason 1208 days ago
C++ needs a “missing semester” around tooling. Most material I see focus on the core language but leave out setting up build systems, package management, clang tidy, testing etc.
2 comments

Yeah, the whole aspect of teaching C++ to beginners is fraught with tooling issues. That school is moving to Python (years after main campus switched)... but I'm not sure how I feel about that since I spent a lot of time talking about memory layout.

I ended up suggesting those who don't know how to setup a tool chain use VS Code. Not out of any particular affinity for it, but because of the good documentation covering Windows, Linux and macOS.

How do you do package management in C/C++?

I have only used pip, cargo, npm (well yarn and pnpm mostly) and composer.

Big off putting aspect of learning C/C++ is that I can’t grok how shared libraries work very well

A mix of actual package managers, distro packages and just cloning the library into a 3rd_party folder in your project