“Decoupled Drupal” sounds cool and just about everyone else seems to be either doing it or talking about it, so it must be the best solution for you, right? Well, maybe. As with most things, the answer is more nuanced than one might think.
Summary: Test-driven development (TDD) keeps you focused, encourages critical thinking, and improves code confidence. Here are some basic principles that have helped me write effective tests and which have proven useful when introducing other developers to the practice.
Despite all advice to the contrary, there are valid use cases for running npm via sudo. We encountered just such a case in our own work, and with it some challenges that made us scratch our heads and dive into man pages.
In part one we learned how implement a Google Places Autocomplete widget on an address form. In doing so we discovered a critical bug in the widget that degrades the user experience. Let's take a closer look and resolve this bug.