What my worked examples used to look like... and why I changed my mind

What is the research surrounding effective worked examples, and what are the four principles I try to stick to?