feat: reorganize workbook into 3 tracks (core, engineering-2026, ecosystems)

This commit is contained in:
soda64 committed 2026-11-30 22:30:53 +01:00
1 parent 82677455b2
commit 2e002b6176
64 files changed
+2295 -196

No files matched your search

@@ -0,0 +1,20 @@
# 10 — CRUD w pamięci (In-Memory Repository)
## Zakres
* Operacje **Create, Read, Update, Delete** na strukturze domenowej `Task`
* Walidacja wejścia (pusty tytuł -> `RepoError::InvalidTitle`)
* Zarządzanie stanem i auto-inkrementacją ID w `BTreeMap<u64, Task>` (deterministyczna kolejność)
## Zadania (`src/lib.rs`)
Zaimplementuj `TaskStore`:
1. `create(&mut self, title: impl Into<String>) -> Result<Task, RepoError>`
2. `get(&self, id: u64) -> Option<&Task>`
3. `list(&self) -> Vec<&Task>`
4. `update_title(&mut self, id: u64, title: impl Into<String>) -> Result<Task, RepoError>`
5. `mark_done(&mut self, id: u64) -> Result<Task, RepoError>`
6. `delete(&mut self, id: u64) -> Result<Task, RepoError>`
## Uruchomienie testów
```bash
make test PKG=core10-crud-repository
```