3.6 KiB
C++
C++ is the #10 most popular language according to the 2023 Stack Overflow Developer Survey.
Benchmarks
✅ C++ is one of the 19 languages in the MultiPL-E benchmark
✅ C++ is one of the 16 languages in the BabelCode / TP3 benchmark
✅ C++ is one of the 13 languages in the MBXP / Multilingual HumanEval benchmark
✅ C++ is one of the 5 languages in the HumanEval-X benchmark
Datasets
✅ C++ makes up 192.84 GB of The Stack dataset
✅ C++ makes up 87.73 GB of the CodeParrot dataset
✅ C++ makes up 290.5 GB of the AlphaCode dataset
✅ C++ makes up 69.9 GB of the CodeGen dataset
✅ C++ makes up 52 GB of the PolyCoder dataset
Stack Overflow & GitHub presence
C++ has 801,823 tagged questions on Stack Overflow
C++ projects have had 2,767,540 PRs on GitHub since 2014
C++ projects have had 2,255,179 issues on GitHub since 2014
C++ projects have had 9,245,881 pushes on GitHub since 2014
C++ projects have had 5,192,579 stars on GitHub since 2014
Anecdotes from developers
I use ChatGPT for tools and libs where the documentation is horrendous and it’s a coin toss as to whether it confidently talks truth or nonsense. I don’t think it’s a good idea for beginners to be leaning on it as a teaching aid.
My experience with ChatGPT is that it sucks ass with C++. Anything beyond basic syntax and programming it just gets wrong. My typical interaction is to ask it something specific, then spend the next 3 queries clarifying and then the next few pointing out issues in the code or methodology. I cannot recommend.
I have github copilot enabled in my ide, so whatever it suggests I can either use it or ignore. I find it helpful in writing docstrings and filling out somewhat repetitive rows (e.g. pattern matching cases). But otherwise it is not that clever. I also use chatgpt in some rare cases when I am curious how would chatgpt solve this or that problem. It is good to write some simple, short functions; but it is not reliable enough to write medium to very complex algorithms.