This is indeed an important consideration. I see equivalently "bozo" mistakes in audio code all the time. Sometimes you can see or hear the results of such goofs out in the real world. You can hear the mistakes in the old Haiku system mixer for example.
While I agree it's right to be cautious about the potential for "code dumps" to just be abandoned unloved, I would always say that it's better for the code to be out there than not.
Definitely don't wait until you lose interest altogether, that's my recommendation. When you experience a brief burst of enthusiasm to work on it, use that enthusiasm to get a working codebase into Github or similar. Worst case, it's the most thorough backup you'll ever make in your life.