Post type dis­co­very

Se­ve­ral months ago I wro­te about swit­ching from ex­pli­cit to im­plict post ty­pes for my blog, and loo­ked a litt­le at ge­ne­ra­ting an Ac­ti­vi­ty­Stream from con­tent ob­jects (posts) ba­sed on their pro­per­ties. My thoughts have pro­gres­sed on both of the­se things sin­ce then, and I've also ad­ded a few more post ty­pes to my site. Yes­ter­day Tan­tek pu­blished a working draft of a post type dis­co­very al­go­rithm so to add to the dis­cus­sion, here is the ver­si­on of this that I curr­ent­ly im­ple­ment; si­mi­lar but dif­fe­rent. I most­ly use this to dis­play dif­fe­rent icons by posts.