3 ms·
As 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 langua
by MetallicCloud 7y ago
As 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.