Wait, is it "$node->title" or "$node->title->value"? How do I write an EntityQuery again? Yeah, I can never remember, either. For the developers out there, if you've already read the official Drupal 8 Entity API documentation and you want more examples, here's a handy cheat sheet: The examples here contain some hard-coded IDs. These are all examples. In your real code, you should already have the node IDs, file IDs, etc. in a variable.
November 22, 2017
Years ago, I received a frustrating email from a disappointed client. I was confused – from an engineering perspective, this should have been a model project. It nailed the requirements on time, under budget, with great documentation, full unit test coverage, and even included some cutting-edge original research and upstream open-source contributions. Here's the email (emphasis added, scare quotes original):
November 16, 2017
Technical Debt: we all have it. Yet, this phenomenon remains poorly understood by product managers. Unlike financial debt, the costs are often hidden and difficult to measure. But the most dangerous aspect is that "Technical Debt items are contagious, causing other parts of the system to be contaminated with the same problem, which may lead to nonlinear growth of interest."  Here's a case study of one such event; unmanaged tech debt caused interest costs to spiral catastrophically out of…
November 14, 2017
With the rise of Big Data™ and IoT we saw a large wave of NoSQL™ proponents. Everyone began to jump on the bandwagon and hype trains to use these technologies to service their persistence layers. It became a mantra and it seemed like the end of nigh for relational (SQL) databases. Some companies were steadfast in only using NoSQL™ stores, claiming this was all that was needed for their data and would not hear another word of ever using a traditional "SQL" database. Unsurprisingly, SQL is not…
November 13, 2017
Django 2.0 is in beta now. It's expected to be released in December 2017. The question remains, is the rest of the world going to be ready? Let's take a look at the history of Django versions and see why this might not be as tough of an upgrade as you might expect.
November 6, 2017
...On Serverless Infrastructure The what
November 3, 2017
"Grove Park Traincare Depot and sidings" (CC BY-SA 2.0) by train_photos Engineers at Metal Toad participate in a variety of continuing education such as the Hackathon, dedicated time for professional development, and various interest groups for a variety of topics like machine learning and iOS/Android development. Haskell I recently joined the interest group on functional programming in Haskell. We start with an introduction to Algebraic Data Types.
November 2, 2017
In April of 2017 I put a widget on my phone that reminds me that I’m going to die. This is how it improved my life. A long time ago I learned about the concept of Momento Mori. It’s a simple phrase that is held up by the trussing of history and hardened by philosophy. It means: “Remember that you must die."
October 31, 2017
The most important measure of progress in building blogging expertise is not word count, it’s how many timers you hit the publish button. Every post is either a rock or a gem dropped into the water; the rocks will sink and be forgotten but the gems will be scooped up and shared. Drop enough rocks in the water and you are more likely to create a gem. So push the publish button already.
October 31, 2017
Connecting to a Microsoft SQL Server database isn't too hard, most of the time. But, what if the database is in your office, and you want to access it remotely, but you don't have a VPN? There is another way to connect, using PuTTY and port forwarding. All you need is a server in the office which accepts SSH connections and can connect to the SQL Server. This will serve as a gateway or makeshift proxy server. With the proper port forwarding setup, you can connect to your database from anywhere.
October 28, 2017