essential skills for tdd part 1
TRANSCRIPT
Outline1. What? 2. Why? 3. Where do we begin? 4. What is the focus? 5. What are the artifacts? 6. When do you stop? 7. Tips
Problem Domain Analysis1. What? 2. Why? 3. Where do we begin? 4. What is the focus? 5. What are the artifacts? 6. When do you stop? 7. Tips
1. Create a list of all foods 2. Create CSV header 3. Create a row for each food item 4. Save CSV file.
Retrieve list of all foods Create the csv file Create the csv header for each food in the list : create a row save the csv file
foods = Food.all csv = Csv.new(file_name) csv.header(header_values) for each food in foods csv.row(food) end csv.save
Solution Domain Analysis1. What? 2. Why? 3. Where do we begin? 4. What is the focus? 5. When do you stop? 6. What are the artifacts? 7. Tips