How can this be? Did you never learn how to use source control? Coding is the best way to explore the solution space, doesn't mean you use whatever you write right now.
Reasoning:
If you're coding, that counts as working. But if you're working, that doesn't mean that you are coding.
Obviously yours works too though (You have to do some programming, but you also have to do other things).