3 ms·
I use what I call "C+" which is C plus classes, basic templates, and light polymorphism when it is absolutely perfectly suited. I'd like to explore a lot of th
by edoo 7y ago
I use what I call "C+" which is C plus classes, basic templates, and light polymorphism when it is absolutely perfectly suited. I'd like to explore a lot of the later features but I haven't had the drive to do it. I write a ton of embedded C for money and learning C++ has lifted my C skills tremendously. It forces you into certain paradigms that you can easily do in C if you have the discipline.
- MetallicCloud 7y agoAs a primarily C++ developer, I absoloutly hate maintaining code that is written like this. C has it's place in the world, but despite the fact that the language has a large amount of overlap in syntax, they are very different languages. Trying to write one in the style in the other will, at least from me, earn you some very bad thoughts.
- ncmncm 7y agoI agree. The more code looks like C or early '90s C++ (not to say Java), the worse it is. The newest language features exist because the language is better with them, and code is better when it used them. That is not to say that every function, or every program, has to use every obscure feature. Many features are there only to support very specialized use cases (which absolutely exist, and are important!). But things like new-style loops, generic lambdas, structured bindings, and little helper templates make writing and reading code enormously more pleasant.