ChatGPT — As a Programming Tool

David Such
11 min readMar 27, 2023

Although ChatGPT is unlikely to be replacing programmers anytime soon, it can be a useful coding assistant. In this article, we will investigate how you can use ChatGPT (GPT-3.5) as a programming tool, and compare it to the earlier model found in the Open AI Playground (GPT-3). For simplicity, we will use mostly Python in our examples. Despite its limitations, ChatGPT is seriously impressive.

Source: DALL-E, Prompt: artificial intelligence assisting programmers, digital art

ChatGPT can be used with over 40 programming languages (Figure 1). Let’s start with a web scraping application in Python.

Figure 1. Programming Languages known by ChatGPT [source]

Setting Up a Python Environment

In order to run these scripts on your desktop, you are going to need a working Python interpreter and some form of IDE to enter your code and execute it. You can download the latest version of Python from python.org. This includes the free IDE called IDLE which we will use in our examples. If you have a Mac, you can check what version of Python you…

--

--

David Such
David Such

Written by David Such

Reefwing Software · Embedded Systems Engineer · iOS & AI Development · Robotics · Drones · Arduino · Raspberry Pi · Flight Control

No responses yet