ChatGPT is a new AI service offered by OpenAI. Practically, ChatGPT is a chat where you can communicate with the AI. Is much more powerful than any other AI language model(🤖). It can answer most questions using the information in its knowledge database. If you didn’t test it yet, you could check it.
I started using ChatGPT for my daily tasks. It is so smart. It’s like a personal assistant that can solve anything. I give him some specifications, and it can give me what I need in a matter of seconds.
Currently, ChatGPT is free, but it also has a subscription at $42. You can also use the API that, for code, the AI generator tool is currently free. Also, you can buy tokens. One thousand Davinci tokens cost two cents. You can generate around 750 words using 1000 tokens. The Davinci model is the most expensive base model, but you can use alternatives cheaper than it.
How to use ChatGPT as a programmer
You can use ChatGPT for almost everything. ChatGPT is using the Codex Model(code-davinci-002 or code-cushman) for code generation. You can check the OpenAI playground and use these models for free (currently in BETA).
In my opinion, ChatGPT can be a suitable replacement for most searches on StackOverflow. Below are examples of using AI in your day-to-day programming job.
ChatGPT can fix your errors for you
Create and Improve SQL scripts using ChatGPT
You can improve your current SQL scripts by asking ChatGPT:
This is just an example. You can convert code from one programming language to another or even from a library.
Generating Dummy Data
ChatGPT helps generate mockups and dummy data for your needs. If you have a table or a class, you can ask the AI to generate some inserts.
It doesn’t matter if you need the data for your Excel file. Just show the ChatGPT what you want, give some examples, and take a step back. This AI is so powerful (😈).
You can use the OpenAI Codex service or ChatGPT for generating Regular Expressions.
HTML and CSS Generation
If you are like me, a person that doesn’t master HTML and CSS, I highly recommend you use Codex to generate what you need. Look, for example, how easy it was to generate a mobile-friendly form for 3 fields:
You can use it to generate different layouts, elements, and controls like:
- Many other controls
If you use a library like Bootstrap, you can specify that you want to generate these elements using the library.
Conclusion about ChatGPT and OpenAI services
ChatGPT is still in beta and doesn’t always give the best answer, but it’s a powerful tool that any programmer should use. Don’t expect to solve anything with OpenAI services, but it will help you so much.
Be careful when you use ChatGPT. Not every time you will receive a good answer.
I only gave you some ideas for using ChatGPT to enhance your code and productivity. If you want to see more ways how ChatGPT can leverage your productivity in programming, check this video of Mosh Hamedani: