Designing a Gadget Advice from Others
1. Keep it quick and dirty, initially.
Mock up as flat html, then write initial gadget code to concatenate strings in the gadget class that just build the block of html.
2. Identify repetitive blocks/activities and try to use looping for tasks.
3. Make it context sensitive using styles (fonts, colors, messages, graphics, etc.).