continue-custom/docs/docs/languages/csharp.md
2023-11-15 00:02:33 -08:00

4.1 KiB

C#

C# is the #9 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 not one of the 5 languages in the HumanEval-X benchmark

Datasets

✅ C# makes up 128.37 GB of The Stack dataset

✅ C# makes up 36.83 GB of the CodeParrot dataset

✅ C# makes up 38.4 GB of the AlphaCode dataset

❌ C# is not included in the CodeGen dataset

✅ C# makes up 21 GB of the PolyCoder dataset

Stack Overflow & GitHub presence

C# has 1,606,619 tagged questions on Stack Overflow

C# projects have had 1,191,927 PRs on GitHub since 2014

C# projects have had 1,489,756 issues on GitHub since 2014

C# projects have had 4,581,919 pushes on GitHub since 2014

C# projects have had 2,521,561 stars on GitHub since 2014

Anecdotes from developers

u/Slypenslyde

AI tools give me the code I need maybe 20% to 40% of the time. Another 30% or so I have to tweak it to make it work. For the remaining percentages what it spits out needs so many changes it's easier to write it myself than expect that I tweaked it without mistakes. Sometimes it feels like CoPilot might slow me down since now I tend to hit a new line and wait 2-3 seconds to see what it suggests.

u/telewebb

I haven't found any in IDE plug-in that's been all that great. I've used copilot in conjunction with chatGPT and find myself using chatGPT way more than copilot. Keep in mind I use LLMs more as an enhanced search engine than a code writer. For code, I find it helpful to get a second opinion on a refactor, handing over error messages, writing one liners for some logic, and handing over a file to act as a second pair of eyes for what I can't see. Outside of code, I use it as a rubber ducky that can talk back when trying to think through some problems. Though tbh, the act of thinking about my problem and structuring it out to a prompt often solves my problem before I even hit send. Actually, now that I think about it. The damn thing has been a God send for writing and debugging terraform.

u/quebecbassman

Call me old, but I prefer to code things myself. AI is good to give you hints and steer you in the right direction. It can also write a lot of bullshit that looks like legit code. Then, debugging code that you didn't write gets very difficult. Remember that you write code once, but will read it many, many times. Have your boss pay for training.