Junior dev here: how did you get from "code that works" to senior-level Python?
I'm a junior developer at my firm, about 1–2 years in. My code works, but when I compare it to what our seniors write, theirs is cleaner, easier to follow, and holds up better when requirements change. I want to close that gap deliberately instead of hoping it happens over time.
For context, I'm comfortable with functions, loops, classes/OOP, and basic testing. I mostly work on automation and scripts, and I've noticed my scripts tend to start small and turn messy as they grow.
I'd love advice on:
What actually separates senior-level Python from junior-level? Is it mostly design, naming, testing, or something else?
How do you structure automation code so a quick script doesn't turn into an unmaintainable mess?
Books, codebases, or resources that changed how you write code. Are there open-source projects worth reading?
Habits that helped you most, like code reviews, refactoring old code, or writing tests first.
Common junior mistakes you'd tell your younger self to stop making.