this exercise is going to bring together lots of concepts.
learning outcomes include:
- git
- github
- functions
- TDD
- seperation of concerns
- DRY CODE
- DOD
To run the naan factory do the following:
import naan factory
run_factory()
- write the test
- run it, and read the error
- code and make it pass the test
this helps with:
- stop over engineering
- maintainable code
- reduce technical debt
- goes well with agile and working code
- errors can be your guide in complex systems
how it works is that we write unit tests.
test single pieces of code. like a function
base of test
- usually has 3 phases
- setup phase (know variables)
- calling of function / piece of code with know variables
- asserting for expect output
#1
as a user, i can use the make_dough with water and flour to make dough
#2
as a user, i can use the bake_dough with dough to get naan.
#3
as a user, i can use the run_factory with water and flour and get naan