I imagine there must be a term/idiom/phrase for polishing something too early...
- Painting the walls of a room before completing other work which may accidentally damage them.
- Adding detail to a section of a drawing that you may likely need to radically change later (and lose the detail work)
- Optimizing a software function which might be deemed unnecessary before it's even used
Though I can't seem to think of what this is called (no luck with searching either).
Originally I posted this in the 'workplace' stack exchange but was recommended to try here.