News for hackers. Stuff that matters.
Re:LearnCPP: Website devoted to teaching you how to program ... by scoutt on Tuesday January 03, 2023 @08:18AM (#34230944)
> I think a lot of “modern” languages get this right by including these things from the start. The experience is so much better.

I don't know how others did it, but I learned with MS Visual C++ in 1996.

File -> New Project -> press F7 to compile, F5 to debug. That's it. ~30 years ago they got it right. I even remember my Windows CE experience ~15 years ago that allowed to build and debug the entire OS from an IDE.

Now you have to open your command line and write like it's 1985.

Today VS is free (Visual Studio Express?), with analyzers, tests, vcpkg, etc. There is also Qt and other similar tools that I use for embedded like Keil, IAR, Eclipse derivates, etc.

C++ != Makefiles. I don't write Makefiles or fiddle with the build system since... ever?. Except for some AOSP stuff that still uses them or perhaps editing some linker script for embedded.

PS: that said, "experience" is relative. Having to use the command line in general but mostly for learning is terrible.

Re:LearnCPP: Website devoted to teaching you how to program ... by 13of40 on Tuesday January 03, 2023 @10:00AM (#34232181)
I've always thought it was a little bit pathological that we require application developers to also be experts in build and deployment. The parts that can't be automated away should be handled by (highly paid) specialists so when your dev is deciding whether to make a change they don't have to factor in how it gets from their box to production.
Re:LearnCPP: Website devoted to teaching you how to program ... by meindnoch on Tuesday January 03, 2023 @10:03AM (#34232219)
And then when something goes wrong, you’ll be staring at an opaque .vcproj file without any idea of what’s going on under the hood and how to fix it.
Re:LearnCPP: Website devoted to teaching you how to program ... by pjmlp on Tuesday January 03, 2023 @10:10AM (#34232307)
For many kinds of projects, good luck doing it the makefile way (CMake, or whatever one fancies).

Yak shaving learning how to use all the compiler and linker flags, and library setup before writing any line of code.

Debugging vcproj files is as easy as going down the boilerplate generated by shell scripts and build generators.

Re:LearnCPP: Website devoted to teaching you how to program ... by meindnoch on Tuesday January 03, 2023 @10:22AM (#34232485)
But at least I can see the commands being ran by `make` and work backwards from there. In VisualStudio you have to click around in a bunch of “Properties” menus (which may or may not have search boxes…) and eventually you may find what you’re looking for.
Re:LearnCPP: Website devoted to teaching you how to program ... by pjmlp on Tuesday January 03, 2023 @10:28AM (#34232602)
Just like with make, you run msbuild with verbosity flags.
Re:LearnCPP: Website devoted to teaching you how to program ... by metaltyphoon on Tuesday January 03, 2023 @10:59AM (#34233102)
msbuildlog.com