Large Language Models (LLMs) can generate lots of (mostly) working code very quickly. If you're not careful, LLMs can make you a sloppy programmer and slow down your progress in the long run. If you use LLMs carefully, you can learn more quickly and become a more efficient developer. This workshop covers one strategy for collaborating with LLMs to go from a blank page to finished code that is readable, documented, and well-tested.
Priorities: ๐ฅ๐ฃ๐ฅ๐ (click for more info)
Learning objectives for this workshop are labeled so you can prioritize your study time. The emojis show the minimum mastery you are expected to achieve for each skill, but there is no maximum! If you have the time you should aim to master all of the skills introduced in this workshop.
- ๐ฅ You are expected to master these skills. They are the foundations you will need to move forward.
- ๐ฃ You are expected to be comfortable with these skills. It's ok if you still need help sometimes.
- ๐ฅ You are expected to be familiar with these skills. It's enough to recognize them in practice and apply them with help.
- ๐ You are not expected to know these skills, but they are important if you want to excel. You should only focus on these after mastering the ๐ฅ, ๐ฃ and ๐ฅ objectives.
- ๐ฅ You can translate an open-ended problem into a complete docstring with doctests.
- ๐ฅ You write unit tests for a function before the function exists.
- ๐ฅ You can stay focused on passing one test at a time when writing a function.
- ๐ฅ You run your unit tests every time you make any change to your function, making sure they still pass.
- ๐ฅ Every time you want to change a function's behavior, you first update the tests before changing the function.
- ๐ฃ When a test fails, you can determine if it was the test or the function that is not correct.
- ๐ฃ You can iteratively improve your function's implementation and still pass your test suite.
- ๐ฅ You can use an LLM to generate code by providing a clear prompt and code for context.
- ๐ฅ You can comment, understand and review code generated by an LLM, judging if it is correct or not.
- ๐ฃ You can collaborate with an LLM to find and fix bugs in your code.
- ๐ฃ You can collaborate with an LLM to refactor a program's strategy or implementation without modifying its behavior.
- ๐ฃ You can polish and personalize your final code to showcase your understanding instead of just another program generated from an LLM.
- ๐ฅ You are aware of concerns that LLMs may generate responses in violation of copyright law, or that violate data privacy.
- ๐ฅ You are aware that training and running LLMs consumes more energy than older tools like internet search.
- ๐ฅ You are aware that LLMs can hallucinate - they can produce responses that feel correct but are actually untrue.
- ๐ฅ You are aware that LLMs can, despite many guardrails, produce responses that perpetuate stereotypes and misconceptions.
This workshop does not cover prompt engineering: how to carefully construct sentences and questions for the LLM to get better results. Prompt engineering is a whole topic of it's own. You can learn more about it online by following tutorials, reading articles, and practicing.
Instead we will zoom out from specific LLM prompts and focus on how you can integrate LLMs into your development workflow.