Bugger, now that's a good question with possibly as many answers as builders (slightly exaggerated, to be honest).
- If you still have to use adhesives, don't apply primer or paint on the bond area. In general adhesives and paints are no happy partners.
- Another limitation is accessibility. If finish has to be applied and the area is not accessible any more after adding some more details, paint it beforehand. Parts like stanchions, inside of the Buffalo- and monkey rails, railings, waterways, bowsprit all painted before installation with all bond surfaces taped off.
- As far as the hull goes; I painted the hull before adding any deckstructure. It's rather easy to flip a hull without deckstructure upside down. Add structure in the mix and... Make sure to protect your beautiful painted hull against accidental damage, which will occur regardless.
- Be prepared for touch-ups.
It still boils down to planning ahead ánd accepting the occasional "bugger" moment; Murphy is and will be a patient traveling companion.
Build logs on, amongst others, SOS may also give some pointers as when to paint certain parts.