3 ms·
Article lost me here: "But [C++ is] not as easy to use as languages like Python, Ruby, and PHP. In other words, it doesn’t let coders build software as quickly
by Sonicmouse 12y ago
Article lost me here:
"But [C++ is] not as easy to use as languages like Python, Ruby, and PHP. In other words, it doesn’t let coders build software as quickly."
Anyone who is proficient in C++ can write code just as quickly if not faster than most other languages.
It's like saying knowing Spanish is better than knowing German because you can communicate faster in Spanish. It's an insult to the German language.
- mynegation 12y agoI can offer anecdotal evidence to the contrary. I am proficient in both C++ and Python and I am able to whip up something in Python much faster than in C++. Boost and C++11 closed the gap somewhat but the difference is: * Python's approach of "batteries included", ruch standard library. Sure you can find a library in C++ for almost everything, but it is never as easy as "pip install" and subsequent import. * I do not have to declare types. It works well for small programs where I can maintain implicit typing in my head but becomes an impediment for larger programs. * Compilation time for any moderately sized C++ program and the lack of REPL quickly become a problem in fast iteration cycle. No IPython for C++. * Small syntactic sugar things always help. As an example, In Python I can assign array, set, or dict literal to any variable. In C++11 even though I should supposedly be able to do some of that, it is not universally across platforms.
- p0nce 12y agoI'm proficient in C++ but when I write a tool for work it often ends up being 2x faster to write in D than if written in C++. The lack of wrapping of OS primitives, harder to integrate libraries and inflexible language is a factor. C++ simply isn't very productive, even with years of practice.