From ce9bf7eecc3035b313bc549897fedeefd68cc93c Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Tue, 7 Nov 2023 16:18:26 -0800 Subject: [PATCH] add vba --- docs/docs/languages/languages.csv | 3 +- docs/docs/languages/vba.md | 48 +++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 docs/docs/languages/vba.md diff --git a/docs/docs/languages/languages.csv b/docs/docs/languages/languages.csv index c7b8faa42..a84022902 100644 --- a/docs/docs/languages/languages.csv +++ b/docs/docs/languages/languages.csv @@ -11,4 +11,5 @@ Elixir,N/A,N/A,N/A,N/A,2.32%,30,"9,510","113,018","255,430","65,166","210,145",U Perl,✅,N/A,✅,N/A,2.46%,29,"67,938","125,129","634,214","117,426","188,697",5.5,4.7,0,0,0,16.4k,https://www.reddit.com/r/perl/,"There are a few problems with this, and I noticed the exact same thing with the GitHub Copilot. It's barfing out examples it was trained on with no idea about what they do, whether they work, and if they are current. Transaction objects no longer have a success method. This was deprecated for a long time ago and finally removed in version 9. The error method returns a single value. Minor problem, but still cruft that shouldn't be there. Call json on the response to get the data structure rather than doing this yourself. Even then, using JSON directly, while fine, skips over the Mojo::JSON::decode_json. It's a bit of a pain in the butt, but work hard to use the same parser everywhere in an application since they tend to have slight differences (say, like how they represent null, true, or false). Somewhere along the line, ChatGPT saw this code or something very similar. It then returns it to you with no intelligence about what it is doing or what it should do. It's very likely that the source ChatGPT saw is not only old, but also unsophisticated. You're likely just cargo-culting off StackOverflow with extra steps. But, this also isn't the way you probably want to write code. You don't want to return the token really, You want to add that to the user-agent so it provides it in every request without additional code from you. I have plenty of examples in Mojo Web Clients. That's another problem with the source material for these sorts of things: it's training itself off public data, but often our examples are mere demonstrations of ideas rather than advice on reliable software engineering (since we aren't going to write a book for every question someone asks).",u/briandfoy,https://www.reddit.com/r/perl/comments/10j0k00/comment/j5ki948,"""Somewhere along the line, ChatGPT saw this code or something very similar. It then returns it to you with no intelligence about what it is doing or what it should do."" IMO, this is quite irrelevant, because you must understand that whatever output - be it code, poems or whatever - from an AI-assisted service is not perfect. The main point is: it helps. And that's its main selling point today, because that's how StackOverflow also works: sometimes it's perfect, but most of the times it just helps, maybe because you have addressed the wrong audience, didn't word your question/problem correctly or otherwise. With ChatGPT you get an instant reply, and you can ask it to refine its reply. Instantly. Rinse and repeat. So if it use StackOverflow data (which I assume it does) it's already better in the sense that it's instant and filters out noise, especially personal attacks, or otherwise replies that intimidates the person asking the questions. ""It then returns it to you with no intelligence about what it is doing or what it should do."" Let's be honest, we have all been there and/or we have had colleagues who fits that description. :)",u/nobono,https://www.reddit.com/r/perl/comments/10j0k00/comment/j5l9s1c/,"You mentioned being new to perl and programming. Personally, I think ChatGPT is a great resource for these types of question. I asked it your question and copied the function from csv2fasta.pl",u/its_a_gibibyte,https://www.reddit.com/r/perl/comments/14capfv/comment/jol2a4b Scala,✅,N/A,✅,N/A,2.77%,28,"111,969","605,988","1,508,526","271,184","540,327",14.87,3.87,4.1,0,1.8,51.3k,https://www.reddit.com/r/scala/,"Today I decided to test it by asking how one would use Scala 3 macros to get the types of the inputs and outputs of a method. It had some decent suggestions to do that for someone that is new to macros, but a lot of its answer was false, suggesting people use something called QuotesContext, not recognizing properly what extension methods are available for the Symbol type, and worst of all, trying to splice Type values into an Expr. If they can manage to get chatgpt to actually tell the truth consistently (like saying ""I don't know how to do that"" rather than just lying) I think it will be a nice resource for discovering how to do stuff you don't currently know how to do. Sadly, it's still got a nasty habit of making stuff up.",u/markehammons,https://www.reddit.com/r/scala/comments/124ocqh/scala_and_chatgpt/,"Well...this is a very hold thread but I'm using the latest copilot for scala available today of this post. I mostly use the ZIO framework. I was skeptical at first but I'm finding the suggestions get smart quickly and it is generating a lot of code fragments pretty well. I'm not claiming I can live without it, but as of today, I'm thinking it works pretty well for my scenarios. I could easily see not wanting to code without in the near future. I think using a framework like ZIO makes it easier to generate code fragments because the ZIO framework has a fairly predictable surface area, but that's just a guess.",u/agilesteel,https://www.reddit.com/r/scala/comments/ovoc8n/github_copilot_for_scala_does_it_work/,I wanted to start a new Scala project based on Clean Architecture aka dependency inversion. So I asked for a basic example to demo the principles. There was a lot of pretty code but ultimately it had no idea what this was about. The code was bs.,u/k1v1uq,https://www.reddit.com/r/ChatGPTCoding/comments/zpunkt/comment/j25ftsr/?utm_source=share&utm_medium=web2x&context=3 Delphi,N/A,N/A,N/A,N/A,3.23%,27,"51,475",310,552,0,0,0,0,0,0,0,3.8k,reddit.com/r/delphi,PSA: GitHub Copilot works with Delphi,u/EasywayScissors,https://www.reddit.com/r/delphi/comments/wnhk9x/psa_github_copilot_works_with_delphi/?utm_source=share&utm_medium=web2x&context=3,"As you can see, it is possible to use an AI for simple pieces of code to create basic Delphi code quickly. We can now go one step further and implement this in Delphi itself.",Marco Geuze,https://gdksoftware.com/knowledgebase/delphi-and-chatgpt,"I asked a series of Pascal programming questions to an AI chatbot system while testing its abilities, and the following page is a record of its responses.",u/sysrpl,https://www.reddit.com/r/delphi/comments/1006ybh/programming_pascal_using_an_ai_chatbot/?utm_source=share&utm_medium=web2x&context=3 -Groovy,N/A,N/A,N/A,N/A,3.40%,26,"30,014","132,381","431,291","108,265","140,122",Unspecified,0,0,0,0,3.0k,https://www.reddit.com/r/groovy/,"And that it was possible to use the code created by the tool to generate some code that could be used to start your programming. This could save quite a bit of time for developers to use this as a starting point, and you don’t need to have a large experience to start coding in UDFs in Groovy. It is also interesting that it has much knowledge about what is going on in an SAP universe, I would have thought it was more difficult to get data about it.",Figaf,https://figaf.com/chatgpt-groovy-code-help-for-sap-cloud-integration/,"Groovy is a great language with a ton of utility, and can scale like crazy! Write code as dynamic as you want, and choose to refactor into a more type-safe manner later. It's totally worth learning and having it in your toolkit. I program in it every day for many projects. All Java (99.9%) is also valid Groovy, so it's almost impossible not to understand and work with any Java code base you may come across once you get familiar with Groovy. ChatGPT and Github Co-pilot also write excellent Groovy code, which can aid you in learning, and just programming with it in general. It's still actively maintained, too! It's not going away an time soon.",u/West_Performance_129,https://www.reddit.com/r/groovy/comments/16kuh6s/comment/k1i0lqn/,"When I was building react-native-colo-loco, I had to write a Gradle script, which is written in Groovy. I know a little Groovy, but not much. So I focused on writing precise, accurate comments, and let Copilot suggest lines of code. I could then lean on my development experience to pick up on patterns and syntax, and go from there.",Jamon Holmgren,https://shift.infinite.red/getting-the-most-from-github-copilot-8f7b32014748 \ No newline at end of file +Groovy,N/A,N/A,N/A,N/A,3.40%,26,"30,014","132,381","431,291","108,265","140,122",Unspecified,0,0,0,0,3.0k,https://www.reddit.com/r/groovy/,"And that it was possible to use the code created by the tool to generate some code that could be used to start your programming. This could save quite a bit of time for developers to use this as a starting point, and you don’t need to have a large experience to start coding in UDFs in Groovy. It is also interesting that it has much knowledge about what is going on in an SAP universe, I would have thought it was more difficult to get data about it.",Figaf,https://figaf.com/chatgpt-groovy-code-help-for-sap-cloud-integration/,"Groovy is a great language with a ton of utility, and can scale like crazy! Write code as dynamic as you want, and choose to refactor into a more type-safe manner later. It's totally worth learning and having it in your toolkit. I program in it every day for many projects. All Java (99.9%) is also valid Groovy, so it's almost impossible not to understand and work with any Java code base you may come across once you get familiar with Groovy. ChatGPT and Github Co-pilot also write excellent Groovy code, which can aid you in learning, and just programming with it in general. It's still actively maintained, too! It's not going away an time soon.",u/West_Performance_129,https://www.reddit.com/r/groovy/comments/16kuh6s/comment/k1i0lqn/,"When I was building react-native-colo-loco, I had to write a Gradle script, which is written in Groovy. I know a little Groovy, but not much. So I focused on writing precise, accurate comments, and let Copilot suggest lines of code. I could then lean on my development experience to pick up on patterns and syntax, and go from there.",Jamon Holmgren,https://shift.infinite.red/getting-the-most-from-github-copilot-8f7b32014748 +VBA,N/A,N/A,N/A,N/A,3.55%,25,"212,313","22,482","77,915","17,439","19,273",2.73,1.91,0,0,0,52.3k,https://www.reddit.com/r/vba/,"It depends on how you use ChatGPT though. I started a VBA project using methods I had used in the past. When that didn’t work, I tried the Google approach, and still couldn’t do what I wanted. Then, I remembered that ChatGPT does code, and decided to give it a shot. Honestly, what it gave me was riddled with errors, but I went through error by error and forced the AI to come up with corrections. I would copy-past the code into the prompt and ask it to identify potential errors and explain how they could be fixed. I got a really intimate understanding of the code, the reasons for the errors, and the strategies for correcting them. Even then, the code was flawed and ultimately failed. But I was able to use some of what I picked up throughout the process to build my own foundation for the code that would eventually work and used the AI to help fill in the blanks. I got a lot out of the experience. It’s very important to ask very specific questions and to make sure that you understand the recommendations that it makes so you don’t get lost in later steps. I used Google to supplement some of the information the AI gave me to improve my understanding. I spent a lot of time with this thing, and I think we both came out of it just a little better at what we do.",u/imartnm,https://www.reddit.com/r/vba/comments/108zy8k/comment/j3zcukr/?utm_source=share&utm_medium=web2x&context=3,"I've tried using it for VBA/Power Query code, but it's spotty at the best of times. It sometimes will reference functions that don't exist, or will ignore the carefully worded instructions you give it. At its current state it's most useful as a glorified google /stackoverflow search. It can also be helpful while debugging or just to throw some suggestions your way. Writing out the basic structure of my module and asking for recommendations/alternatives to certain implementations is fun and has taught me some new tricks. So it's cool, but not really reliable. Don't let it write your code for you or you might risk spending more time fixing it than you would have just writing it. I'd say it's VBA capabilities are better than its grasp on PowerQuery (M) .",u/Confuciusz,https://www.reddit.com/r/vba/comments/108zy8k/comment/j3wn54u/?utm_source=share&utm_medium=web2x&context=3,"Lol I just made a comment on another similar post where OP said GPT was incredible for Excel 😂 But yeah, GPT is still awful for VBA or long formulas. I tried giving clear instructions for simple tasks that it couldn’t get right. It’s cool, but long way to go",u/E_Man91,https://www.reddit.com/r/vba/comments/123zuo6/comment/je3ixwy/?utm_source=share&utm_medium=web2x&context=3 \ No newline at end of file diff --git a/docs/docs/languages/vba.md b/docs/docs/languages/vba.md new file mode 100644 index 000000000..583939350 --- /dev/null +++ b/docs/docs/languages/vba.md @@ -0,0 +1,48 @@ +# VBA + +VBA is the #25 most popular language according to the [2023 Stack Overflow Developer Survey](https://survey.stackoverflow.co/2023/#section-most-popular-technologies-programming-scripting-and-markup-languages). + +## Benchmarks + +❌ VBA is not one of the 19 languages in the [MultiPL-E benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=couple%20notable%20mentions-,4.%20MultiPL%2DE,-Creator%3A%20Northeastern) + +❌ VBA is not one of the 16 languages in the [BabelCode / TP3 benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=amazon%2Dscience/mxeval-,12.%20BabelCode%20/%20TP3,-Creator%3A%20Google) + +❌ VBA is not one of the 13 languages in the [MBXP / Multilingual HumanEval benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=11.%20MBXP%20/%20Multilingual%20HumanEval) + +❌ VBA is not one of the 5 languages in the [HumanEval-X benchmark](https://blog.continue.dev/an-introduction-to-code-llm-benchmarks-for-software-engineers/#:~:text=Some%20multilingual%C2%A0benchmarks-,10.%20HumanEval%2DX,-Creator%3A%20Tsinghua) + +## Datasets + +✅ VBA makes up 2.73 GB of [The Stack dataset](https://arxiv.org/abs/2211.15533) + +✅ VBA makes up 1.91 GB of the [CodeParrot dataset](https://huggingface.co/datasets/codeparrot/github-code) + +❌ VBA is not included in the [AlphaCode dataset](https://arxiv.org/abs/2203.07814) + +❌ VBA is not included in the [CodeGen dataset](https://arxiv.org/abs/2203.13474) + +❌ VBA is not included in the [PolyCoder dataset](https://arxiv.org/abs/2202.13169) + +## Stack Overflow & GitHub presence + +VBA has 212,313 [tagged questions on Stack Overflow](https://stackoverflow.com/tags) + +VBA projects have had 22,482 [PRs on GitHub since 2014](https://madnight.github.io/githut/#/pull_requests/2023/3) + +VBA projects have had 17,439 [issues on GitHub since 2014](https://madnight.github.io/githut/#/issues/2023/3) + +VBA projects have had 77,915 [pushes on GitHub since 2014](https://madnight.github.io/githut/#/pushes/2023/3) + +VBA projects have had 19,273 [stars on GitHub since 2014](https://madnight.github.io/githut/#/stars/2023/3) + +## Anecdotes from developers + +[u/imartnm](https://www.reddit.com/r/vba/comments/108zy8k/comment/j3zcukr/?utm_source=share&utm_medium=web2x&context=3) +> It depends on how you use ChatGPT though. I started a VBA project using methods I had used in the past. When that didn’t work, I tried the Google approach, and still couldn’t do what I wanted. Then, I remembered that ChatGPT does code, and decided to give it a shot. Honestly, what it gave me was riddled with errors, but I went through error by error and forced the AI to come up with corrections. I would copy-past the code into the prompt and ask it to identify potential errors and explain how they could be fixed. I got a really intimate understanding of the code, the reasons for the errors, and the strategies for correcting them. Even then, the code was flawed and ultimately failed. But I was able to use some of what I picked up throughout the process to build my own foundation for the code that would eventually work and used the AI to help fill in the blanks. I got a lot out of the experience. It’s very important to ask very specific questions and to make sure that you understand the recommendations that it makes so you don’t get lost in later steps. I used Google to supplement some of the information the AI gave me to improve my understanding. I spent a lot of time with this thing, and I think we both came out of it just a little better at what we do. + +[u/Confuciusz](https://www.reddit.com/r/vba/comments/108zy8k/comment/j3wn54u/?utm_source=share&utm_medium=web2x&context=3) +> I've tried using it for VBA/Power Query code, but it's spotty at the best of times. It sometimes will reference functions that don't exist, or will ignore the carefully worded instructions you give it. At its current state it's most useful as a glorified google /stackoverflow search. It can also be helpful while debugging or just to throw some suggestions your way. Writing out the basic structure of my module and asking for recommendations/alternatives to certain implementations is fun and has taught me some new tricks. So it's cool, but not really reliable. Don't let it write your code for you or you might risk spending more time fixing it than you would have just writing it. I'd say it's VBA capabilities are better than its grasp on PowerQuery (M) . + +[u/E_Man91](https://www.reddit.com/r/vba/comments/123zuo6/comment/je3ixwy/?utm_source=share&utm_medium=web2x&context=3) +> Lol I just made a comment on another similar post where OP said GPT was incredible for Excel 😂 But yeah, GPT is still awful for VBA or long formulas. I tried giving clear instructions for simple tasks that it couldn’t get right. It’s cool, but long way to go \ No newline at end of file