Skip to content

It Started With Copy & Paste

I’ve been programming since 1996. By the time ChatGPT came out in November 2022, I’d seen my share of changes in the technology we use to build software.

My first reaction was suitably professional. I wanted to play with it.

At first I asked questions I would usually have typed into a search engine. Eventually it occurred to me that I could give ChatGPT some of my own code.

I pasted a function into the chat and asked the model to optimize it using Lodash/FP, a JavaScript library for functional programming.

The result was useful enough to keep me experimenting. After all, I could tell a system in plain language how I wanted it to change a piece of software and get a specific suggestion back. All I had to do was copy and paste, something I’d be doing for a surprisingly long time.

What version of Angular are we on, anyway?

Section titled “What version of Angular are we on, anyway?”

My next experiments involved Angular, a framework I used extensively at work. I asked a simple question.

“What’s the current version of Angular?”

The answer was four major versions behind. I’d found a fairly efficient way to get to know my new assistant’s limits.

OpenAI had documented the limits of what the models knew. As late as March 2023, when it released GPT-4, OpenAI gave September 2021 as the cutoff for most of the training data. I didn’t have direct internet access through the chat in those early experiments, either. It wasn’t until March 2023 that OpenAI announced experimental browsing.

For general programming tasks, that wasn’t necessarily a problem. Things got trickier when I asked about current Angular concepts. The suggestions sounded plausible, but some were out of date or just plain wrong.

I already knew the answer to my question about the version. Judging the answers to questions I couldn’t yet answer myself was a little harder.

The way I worked changed gradually. I used AI to write documentation, organize and edit requirements, fix small functions, and write unit tests, which automatically check individual parts of the software. These were practical tasks where AI saved me work right away.

I had no particular interest in using as much AI as possible. I mostly wanted to spare myself some unnecessary work. That motivation stuck with me for a surprisingly long time.

The routine was simple. I copied code from my development environment into the chat, explained what I wanted, checked the answer, and pasted the useful parts back into the application.

The AI had no direct access to my project. I chose which snippets to share and what context to give it. I also had to decide whether a suggestion made sense in my application in the first place.

The developer is the only link between the editor and the AI chat, choosing what to send and reviewing what comes back.
I chose what went into the chat and which suggestions I copied back into the application.

So I was still the developer, the one assigning the work, and the reviewer. I also had a side job carrying messages between two systems. That didn’t bother me much at first. I was still trying to find out what was possible.

Looking back, those first experiments were technically modest. I was trying out a language model on individual tasks where it might help. Autonomous development wasn’t on the agenda.

Four separate panels show documentation, requirements, code, and unit tests.
These were individual tasks I could hand to the AI.

Over time I found myself asking a second question at work. Alongside “How do I solve this?” came “Which parts do I still have to do myself?” I had no idea then how far that question would take me.

For now, I had a function, a chat, and a clipboard. That would do for a start.