GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” ET6-Programming-With-Python/5_tdd_with_llms at main ยท MIT-Emerging-Talent/ET6-Programming-With-Python

Expand file tree

/

5_tdd_with_llms

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

5_tdd_with_llms

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.assets
.assets
 
 
examples
examples
 
 
exercises
exercises
 
 
README.md
README.md
 
 
lesson_plan.md
lesson_plan.md
 
 
prep_work.md
prep_work.md
 
 
test_driven_development.md
test_driven_development.md
 
 
workflow_with_llm.md
workflow_with_llm.md
 
 
workflow_with_llm.mp4
workflow_with_llm.mp4
 
 
workflow_without_llm.md
workflow_without_llm.md
 
 

README.md

Outline

Test-Driven Development with Large Language Models

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.

  • Learning Objectives
  • Test-Driven Development
  • CoAIthoring Workflow
  • Prep Work
  • Lesson Plan

Learning Objectives

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.

TDD without LLMs

  • ๐Ÿฅš 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.

TDD with LLMs

  • ๐Ÿฅš 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.

Situating LLMs

  • ๐Ÿฅš 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.

Non-Objective: Prompt Engineering

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.

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.