4 ms·
It's really quiet glorious how absurdly complicated the C++ development environment is. Want to build something? Well, you'll need a c compiler. Want multiple
by cogman10 4y ago
It's really quiet glorious how absurdly complicated the C++ development environment is. Want to build something? Well, you'll need a c compiler. Want multiple files in it? Well, you'll need a Makefile. Want a dependency? Well, now you have to decide if you want cmake, autotools, bazel, scons, meson, ninja, or to write your own bash script? Why? Who knows! Oh, does that install the dependency for you? No, don't be silly, those tools simply determine what your current platform has.
- 5e92cb50239222b 4y ago> does that install the dependency for you https://mesonbuild.com/Wrapdb-projects.html https://mesonbuild.com/Wrapdb-projects.html Writing new wraps involves essentially porting the target project to meson though, so it's far from trivial.
- throwaway894345 4y agoYeah, and the real tragedy is that these are all solved problems in other ecosystems. The C++ folks often don't know what they're missing out on. Which is too bad, because while C++-the-language gets a lot of flack, modern C++ is actually pretty cool (still a bit of a bear to figure out which features not to use). But the tooling is just insanely cumbersome (it's been a while since I've developed C++, but last I checked even getting decent editor support was absurdly hard and the various Vim/etc plugins that promised said support never worked out of the box).
- palata 4y agoI don't have problems with dependencies in C++ using CMake. Maybe I'm doing it wrong xD. It is harder to get 400 dependencies than with other ecosystems, I'll admit that. But I see this as a feature. I can't even start to imagine how people deal with security when the most basic app they write gets tens (hundreds?) of transitive dependencies. I guess they don't. Nobody cares about security.
- simplotek 4y ago> The C++ folks often don't know what they're missing out on. This assumption implies that C++ developers are all one-track wonders that lock themselves in a basement and have no contact with any other programming language or tooling. > But the tooling is just insanely cumbersome (...) It really isn't. Node.js with npm or yarn is a far greater mess than anything that happened in C++. I'd say that 9 out of 10 times people complain about the C++ ecosystem, they are actually talking from a place of ignorance and at best are only complaining about the mess they needlessly dug themselves into. Case in point: who in their right mind feels the need to bolt on a different scripting language to cmake, a build system that only rarely needs a damn if statement in the project? These guys are clearly deeply invested in making their lives far hard and worse than they need to be. I mean, where's the need? If anything, this wave of contrarian bullshit targeting C++ only shows the high volume of inexperient and clueless developers who decided to skip learning the basics and instead thought it was a good idea o dive head-first into wheels reinvented very poorly, and from there in proceed to depict their own mess as representative of everyone else's experience.
- jbverschoor 4y agoYou don’t need a makefile. A makefile is just a way to only recompile files that were changed (outdated bc of their dependencies have a newer date) You can just link all your files together in a single command without make
- midoridensha 4y agoNo, not when you have dozens of repositories and thousands of files.
- jbverschoor 4y agoThat was not the point. It was “want to develop something?” Not sure why a makefile is so bad.. it’s just a file generation tool which can check out-of-date files and specify dependencies by pointing out which input files are needed for an output. It should be read as: “Make file”
- midoridensha 4y agoYour answer is only good if you're writing an utterly trivial program. For any real application, you need some kind of build system, not just a g++ command line. Makefiles don't work for extremely large and complex applications. That's the whole reason we have junk like CMake and Gradle.