With Drupal 8 on the horizon, how can one develop on the currently stable Drupal 6 and 7 versions while preserving future compatibility with Drupal 8 and possibly Silex and Symfony ?
This talks explains how to use independent decoupled components brought in by autoloading and using dependency injection to achieve this goal, the exemple being a commenting service with 78% shared code between the Drupal 6, 7, 8 and Silex versions.