NotePD Loader
Ideas Post
ProfileImg
Profile

10 ways to use Chat GPT as a programmer

    1. Learn new things

    I asked it two questions:

    what is subtype polymorphism? can you give an example in PHP

    and next:

    can php use multiple interfaces in one class?

    And in an explanation of the concept, it gave me example code that I could paste into my terminal and run. That is amazing. When I was coming up 20 years ago learning this, I would have to read a paper book and then type anything that I wanted to see.

    2. Quickly transform objects from one type to another

    Render this XML as JSON, render a CSV file as JSON.

    3. Have it write scripts for you to transfer objects from one type to another in the language of your choice

    "write a bash script that will render a CSV file as JSON."

    4. have it do things for you while you concentrate on your next task

    Write instructions for it. Then paste your instructions and let it work for a few minutes while you do the next round of ideation or go get a cup of coffee.

    5. Paste error messages to get instructions on how to fix them

    6. Describe a complete application and have it write the first draft

    7. Leave your comfort zone

    If you usually write in PHP, ask it to do a task in Python, Bash or Node. It is a great way to learn new syntax.

    8. Have it create avatars for your customers

    9. Have it write unit tests

    10. Have it write CSS for you

    Paste in your HTML code and tell it that you want three columns using Bootstrap and it will create the CSS classes for you.

0 Like.0 Comment
Comment
Branch
Repost
Like
Profile
Sheeraz like the post
Comment
Branch
Like
0
10967
0
0
Comments (0)

No comments.