It's not about the legs; it's about the heart and the mind.
Is it possible that software is not like anything else, that it is meant to be discarded: that the whole point is to see it as a soap bubble?
Habit is far more dependable than inspiration. Make progress by making habits. Don‘t focus on getting into shape. Focus on becoming the kind of person who never misses a workout.