Drupal 8 has made a huge step in the right direction of writing maintainable code. They adopted the services model from Symfony 2. This model allows you to register classes (services) to a container. This container is named the “dependency container”. Other classes, modules, plugins etc. can now access these services through the dependency container.

The great value of using dependency injection is that you don’t have to hard code new instances of the class anymore. The dependency container task is simple. Keep a registry of classes with the needed arguments.

Difference with Drupal 7

In Drupal 7 classes were registered without namespaces (most of the time) and called through either static methods or creating a new instance of the class hard coded. …


Atom is a hackable text editor for the 21st century, built on Electron. Since the release of Atom i’ve had a love hate relationship. The editor itself was looking beautiful with an awesome community of people developing plugins. But on the other hand it was lacking functionality like autocompletion and indexing my project like the IDE PHPStorm. There were some packages available that implemented this functionality but they either performed bad or didn’t work at all. Until now.

Lets setup the editor so we have more IDE like features but still keep it light weight enough to develop quick and smooth. …

About

Robin Drost

Full stack engineer. Interested in new technology and Crossfit.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store