You've already forked rust-tutor
improve solution to second exercise
- create new function to search substrings - update PROGRESS.md
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
- [ ] Wallet Module Structure (crypto)
|
||||
|
||||
### Milestone 5: Chapters 8-9 (Collections, Error Handling)
|
||||
- [x] Vec Statistics Calculator (Vec, HashMap, basic math) - 2026-01-15
|
||||
- [ ] Contact Manager (HashMap, Option, Result)
|
||||
- [ ] Log Parser (Vec, filtering, file handling)
|
||||
- [ ] Transaction Pool/Mempool (crypto)
|
||||
@@ -58,7 +59,9 @@
|
||||
- [ ] Async HTTP, JSON parsing
|
||||
|
||||
## Reflections
|
||||
*Space for learning insights and "aha" moments*
|
||||
|
||||
### 2026-01-15 - Vec Statistics Exercise
|
||||
**Key Learning:** Type conversion and ownership struggles are normal! Spent 45min wrestling with `usize` vs `i32` vs `f64` for vector length, and dealing with moved values when iterating multiple times. The compiler suggestions led to complex generics at first, but simpler `as f64` casting solved the type issues. HashMap frequency counting clicked once the ownership issues were resolved. **Insight:** "Terrible but working" code is a valid first step - iterate to clean it up.
|
||||
|
||||
---
|
||||
*This file tracks overall learning journey and milestone completion*
|
||||
Reference in New Issue
Block a user