#chatgpt #ai #coding
AI just replaced me! So i chatted online with an Artificial Intelligence
Rob Pearmain shows you his experience of building a SharePoint Framework (SPFx) webpart using Artificial Intelligence (CHATGPT) OpenAI
It built me a SharePoint Framework (SPFx) Webpart in seconds.
Is this the end of Roberts Dev Talk?
i just got replaced by AI in the guise of Chat GPT. I’ve been playing with ChatGPT, and I’m going to show you how I got it to build a Webpart just by asking it questions.
First, what is Chat GPT
according ChatGPT after I typed the question “Write a short YouTube script describing chatgpt”
It wrote
ChatGPT is an open-source chatbot framework that uses the GPT-3 language model to allow developers to easily create chatbots that can hold natural conversations with users. It offers customization options such as language and topic training, and can be used with a GPT-3 API key and basic programming knowledge.
Ok, so I said
“Please give a short one paragraph description of GPT-3”
“GPT-3 is a large language processing model developed by OpenAI that is capable of completing a variety of language tasks, including translation, summarization, and text generation. It uses self-attention mechanisms to process input text and generate output text and is pre-trained on a massive dataset of internet text. GPT-3 has been used in applications such as chatbots, content generation, and language translation.”
Ok, so basically I can ask questions and it generates content.
Cool, let’s see just how clever this AI is? Let’s see if it’s clever enough to build a ReactJS SharePoint Webpart, after all, that’s what I do on this channel!
I asked “please can you give me an example of a ReactJS SharePoint framework webpart which shows a greeting based on the time of day. Name the webpart greeting and make it a functional component
And, it generated a react component,
Ok, I thought, so not a webpart, but a reactjs component.
I said “please show the example using typescript”
And it did just that, the same component in Typescript
I then asked “Please show the same example where I can pass the greeting message based on properties”
Amazing, our component has properties
Ok, it gave me all the example code I needed for the component. But no webpart
Finally, I tried again.
“please show an example of a ReactJS SharePoint framework webpart as a functional component called greeting. Greeting is passed as a property for morning, afternoon and evening and the greeting is displayed based on the time of sat”
Awesome, so we had the component, still no complete webpart, so i was about to give up. Then I said
“Please show this as a SharePoint framework Web part”
And guess what, It built the whole thing!
I copied and pasted in to my project and it worked
Ok, so I am not out of a job just yet …. But is it only a matter of time
What do you think? Leave your thoughts in the comments below, is it just a matter of time before developers are out of a job?
☕️ Support us with a coffee! (Or.. beer 🍺)
https://www.buymeacoffee.com/robertsd...
📧 📫 Join us on our developer journey! Sign up to our email newsletter:
https://robertsdevtalk.com
🐦 Follow us on Twitter:
/ robertsdevtalk
🎶 Music by Epidemic Sound:
https://www.epidemicsound.com/referra...
Icons in this video kindly provided by FlatIcon from Freepik
https://www.freepik.com
https://www.flaticon.com
Disclaimer - some of our links are affiliate links, which means that we receive a small commission for any sales made via those links, at no extra cost to you - so a great way to support our channel! Thank you so much for your support 😊