Complement Your Software Development With OpenAI
Yesterday on the news I heard a story about robots. Generally we worry about automation taking over our jobs, but this story explained how automation can actually help us. This news story was about how a robot arm, that's specialized in bricklaying, is relieving the pressure created by the shortage of construction workers.
This made me think about my own situation as a programmer. "Something similar might happen to my field in the future!", well today I discovered it's already happening, and I couldn't be more excited! I want to tell you my short story of how I discovered that the power of AI can already be used by every programmer to relieve their work pressure. I'm talking about ChatGPT https://chat.openai.com.
I'm just going to show you the conversation I had this chat bot. I started with simple requests, because I was expecting a simple AI. I was wrong. If you read between the lines you might see my amazement increase everytime the chatbot responds. Have fun!
Me: code me hello world in python
Chatbot: Here is a simple "Hello, World!" program in Python:
print("Hello, World!")
To run this program, simply save it as a .py file and run it with the Python interpreter. For example, if you save it as hello.py, you can run it like this:
python hello.py
This will print the message "Hello, World!" to the terminal.
Me: write me a .html file with a button
Chatbot: Here is an example of an HTML file with a button:
Me:
write me a python script that displays a pie chart based on .csv file input
Chatbot:
Here is a simple Python script that reads a CSV file and creates a pie chart based on the data:
Me: write me a react component for a sign in button
Chatbot: Here is a simple React component that creates a sign in button:
Me:
write me a react component in typescript that fetches pokemon from the pokemon api and displays them in a list
Chatbot:
Here is a simple TypeScript React component that fetches Pokemon data from the Pokemon API and displays them in a list:
Me: add a title to the pokemon list component
Chatbot:
Here is a modified version of the Pokemon list component that includes a title:
Me: turn the unordered list into an ordered list
Chatbot:
Here is a modified version of the Pokemon list component that uses an ordered list instead of an unordered list:
Me:
make a react application with a login screen and when you login you are shown the pokemon api component
Chatbot:
Here is a simple React application that has a login screen and displays the Pokemon list component after the user logs in:
Me: implement oauth google login for the authentication
Chatbot:
Here is a modified version of the React application that uses OAuth with Google for authentication:
At first my mind was worried, "In a few years my job is no longer relevant.", but as I was messing around I quickly started realizing this can be used as a powerful tool by new and experienced programmers to complement their programming skills instead of replace them.
I suggest you play around too https://chat.openai.com. I'm sure you'll find a way to apply this to your workflow.