🗓️ Week 09 - Writing Good Software and Using AI With Rules, Peer Code Review
Thursday is about recommendations: habits that make research code readable, checkable and reproducible, and how to use an AI assistant under rules you write (an AGENTS.md with boundaries, a STYLE.md, and short prompts). We apply them by reviewing the Week 8 example repository. Tuesday is the peer code review, done in class: you review a classmate’s repository, and that review is your peer review grade.
| Date | Time | Format | Topic | Project Milestone |
|---|---|---|---|---|
| Thu, Nov 19 | 1:30-3:05 pm | Lecture | Writing good software, using AI with rules, AI audit #2, AI ethics discussion | |
| Tue, Nov 24 | 1:30-3:05 pm | Lecture | Peer code review, in class | Peer review (in class, submitted by 3:00 pm) + repository review-ready by 1:30 pm |
| Thu, Nov 26 | — | — | No class — Thanksgiving Holiday |
There is no Tuesday-morning section this week. DS 9 is self-guided on Canvas: PDF only, no discussion check, due Wed, Nov 25 at 11:59 pm. With the two lowest DS dropped, if you have full credit on DS 1-7, you don’t need to submit it. Bring your laptop, charged, to both lectures.
✅ Review-ready checklist (by Tue, Nov 24, 1:30 pm)
Your repository is what gets reviewed, as it is at 1:30 pm on Tuesday:
🤖 AI & Learning This Week
AI status this week: No AI for the audit, the ethics discussion, or the peer review. AI audit #2 on Thursday. Project: allowed with disclosure.
Why: Writing readable code and reviewing others’ code are the skills that let you take responsibility for anything you submit, whoever or whatever wrote it.
This week:
- Thursday, AI audit #2: the Week 8 example repository was drafted with an AI assistant. It renders without errors, and it still breaks several of our good-software habits, one of which changes the results. Find them, without AI.
- Thursday, using AI with rules: write your project’s
AGENTS.md(what the project is, what an assistant must never do, how it should work, how to check its work) andSTYLE.md. Keep prompts short: stable context lives in those files; each prompt is one task, one file, and a diff you read. - Thursday, AI ethics discussion (about 15 minutes): where training data comes from and who consented, bias and fairness, environmental cost, and intellectual property. No right answers; bring a view.
- Tuesday, peer review: written by you, no AI, using the class code-review checklist. See the project guidelines.
See the AI Use Policy for the full rules.
👨🏫 Lecture Slides
- Thu, Nov 19 (Lecture): Writing Good Software, and AI That Follows Your Rules · example repository: 266A-example-analysis
- Tue, Nov 24 (Lecture): Peer Code Review
💻 Hands-on: Intro to R
See the Final Project Guidelines for project deliverable details.
