|
|
|
Ask HN: Modern C++ Workflow?
|
|
6 points
by DistrictFun7572
1473 days ago
|
|
Hello HN. I'm about to take on a C++ project and have never programmed in C++ before (usually use Java/TypesScript/Python). Could someone with more experience please a give brief overview of a modern and "best practices" approach for developing products based on C++? Things I'd find interesting to know: 1. What does modern C++ look like? Any good books on the topic? 2. Are Makefiles still being used? Or is it more common to use something like Bazel? 3. Package managers? 4. Linters? Formatters? 5. IDEs people use? VSCode? 6. DevOps workflow? Any best practices for integrating everything into a CI/CD pipeline? 7. Testing frameworks / approaches? Thank you! |
|
2. You could use Bazel. Also look into CMake, it's an industry standard, so to speak, and will let you generate build files for almost any kind of build system including Makefiles.
3. I don't use any but some people have success with vcpkg.
4. Clangd is a good choice.
5. A quick one that works is VSCode + clangd and CMake extensions. Clangd will let you format, lint and do some basic static code analysis. Installing clangd extension will install clangd automatically. Or, if you are on Windows, "Visual Studio: Community edition" is even easier to start with right away.