My favorite code that I constantly use is from your sts commands:public static void SetContentTypes(SPWeb web, SPList list, string[] contentTypesToAdd, string[] contentTypesToDelete, string[] contentTypeOrder)I constantly use this in features to dynamically add content types to lists and libraries instead of using the XML methods.