continue-custom/docs/docs/languages/ruby.md
2023-11-08 17:21:17 -08:00

4.3 KiB

Ruby

Ruby is the #17 most popular language according to the 2023 Stack Overflow Developer Survey.

Benchmarks

✅ Ruby is one of the 19 languages in the MultiPL-E benchmark

❌ Ruby is not one of the 16 languages in the BabelCode / TP3 benchmark

✅ Ruby is one of the 13 languages in the MBXP / Multilingual HumanEval benchmark

❌ Ruby is not one of the 5 languages in the HumanEval-X benchmark

Datasets

✅ Ruby makes up 23.82 GB of The Stack dataset

✅ Ruby makes up 10.95 GB of the CodeParrot dataset

✅ Ruby makes up 11.6 GB of the AlphaCode dataset

❌ Ruby is not included in the CodeGen dataset

✅ Ruby makes up 4.1 GB of the PolyCoder dataset

Stack Overflow & GitHub presence

Ruby has 228,663 tagged questions on Stack Overflow

Ruby projects have had 2,482,982 PRs on GitHub since 2014

Ruby projects have had 1,204,510 issues on GitHub since 2014

Ruby projects have had 5,645,881 pushes on GitHub since 2014

Ruby projects have had 2,905,832 stars on GitHub since 2014

Anecdotes from developers

u/throwaway-aso2fb

Note that the failure mode for ChatGPT is that it will gaslight and lie to you. If you don't give it enough context, or the method names are ambiguous, there's a potential for it to make up explanations that sound plausible, but are dangerously incorrect. I'd advise talking to your team about the things that confuse you germane to your codebase, and only using ChatGPT for general Ruby content.

u/OlivarTheLagomorph

Not using copilot for the controversy around it stealing source code. Manager gave me a license however to use tabnine at the moment. In...basic scaffolding code it helps me speed up a bit by generating the blocks for example to write specs quickly, providing about 75% of the structure needed to get the spec fleshed out, e.g faster let declarations and do blocks. But for writing actual code I'm fighting it more than its helping me, since it simply doesn't understand what I am trying to write. Documentation is....hit&miss depending on whether it gets the meaning behind the variable names.

u/onionionion

I use Github copilot (which uses openai's codex) and occasionally throw some questions to ChatGPT. Currently I use it for Ruby and Kotlin. I committed to Copilot after trying it for five minutes. Total game changer. Time spent doing grunt work, writing repetitive tests etc, has dropped by 90% and I'm left with a lot more time to implement elegant solutions rather than throwing in quick fixes to meet tight deadlines. Sometimes it almost seems like it can read my mind. You still need to have the experience and expertise to ensure it hasn't missed the point - it doesn't always have the full context of the problems you're working on - but I would wholeheartedly recommend it to any developer as a way to increase productivity.