How to implement Dependency Injection Design Pattern in Drupal 8?
Plan your strategy to use Drupal at the best of its capability and performance. As Drupal is written in PHP it requires that a module is loaded when needed, therefore it is highly recommended to install a module only if it is really necessary. Decide in advance which modules to use in your project.