This repository contains materials for a course for self-taught Python programmers to use AI assists in a manner to provides consistent, well-engineered results. The core princile is that humans are in control. This is achieved by:
- Testable implementation. Humans have ways to test that their intent has been implemented.
- Comprehensible implementation. Code is implemented so that humans can read it and understand where and how features are implemented.
The specific skills taught are:
- Code understanding
- Code review
- Test construction and implementation
- Implementing (and co-implementing) small features
- Specification-driven implementation of large features
The course uses a running example to provide a context for the foregoing. The context is analyzing survey results from Google Forms for a hypothetical wholesaler of chocolates called "Wonder Chocolates".
The first problem is survey design. The compony serves several thousand retailer stores in North America, and is seeing substantial changes in purchasing patterns. They want to know: (a) why is this happening; (b) what chocolate offerings have larger demands; and (c) how this compares with competitive offerings that their customers are considering.
The students will do the following:
- "Vibe code" a survey by having Google Forms construct a draft. Part of this exercise is converting the Google Forms output to Mark Down.
- Critique the result, and construct your own survey
- "AI" review of the revised survey.
This is a programming exercise. The problem addressed is that responses can be non-standardized and/or contain typographical errors.
- zip code validity checks
- City, State (fill in blank)
- Incomplete survey: summarize as dict: response: number of occurrences with a response of None
This programming exercise looks at trends over time and geography using colorized maps. The following choices are considered:
- Total volume of product purchased.
- Volume of products by product line.
The analysis considers data over 5 years, estimating a line to the data with a measure of uncertainty.
Use Vader to do sentiment analysis for "Other comments" part of survey. Relate to product trends. Plot the results on a map.