@smach Most of the time I start scratching ideas on a notebook (Quarto nowadays). When a bunch of code starts repeating once and again, then it's time to put it into a package. Then refactor, extract functions from the notebook and the wheel keeps spinning.
The original notebook usually ends up being a complete junkyard, but hey, that's maybe an accurate image of my brain. 😆 🧠