Search
6 results for “bbelderbos”
-
The behavior doesn't change and the test suite will help you refactoring it: 22 tests pass before + after.
(You also finally learn what `uv init` was setting up behind the scenes in Week 1, when we skipped it with `--no-package`)
Let me know how you go ...
-
This week you'll refactor it:
→ Split it into a journal package with a src/ layout (models.py, db.py, cli.py)
→ Group the storage functions into a `JournalDatabase` class, because every function was being passed the same db_path
→ Move shared test setup into pytest fixtures in conftest.py
→ Add an entry point to pyproject.toml so uv run journal works like an installed tool
-
Week 4 of my #Python Foundations course is live. 🎉
This week there are no new features and that's on purpose. 🚀
By Week 3 the journal app is a 117-line main.py that holds the model, the storage and the CLI.
It works, but that one file is starting to hurt. 💡
-
"Let's just make a quick tracker."
6 months later: 12 linked sheets, manual errors, zero version control, and everyone holding their breath during month-end.
If a spreadsheet relies on manual copy-pasting to function, it’s not a tool, it’s hidden tech debt.
Who's been there? Who's there right now?
What's the most fragile Excel sheet holding your ops together?