# Chat gpt code generation

**URL:** <https://forum.kirupa.com/t/chat-gpt-code-generation/656543>\
**Category:** Uncategorized\
**Created:** [January 27, 2023, 4:30am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543 "2023-01-27T04:30:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [January 27, 2023, 4:30am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/1 "2023-01-27T04:30:02Z")

</div>

I used chat gpt to generate some unity specific c# code today and it works frighteningly well.

---

<div class="post-metadata">

**Author:** ![PAEz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/paez/32/19607_2.png) [@PAEz](https://forum.kirupa.com/u/PAEz)\
**Post date:** [January 27, 2023, 9:56am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/2 "2023-01-27T09:56:19Z")

</div>

I LOVE chatGPT! Its helped me a lot.  
From understanding other peoples code, converting from what type of code to another, converting one style to another (please show me how to do the same using the promise version of the api…loved that one), writing things in languages I hardly know (AutoIT) and my fav so far is getting it to make regex’s for me.  
It can make a lot of mistakes but if you know some coding already it makes a fantastic place to start from.

> can you change the following js code so its simpler and uses for loop and arrays…
> 
> const beer = (amount) =\> Array.from(new Array(amount+1).keys(), x =\> x \> 1 ? x + ’ bottles of beer on the wall, ’ + x + ’ bottles of beer.\n’ + ‘Take one down and pass it around, ’ + (x - 1) + ’ bottles of beer on the wall.\n\n’ : x== 1 ? ‘1 bottle of beer on the wall, 1 bottle of beer.\nTake one down and pass it around, no more bottles of beer on the wall.\n\n’ : ‘No more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, ’ + (amount) + ’ bottles of beer on the wall.’).reverse().join(‘’);

```auto
const beer = (amount) => {
  let result = "";
  for (let i = amount; i >= 0; i--) {
    if (i > 1) {
      result += `${i} bottles of beer on the wall, ${i} bottles of beer.\nTake one down and pass it around, ${i - 1} bottles of beer on the wall.\n\n`;
    } else if (i === 1) {
      result += `1 bottle of beer on the wall, 1 bottle of beer.\nTake one down and pass it around, no more bottles of beer on the wall.\n\n`;
    } else {
      result += `No more bottles of beer on the wall, no more bottles of beer.\nGo to the store and buy some more, ${amount} bottles of beer on the wall.`;
    }
  }
  return result;
};

```

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [January 27, 2023, 5:33pm UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/3 "2023-01-27T17:33:50Z")

</div>

This is just the start of what services like Chat GPT can do. Really exciting times!

This is almost the realization of the chatbot dream that kept cropping up every few years, only to fizzle out because they weren’t very useful 🤖

---

<div class="post-metadata">

**Author:** ![Maximo\_Feest](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Maximo\_Feest](https://forum.kirupa.com/u/Maximo_Feest)\
**Post date:** [February 2, 2023, 6:36am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/5 "2023-02-02T06:36:36Z")

</div>

I have been having a problem while using ChatGPT recently. Sometimes I am getting this error code 1020 and sometimes 404. Could anybody please tell me what the error is actually? Its a very interesting and useful tool. I really have no idea about the error. Any assistance would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [February 2, 2023, 6:53am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/6 "2023-02-02T06:53:46Z")

</div>

Have you tried logging out and logging back in?

Some of these errors could just be caused by chatgpt getting overwhelmed with traffic. The free version has no guaranteed uptime.

---

<div class="post-metadata">

**Author:** ![sohanperves](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sohanperves/32/20001_2.png) [@sohanperves](https://forum.kirupa.com/u/sohanperves)\
**Post date:** [February 2, 2023, 5:17pm UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/7 "2023-02-02T17:17:54Z")

</div>

Thank you so much.

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [February 3, 2023, 3:55am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/8 "2023-02-03T03:55:59Z")

</div>

I haven’t really been following this at all, so it’s crazy to see that that’s possible.

I read today that Microsoft has some kind of stake in GPT and is integrating it into Bing. Maybe there will finally be a reason to use Bing.

---

<div class="post-metadata">

**Author:** ![PAEz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/paez/32/19607_2.png) [@PAEz](https://forum.kirupa.com/u/PAEz)\
**Post date:** [February 3, 2023, 4:29am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/9 "2023-02-03T04:29:27Z")

</div>

I thought this video had a good view on all that…

[![](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/f/9/f95d4e73a6370f042206b4f68f8009b5e6389ac2.jpeg "Who Is REALLY Making Billions From ChatGPT") ](https://www.youtube.com/watch?v=fHMNYnjuXak)

---

<div class="post-metadata">

**Author:** ![Maximo\_Feest](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Maximo\_Feest](https://forum.kirupa.com/u/Maximo_Feest)\
**Post date:** [February 3, 2023, 6:11am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/10 "2023-02-03T06:11:55Z")

</div>

Yes, I have logged in and out several times, but still the was happening. But I was searching online and found some articles like [this one](https://www.thewindowsclub.com/fix-chatgpt-error-codes-1020-524-404-403). What do you think if this post might be helpful in anyway? One thing Proton VPN has been installed on my PC. I dont know whether the problem is having due to the VPN.

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [February 3, 2023, 5:41pm UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/11 "2023-02-03T17:41:18Z")

</div>

I hope they rename Bing to Clippy.

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [February 3, 2023, 6:20pm UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/12 "2023-02-03T18:20:17Z")

</div>

Proton VPN may have something to do with it. I do know they do bot-detection extensively (via Cloudflare, I believe), and you accessing via a VPN may raise some red flags on their service. If you disable Proton VPN, does everything work correctly?

Cheers,  
Kirupa 🙂

---

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [February 4, 2023, 1:15am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/13 "2023-02-04T01:15:59Z")

</div>

I wasn’t really either but I started a job a few months ago as the only c# dev, and when I came in the office someone who doesn’t code brought it up and typed in a sentence and it spit some fairly advanced code for unity scripts. Immediate realization I need to be on top of this or else the robot took er jobs as southpark would say.

It missed a few imports, and certainly you still need a coder to use it, but it’s far more powerful than I thought.

I’ve just been laughing at the term “ai” for the last 15 years, but whatever u call it it’s definitely impressive

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [February 4, 2023, 4:40am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/14 "2023-02-04T04:40:03Z")

</div>

I hope it takes my job but I still get paid. Is that possible?

---

<div class="post-metadata">

**Author:** ![steve.mills](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/steve.mills/32/14961_2.png) [@steve.mills](https://forum.kirupa.com/u/steve.mills)\
**Post date:** [February 4, 2023, 7:46am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/15 "2023-02-04T07:46:54Z")

</div>

Its called “democratic socialism”…😄  
Apparently youse are all over it up there…

---

<div class="post-metadata">

**Author:** ![PAEz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/paez/32/19607_2.png) [@PAEz](https://forum.kirupa.com/u/PAEz)\
**Post date:** [February 10, 2023, 2:02am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/16 "2023-02-10T02:02:15Z")

</div>

If Microsoft integrate chat into Bing like in this video then Ill be a convert in a second. Im really poor but Id be even willing to pay for that if it could still do the codeing stuff.

[![](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/e/6e94b7221da2aa88c50cd68b3688046292e8af6c.jpeg "Google Embarrass Themselves (A.I. War Is Heating Up)") ](https://www.youtube.com/watch?v=5X1O5AS4nTc)

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [February 11, 2023, 1:54pm UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/17 "2023-02-11T13:54:52Z")

</div>

My problem with Bing is that it doesn’t return a lot of scholarly articles, and there’s no way that I can see to only search for them.

---

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [March 18, 2023, 4:22am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/20 "2023-03-18T04:22:36Z")

</div>

I just can’t get over how ridiculous this thing is.

I feel like the old days where you would ask a question to somebody then it’s like, oh yeah I forgot. I’ll just Google that.

I have a few tasks ahead of me.

I can ask chat gpt, what would be a good library to use for this scenario, now give me an example of it.

And it just writes everything for me. I just can’t get over how good it is at c# and unity specific questions.

I have to convert some primitive data to a specific file formats and it’s just like oh yeah, you can use this library, and this is how you do it, annnnnd it’s done

---

<div class="post-metadata">

**Author:** ![chrisbotham](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chrisbotham/32/21337_2.png) [@chrisbotham](https://forum.kirupa.com/u/chrisbotham)\
**Post date:** [March 28, 2023, 9:11am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/22 "2023-03-28T09:11:47Z")

</div>

I agree with code generation features, but anyone can tell me Chat GPT can work as SEO. What exactly Chat GPT do for a SEO ?

---

<div class="post-metadata">

**Author:** ![candygrey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/candygrey/32/21352_2.png) [@candygrey](https://forum.kirupa.com/u/candygrey)\
**Post date:** [March 29, 2023, 9:47am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/23 "2023-03-29T09:47:38Z")

</div>

It is a great weapon. I want to upload some blog to the sites but don’t even know the coding that what is code for alignment and for many other fields. But, Chat GPT can do it within a minute. Such an great tool for coding as well as for new content creation.

---

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [March 30, 2023, 4:47am UTC](https://forum.kirupa.com/t/chat-gpt-code-generation/656543/25 "2023-03-30T04:47:23Z")

</div>

I came across an interesting scenario recently. I had Chat gpt generate some specific code for me.  
I still needed help with my solution, while searching for it, I came across an old post that I am certain chat gpt had learned from.

The solution/ example chat GPT came up with was so similar to this post, just modifying a few variable names.

Funny, all of the code we’ve all been posting online for decades has now been consumed by the language model and regurgitated back to us in a quite amazing form.

![](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/4/7/47116a9c3749756c6c399c574f54d30cf034ee11.gif)

[Next page](https://forum.kirupa.com/t/chat-gpt-code-generation/656543.md?page=2)
