📘 Understanding Drupal: A Complete Guide to Caching Layers — my new book is out now!
ContribKanban 2019 update
Testing your Drupal code base for deprecated code usage with PHPStan
Last month I wrote about writing better Drupal code with static analysis using PHPStan.
Come to MidCamp and kick off contribution sprints for DrupalCon Seattle
Writing better Drupal code with static analysis using PHPStan
PHP is a loosely typed interpreted language. That means we cannot compile our scripts and find possible execution errors without doing explicit inspections of our code. It also means we need to rely on conditional type checking or using phpDoc comments to tell other devs or IDE what kind of value to expect.
Two Zero One Nine
PhpStorm protected branches feature
Recently, while working on a little project, I decided to clean up some of the commits on the master branch before pushing it to Packagist. To be lazy, I decided to use PhpStorm's interactive rebase tool instead of the good ole command line.
BUT I COULD NOT! And I started to go mad.
People often tell each other to have a good day. But, it has become one of those customary things to say without much meaning behind it. Which is a shame, because we really should remind ourselves to have a good day. A few weeks ago my son Aiden left me a note, which I found after dropping him off at school.
Fall has felt like a whirlwind. I caught myself chasing after the eternal pile of work that needed to be done and not recognizing the victories of the day. Instead of letting myself have a good day, I was forcing myself to a negative for the next day. I wasn't having bad days, but I found myself less than chipper. I found myself working at home more than riding my bike to the coworking space downtown, I had stopped running and reading. I didn't fill those gaps with work, I just took moments to sit.
It is funny how a little note can cause you to stop, think, and act. Despite the wintry midwestern weather setting in (~30°F / ~2°C) I have been able to pick up running again and get my reading back on track. Sometimes you just need a reminder to focus on the victories of the day and remember you did all you can do.
Running Drupal's Nightwatch test suite on DDEV
This is the third, and final post in my series on running Drupal’s various test suites using the DDEV local development stack.
Running Drupal's FunctionalJavascript tests on DDEV
This is part two of a series on running Drupal’s testing suites on DDEV. We left off last time with trying to execute a FunctionalJavscript test and having every test case skipped because no browser emulator was available.