3 ms·
Just use C, and retain your sanity. C++ is full of awkward heavyweight hard to understand abstractions like this.
by hossbeast 9y ago
Just use C, and retain your sanity. C++ is full of awkward heavyweight hard to understand abstractions like this.
- kllrnohj 9y agoStraight C is ridiculously hard to write at any scale with any sanity. Not to mention it requires re-inventing stuff that you're basically guaranteed to get wrong (such ref counting), which of course none of the libraries you want to use will support so you have to wrap that up in something else. C++ is a massive improvement over straight C in pretty much every practical way. And best part is if you don't want to use awkward, heavyweight abstractions like std::variant then you can just not use them and be no worse off for it.
- fsociety 9y agoI used to think this until I worked on a large C project at scale. C++ definitely has some improvements over C, but it definitely does not have a "massive improvement over straight C in pretty much every practical way". It's pretty bad that you have to avoid many parts of the language. I've also noticed from various projects that C projects tend to have less code to grok than C++ projects while achieving the same thing. Who would've thought.