Well, it's a good question and while not Magento specific per se, it's a problem extension developers often disregard. I personally try to avoid certain approaches that are either deprecated or too new. For example for Magento 1 I use array() even though newer PHP versions support shorter [] syntax.
Read release notes, test, modify. Rinse and repeat.
Tanel Raja