Hello 👋
Today's post is a bit more technical. I would like to share how Chat-GPT can be used to do boring tasks, and save time to spend on coffee or other important things ☕
I work in a technology stack where PHP is the king of the backend, and ReactJS rules the frontend. Here's how you can quickly generate code that will work for preparing a boilerplate for a specific solution.
Of course, this is not a complete solution, but considering the speed of generating this code vs the speed of typing on the keyboard, we already have a good gain here. See the example below.
I wanted to generate a simple form for editing users. Therefore, I need:
a table in the database
some model
a form on the frontend
an API endpoint (which I didn't do because if you want to, try doing it yourself)
I used the 3.5 turbo model for this purpose, which is sufficient for simple "repetitive" things.
1. Table in the database
Prompt
Result
2. Model
prompt
result
3. Form
prompt
result
4. Validation improvement
prompt
result
Summary
Using Chat GPT to generate boring, less ambitious code is a game changer in my opinion. You can even have it in your IDE. Just use Github Copilot, which changes the experience of writing code - seriously. However, I will write about it another time as I am still testing it.
Meanwhile, let me know in the comments if and how you use Chat GPT to make your life easier. Because you use it, right? Come on, tell me you do 😅
Cheers ✌️