diff --git a/culinaryServer/culinaryServerListSequenceTheory/task.md b/culinaryServer/culinaryServerListSequenceTheory/task.md index 33a52a9..c8825a8 100644 --- a/culinaryServer/culinaryServerListSequenceTheory/task.md +++ b/culinaryServer/culinaryServerListSequenceTheory/task.md @@ -14,16 +14,16 @@ To ook this sup, we need to pull tomatoes from the fridge, put them into the kit If we work with a _list_ of tomatoes, then we will do it exactly as we described, since we will be working with all the tomatoes per action, e.g., get all tomatoes, then cut all the tomatoes, etc: -![Current state](TODO: picture that describes this process) +![Current state](../../utils/src/main/resources/images/master/chef/explanations/soup_cooking_list.png) If we work with a _sequence_ of tomatoes, then we will handle each tomato separately until we get the necessary number of tomatoes, e.g. we will get one tomatoe, put it into the kitchen, cut it, put into the pot. Then we will repeat this action with the next tomato, and etc: -![Current state](TODO: picture that describes this process) +![Current state](../../utils/src/main/resources/images/master/chef/explanations/soup_cooking_sequence.png) The first approach works good in the case, when you have enough space in the kitchen, but if you don't, probably the second one will be better - since it cn handle a long _sequence_ of tomatoes with a limited space in the kitchen. -![Current state](TODO: picture 1 case when many tomatoes and do not have enough space on the table) +![Current state](../../utils/src/main/resources/images/master/chef/explanations/soup_cooking_no_space.png) This way of computing is called `lazy computing` and it is the main idea of the sequences. diff --git a/culinaryServer/culinaryServerSequenceInitialization/task.md b/culinaryServer/culinaryServerSequenceInitialization/task.md index 3ffcfd4..5ccffff 100644 --- a/culinaryServer/culinaryServerSequenceInitialization/task.md +++ b/culinaryServer/culinaryServerSequenceInitialization/task.md @@ -19,9 +19,9 @@ val spices = generateSequence{ shelfWithSpices.getNextValidOne(...) } In this case we will not actually have these `spices`, `shelfWithSpices.getNextValidOne(...)` will be called each time when it will be necessary, i.e. when we will actually need the next jar of species. For example, if for each jar of species we need to add it into the soup and we want to add only 3 different species, it will be done in the following way: -![Current state](TODO: a picture where we get and handle each piece step by step) +![Current state](../../utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices.png) Consider the second example. A _terminal_ function is necessary to show the Kotlin compiler, that you actually ready to proceed with the actions, e.g. `take(5)` or `toList()` for finite sequences. From the example above, if we don't use `take(5)` and in theory have infinite shelf, we will not be able to handle all of them, we do have limited resources on our laptop (or in a pot from the example). -![Current state](TODO: a picture - limited size of the pot, and we cannot handle all of them) +![Current state](../../utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices_no_space.png) diff --git a/culinaryServer/lesson-info.yaml b/culinaryServer/lesson-info.yaml index fd65a4a..9309ccd 100644 --- a/culinaryServer/lesson-info.yaml +++ b/culinaryServer/lesson-info.yaml @@ -1,6 +1,5 @@ type: framework custom_name: Master chef -is_template_based: false content: - culinaryServerIntroduction - culinaryServerHowToRun @@ -12,3 +11,4 @@ content: - culinaryServerAddSpices - culinaryServerCookSalad - culinaryServerCookSmoothie +is_template_based: false diff --git a/utils/src/main/resources/images/master/chef/api/food_models.png b/utils/src/main/resources/images/master/chef/api/food_models.png new file mode 100644 index 0000000..5780118 Binary files /dev/null and b/utils/src/main/resources/images/master/chef/api/food_models.png differ diff --git a/utils/src/main/resources/images/master/chef/explanations/soup_cooking_list.png b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_list.png new file mode 100644 index 0000000..8ea750a Binary files /dev/null and b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_list.png differ diff --git a/utils/src/main/resources/images/master/chef/explanations/soup_cooking_no_space.png b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_no_space.png new file mode 100644 index 0000000..031c10a Binary files /dev/null and b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_no_space.png differ diff --git a/utils/src/main/resources/images/master/chef/explanations/soup_cooking_sequence.png b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_sequence.png new file mode 100644 index 0000000..2b38643 Binary files /dev/null and b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_sequence.png differ diff --git a/utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices.png b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices.png new file mode 100644 index 0000000..540f942 Binary files /dev/null and b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices.png differ diff --git a/utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices_no_space.png b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices_no_space.png new file mode 100644 index 0000000..749b049 Binary files /dev/null and b/utils/src/main/resources/images/master/chef/explanations/soup_cooking_spices_no_space.png differ