Programming with AI
Ethan Swan
UC Data Science Symposium, 2023
AI tools speed up coding by between 1.5x and 10x
That’s what we’re here to talk about!
Biggest gains:
Little/no gain:
About me
Agenda
Overview of AI coding assistants
Types of AI assistants
We’re going to talk mainly about chat and autocomplete today, with a focus on the most popular offerings of both (OpenAI Chat GPT & GitHub Copilot)
Assistant Type | Examples |
Chat | Chat GPT, Anthropic Claude |
Autocomplete | GitHub Copilot |
Static Analysis | Codium, Code Whisperer |
AI Chat
AI Autocomplete
How does AI help with coding?
Learning new languages and frameworks
Boilerplate and repeated code is a breeze
Figuring out “best practices”
Adapting your workflow to AI
Structure is your friend
Static typing
Don’t worry so much about DRY
Specific strategies: writing functions and classes
Specific strategies: writing tests
Specific strategies: writing tricky code
Specific strategies: writing code for a common task
Specific strategies: starting a new project
Specific strategies: “tuning”
Beyond coding: tech choices
Beyond coding: career
Beyond coding: hiring & management
Artificial stupidity: AI weaknesses
Novel business logic
Bias toward older tech
Garbage in, garbage out
Skill decay
Internet reliance
Last thoughts
AI is here to stay