Here, I’ll share some learnings from using ChatGPT and GitHub Copilot to write code. I mostly write Rust, Typescript, and some Bash nowadays, so its knowledge of those languages will guide my learnings.

First of all: try it. Depending on your usecase, it may be extremely useful. Here’s how I tend to see the two models:

ChatGPT:

Copilot: I’ve found Copilot useful generally when producing boiler plate. If I already have an endpoint handler, it can easily generate a new endpoint from a function name. It’ll largely reproduce existing code with slight tweaks, but sometimes it will modify things according to its own “opinions”, which often breaks my code in subtle ways.