ChatGPT for Developers

Published 2 years ago 4 min read
ChatGPT for Developers

What is ChatGPT

ChatGPT is an AI tool that was developed by OpenAI. Within 5 days of its release in November 2022, it gained over 1 million users. Many people now use it for a variety of purposes, including content writing, letters, resume ideas, and much more.

How does it work

The artificial intelligence-based language model that ChatGPT uses has been trained to predict text by identifying patterns and structures in sizable text datasets. ChatGTP’s GPT3 model has been programmed to comprehend natural language. It is an ideal choice for businesses, researchers and developers to leverage the power of AI into their work.

Limitations of ChatGPT

Just remember that Chat GPT does have limitations whereby it can sometimes provide incorrect, harmful and biased information. It has been trained with data up to 2021, so you may get outdated answers, especially if given coding answers.

How NOT to use ChatGPT

Do not use ChatGPT to learn how to code, whilst the coding responses it gives may be functional, they may not always be correct or optimal code.

Do not use it for assignments such as school or university assignments. You can use it as a starting point to give you an outline however there are AI tool detectors which can detect how much information has been provided by AI and get you caught for plagiarism.

Get Started with ChatGPT

Go to chat.openai.com. You will need to have an account to use it so simply sign up using your email.

Once logged in, ChatGPT will display a text prompt for you to type what you want to ask and provide an answer based on your question. You can further narrow down your questions to the specifics of the response and gives and ask it to elaborate or summarise and it will provide you with an answer accordingly. It will seem as though you are simply speaking with a live messaging chat tool because ChatGPT has been trained to comprehend natural language.

General Examples

There are some general questions you can ask ChatGPT :

  • Write me a resume for a software developer role. I have 5 years of experience in Golang. Javascript, React and Typescript.
  • Write me a cover letter for a front-end web developer role. I have 4 years of experience in HTML, CSS, Javascript
  • Recommend me books for learning Javascript
  • Write me a contract between me the freelance web developer and the client for developing a website. 50% of the total cost is due upfront before work begins; the remaining 50% is due when the work is finished.

Coding Examples

Here is how you can leverage ChatGPT to help you with coding:

  • Find mistakes within your code; If you provide it part of your code which you are having trouble with and tell it what exactly you are trying to output. It will give you an updated code with an explanation of where you went wrong and how you can fix it.
  • Questions like: Write me a simple Next.js and Firebase integration
  • Writing Unit Tests – You can provide a piece code and ask ChatGPT to write you a unit test for it
  • Convert from one programming language to another. i.e. if you have code written a piece of code in Java, you can ask for it to be converted to Python

Will ChatGPT Replace your Job?

The simple answer is no, whilst AI tool such as ChatGPT is excellent for giving you good coding answers, it has their limitations and the output they will give will not always be correct. The tools are also only as good as you what you provide and train them on. The majority of the coding-based responses are based on knowledge gained from open-source code. Many private enterprise repositories are still hidden from the public eye and are inaccessible to tools like ChatGPT.