Whether you prefer “schema first” or “resolver first”, GraphQL development should definitely be “types first”. One aspect of planning your data types is nullability, and this is important to get right. Nullability in GraphQL is different than how we handle null values in other environments, like REST or gRPC APIs.Read more ⇨
Here’s how to fix “Parsing error: Unexpected token” errors from ESLint when working in Visual Studio Code …Read more ⇨
To kick off 2019, I wanted to start the new year off with cleaner code, with more automation and less effort. This post should help you and your team kick your new year off with consistently beautiful code, too!
Most importantly, read through to the end to find out how to turn on the “auto-format on save” settings for ESLint, which allows auto-fixing of many problems every time a file is saved!Read more ⇨
Developers are increasingly working across multiple projects, and we need a sane method of changing contexts within our local development environment very quickly – or running them all at once – to remain efficient. Keep reading to learn how to run an Nginx proxy on your local machine to shepherd requests to port 80 to other apps running on various ports, using the path of the request to determine which app to forward to.Read more ⇨
The linter-phpmd plugin for Atom is popular with PHP and WordPress developers, but it relies on having phpmd installed and available on your PATH. Without it, you might see an error: “[Linter] Error running PHPMD Error: Failed to spawn command `phpmd`. Make sure `phpmd` is installed and on your PATH”
If you’ve seen this error in your Atom Developer Tools, the fix is quite simple …Read more ⇨
Have you seen your WebDriver tests fail with vague errors or timeouts when trying to locate and interact with elements on your page?
Following the best practices in this post will help you minimize random failures while running automated browser tests via WebDriver.io and Selenium.Read more ⇨
I never mind reviewing PRs from my coworkers, but I do want to minimize interruptions knowing I typically have other tasks in-flight. To help make the overhead of switching contexts (and branches) more efficient, try using the git pr command found in https://github.com/tj/git-extras …Read more ⇨
I was spinning up a new website using one of my favorite WordPress stacks built on Trellis and Vagrant, when I encountered the following error: “The box ‘bento/ubuntu-16.04’ could not be found or could not be accessed in the remote catalog.”
I had recently updated Vagrant from 1.8.5 to 1.8.7, and had also recently started using Ubuntu 16.04 for my new projects, updating from the previous LTS version 14.04 I had relied on for years.
Here is how I fixed it …Read more ⇨