3 ms·
This falls apart as soon as you are working with codebases you didn't create all by your lonesome.
by cma 11y ago
This falls apart as soon as you are working with codebases you didn't create all by your lonesome.
- andrepd 11y agoNo it doesn't, assuming there is an ounce of coordination and everyone is on the same page on coding standards and so forth.
- mikeash 11y agoWhat if you want to use a library?
- andrepd 11y agoWhat about it? If you decide to use a library, then you should learn to use it, no?
- mikeash 11y agoThen my C++ is no longer my chosen subset of C++, but rather the union of my subset and the subset used by the library. C++ is no longer "what you make of it" but what I make of it plus what the library author made of it. Bring in multiple libraries and you start to approach the entirety of the language again.
- alayne 11y agocma hit the nail on the head and you dismissed it. Two departments or companies aren't going to use the same subset of C++. Coding standards also evolve over time as languages evolve and better ideas about software engineering happen. 2015 C++ is much different than 2000 C++. Unless you always work on greenfield development with coworkers that strictly follow the same standards and C++ subset and you never do any kind of maintenance work, you will need to learn more parts of C++ than you may personally wish to use or learn.
- andrepd 11y agoWhat I mean to say is that that isn't the language's fault. It's up to the users to decide to make use of features they need, and obviously it's their responsibility to live with the headaches a misuse/overuse of C++ may bring. I guess I just don't understand why people consider "too many features" to be a shortcoming.
- alayne 11y agoI'm not arguing about too many features and you know it. Complexity and subtleties in a large language can make it difficult to write correct software.
- pzone 11y agoYes, it is harder to write correct software in C++ than in other languages. But if the project you are working on needs to be written in C++, explicit coding standards and the general project environment can play a huge role in whether it is a lot harder, or just a little bit. I can point to one policy that guarantees safety becomes much easier: prefer modern C++14 idioms whenever possible.
- deleted 11y ago[deleted]
- deleted 11y ago[deleted]
- angersock 11y agoassuming there is an ounce of coordination and everyone is on the same page on coding standards and so forth. That's a mighty large assumption. Typical physicist--at least you can approximate many C++ developers as spheres!
- andrepd 11y agoI don't think it is. Is it really so much to ask for developers in a team to decide on interoperability standards? I assume people on a team don't just start coding with zero coordination.
- alayne 11y agoEven if you had people agree on standards, there would be misunderstandings and people would deviate. Have you ever worked with standards for any sort of protocol/process/language? Try it some time.