1. Layers and Boundaries

[THEORY]

[COMPREHENSION CHECK]

1. The shop switches its order input from semicolon-separated lines to JSON. In the layered version of this lesson, which code has to change?

2. A teammate adds a println with the remaining stock to OrderService.place. What is wrong with that?

3. Marketing wants orders of more than 50 units to need approval. Where does that rule belong?

4. To save a call, someone changes handle to use StockStore directly: it checks store.available(product) and calls store.remove(...) itself. What is the problem?

5. A colleague wants to split a 15-line script into presentation, domain and data access classes. The script converts one CSV file into a report and runs once a year. What is the best answer?