In this module, we'll walk through a single iteration of the software engineering life cycle, using AI systems to assist in software implementation and testing. The emphasis is on writing a software specification as the blueprint for design and implementation: making ideas tangible before you write any code.
1. Domain fluency: requirements from real users and real needs Translate what users need into requirements a team can build and test.
- What is software engineering, and where have we already been in its life cycle?
- What makes a requirement "good"?
- Where do functional and non-functional requirements come from in agricultural software?
- How does documentation help stakeholders come to consensus on what to build?
- Goal: Write traceable, testable, evidence-based requirements for a human-centered feature.
2. Technical fluency: building from a specification, with AI Implement one feature from your own specification, and check the result against it.
- How do you break a feature into tasks an AI assistant can build?
- How do you read, and trust, code that someone else (or an LLM) wrote?
- How do you verify code against a requirement, and validate it with a user?
- What is the minimal set of documentation a living codebase needs?
- Goal: Extend your Django app with one AI-assisted feature, verified with code tests and validated with a user test.
Lecture materials including handouts, demos, and quizzes.
- Lecture 6.1
- Lecture 6.2 - Graded in-class activity: walkthrough and requirements build-out (handout)
- Lecture 6.3
Instructions for the lab, including submission instructions, are in the lab 6 subfolder.
Each lab has a specific AI use policy, specified in the lab itself. As a reminder, the overarching AI policy is available in the main repository README.
If you are a Purdue ASM 532 student: Check Brightspace for current instructions, due dates, and other submission details.
Total: 15 (5 in-class activity + 10 lab).
The walkthrough and requirements build-out: your observations of your partner using your app, and the first rows of your requirements table, marked by your partner.
| Points | Criteria |
|---|---|
| 0 | Missed |
| 2 | Incomplete — doesn't have to be "right" |
| 5 | Complete - doesn't have to be "right"! |
- Specify —
SPEC.mdsections 6-7 (STEPs 1-3)- Evidence from the walkthrough; F0; the fixed set of requirements (3-5 Musts, at least 1 NFR, at least 1 Won't) in EARS, each Must with an acceptance check; a build plan whose tasks name their requirements.
- Build — the feature (STEPs 4-5)
- The feature runs; the changelog has an entry per task; 4+ commits naming task and requirement IDs.
- Verify —
tests.pyandSPEC.mdsection 8 (STEPs 6-8)- One code test per Must; one user test; the V&V log with each gap named; both reflection questions answered.
| Points | Criteria |
|---|---|
| 0 | Missed or low effort |
| 5 | Incomplete: one or more parts missing |
| 10 | Complete: all three parts |
See CREDITS.md for image sourcing/attribution and non-image reference citations used in this module's slides and lab.
This work by Ankita Raturi, Purdue University is licensed under CC BY-NC-SA 4.0.