I have been climbing up the learning curve for script-driven object creation and configuration, often first achieving the effect I want manually (by pointing and clicking) and then wishing to recreate it in Python code. I found myself poring over the Properties panels (various, but let's use Materials and Textures as a good example), digging for property names and setting values according to what I saw in my blendfile, copying and pasting and writing scraps of python to use later in various scripts.
This is, to put it mildly, tedious :-) Also, it's not super-simple to recognise which properties still have their default values and which I have changed (I'm sure there are old, wise Blenderistas who have all the default values for every panel memorised, but I am far from there yet). So immediately it occurred to me that a bit of metacoding was desirable, that someone surely must have written some Blender python code that writes Blender python code based on Blender data structures (this is a trick I've pulled many times in other languages); such an addon could (if the info is available) compare all property values to the default values, and generate boilerplate code that imposes all the user's settings for that object, ready to plug into whatever script you like. Blender seems so data-driven that I was sure I would find this addon with only a modicum of googling...
After more than a modicum I haven't found it yet :-) So I was wondering if anyone knows of it by some other name than "code generation" or "metacode". If only Blender's internal language was Tcl instead of Python, I'd be all over it already :-) but I'm still struggling with unfamiliar Python syntax, not ready to write anything really clever yet. Or maybe there's some nifty Blender/Python feature that does the equivalent, of which I'm not yet aware?
EDIT: I have learned as I do more research that it is possible to get Blender to cough up the code that builds UI panels, via Other-Click -> Edit Source on a live panel. What I wish, then, is that I could "Edit Source" on Objects as well, and get a complete "this code will re-create this object" dump. So far the answer seems to be No, but it seems to me that it involves about the same level of introspection as the UI panel source dump... so hey, why not?