Like
dragonchild, I go with the mental image.....one picture is worth a thousand words. I never was good at remembering poems, limericks, or jokes; but I can pull an image out of my memory easily. Also, If you are not actually cramming for a closed book test, why not just take a quick look at some code snippets (either in your personal snippet lib or search groups.google.com).
However, there was one recently that I do use, regarding the packing rules in Gtk2, which I just can't seem to get straight without looking
at previous examples.
$vbox->pack_start ($widget, $expand, $fill, $padding);
it's the expand, fill, padding order that always gets me. So I remember
"extra fries please";