tl;dr:When prototyping code, make it ugly. Generally speaking, the number of iterations correlates more closely to success than the total time spent. This way, you are forced to go revisit your code, streamline and beautify it.
tl;dr:The "magic of a gelled team is that they know how to work together". The responsibility of a team's manager is to understand the inter-relationships that create that magic.