21 Feb 2016

Can you use Drupal 8 yet?

Hi, I’m Robyn and I’ve been a Drupal Developer Apprentice at Catch for three months. 

As developers, modules are crucial to everything we do. They help manage media and content across complex sites, they simplify back-end processes and PHP development, and they help implement complex components and features across sites in a matter of minutes where they’d normally take hours. They are the bread-and-butter of Drupal development, and without stable modules available our job would be very, very difficult.

As such, when Drupal 8 was released we took a special interest in the state of module development. Because Drupal 7 has benefitted from more than 5 years of contribution and development from the Drupal community, Drupal 7 is an incredibly stable and powerful platform. 

We’ve been a bit spoiled, and despite the really amazing changes and improvements that we’ve been promised with Drupal 8, we were hesitant to jump on the bandwagon until we’d done a bit more research on what modules were really available for use. 

So, back in early December (shortly after Drupal 8 was released) I started to track the development status of modules in Drupal 8. I put together a list of the most-used Drupal modules and examined each module’s development status. 

Here's what I found: 

 

Status of Drupal’s top 25 most-used modules (Dec 2015): 

In Core: 7

Stable: 5

Percent Usable: 48%

In Alpha & Beta: 3

Unstable: 7

Unavailable: 3

Percent Unusable: 52%

 

If I’m 100% honest, I was pretty stunned at these numbers. With only 48% of Drupal’s most-used modules available at the time, it seemed that developing a complex site in Drupal 8 would have been a worrying prospect, given the inherent stability of Drupal 7. 

This was a disappointing outcome - we really wanted to start building in Drupal 8 but it just wasn’t ready for us!  

Given the dedicated and active Drupal community, I was curious to see how quickly things would improve. I figured it was just a matter of time before more people started getting involved. 

And so, three months have passed since that initial review and now, with Drupal Camp London just around the corner (Mar 4th - 6th), I thought it would be a good time to take another look. 

 

Status of Drupal’s top 25 most-used modules (Feb 2016):

In Core: 11

Stable: 6

Percent Usable: 68%

In Alpha & Beta: 4

Unstable: 4

Unavailable: 0

Percent Unusable: 32%

 

These results represent a 20% increase in the availability of Drupal’s top-modules within just a three month time frame. 

While that number may not sound terribly impressive at first glance, it represents a significant effort on behalf of the Drupal community to get Drupal 8 up-and-running. 

As Drupal is completely open-source and dependent on the unpaid contributions of its members, that 20% improvement is 100% fueled by the voluntary efforts and pure dedication of people throughout the community. And that’s just downright impressive. Plus, pathauto and admin toolbar work now!

But, don't just take my word for it. Feel free to take a look at my research!

30 Oct 2015

Tweet our pumpkin #CatchHalloween

It’s Halloween [*insert all manner of ghoulish GIFs and eerie sound effects*]. And, courtesy of Founding Partner/MD Jonathan, we’ve been challenged to a classic pumpkin carving competition! But as is the nature of a digital agency, some spectacular creations have materialised… (some a little less so). But one pumpkin in particular, by UX Designer Euan Mackie, has been stealing a significant proportion of the limelight...

We’ll let Euan give you the gory details:

Intro

After receiving our to-be-carved pumpkins, I had a little google for inspiration. While browsing lots of artistic designs, I knew I wanted to do something slightly different, so I challenged myself to see how I could add some tech.

Background

A few weeks ago I brought a Photon - a development board from a company called Particle. It’s a little computer designed for making and creating objects connected to the internet.

The term Internet of Things (IoT) represents a world of interconnected devices and smarter living, where, for example, light bulbs can react to you putting your key in the door. The IoT movement has been growing in popularity, with products such as Amazon dash, Google’s Nest thermostat and Philips hue light bulbs entering the mainstream.

The usual approach for prototyping these projects involves a product called Arduino. We love it because of its open source background and the variety of components you can plug into it (more about that here). But I wanted to use the Photon as it simplifies this whole process. It’s just one match box sized board and that is all you need to get started.

The Challenge

I wanted this to be a rapid project, I knew the pumpkin carving would take time and I only had a few spare hours. So, I set myself a time limit: A working IoT pumpkin within 2 hours - something fun AND worthwhile. Because why do a prototype if it doesn't bring delight to those using it!

Getting Started

The photon board comes in a nicely designed little box with enough extra components to make your first project. The board came into it’s own with the setup. Usually with Arduino there’s a lot to set up and learn, It can be a tough onboarding experience for those brand new to hobby electronics. (There are lots of helpful tutorials, though!)

The Photon board is totally different; just power it up though USB, open the app on your phone and you’re already away. A quick entry of your WiFi settings and it’s set up ready for your first project. Using the supplied LED, you can use your phone to make the circuit and light up the LED. I had success within 5mins of opening the packaging. The App shows how and why this happens, really great for those starting to learn the fundamentals behind development.

Ideas

After few more tutorials under my belt, I started thinking about using twitter and Instagram hashtags to turn the pumpkin lights on. A fairly simple approach, however, I knew it would easily showcase the power of IoT without being over complicated.

The Plan

I’m a big fan of If this then that ( IFTTT ). It’s an online service using logic if THIS happens then make THAT happen. I knew IFTTT would be a simple and quick way of searching Twitter and Instagram for a particular hashtag, the ‘THIS’. I started looking into what ‘THAT’ I could use for my Photon board. I saw some options, however, they were mostly slightly more technical than I had the time and skills for. I’d have loved to use a node.js app or MQTT, however that was a little out of my reach. So I just used the pre built ‘THAT’.

Getting IFTTT to talk to the Photon this way is very simple, it’s mostly handled by magic*. All I needed to do was make sure everything was named correctly and I’d copied and pasted the correct bits of code. I told the Photon to power up a chosen section of the board when a tweet arrives.

The photon comes with a breadboard, this is basically a quick and easy way to connect electronics together without the need to solder anything together. I added few LED’s to the selected section with resistors, taken from their tutorial, and I was ready to test it all out.

*Yes I know it’s not actual magic.. It’s a mix of hosted code repo’s and online developer environments…

How it all turned out

After a bit of trial and error, I managed to get it working. Result! Every tweet or Instagram with #CatchHalloween made the LED’s light up. In less than two hours, I’d gone from a novice with the board, to a real working prototype. Not too bad.

One of the downsides to IFTTT is how long it takes to search and return tweets. Sometimes up to every 15mins. This isn’t ideal when people are sending tweets and expecting an instant light up. From my earlier discovery, I know it’s possible in few different ways, the most logical being node.js. The light strength isn’t ideal in a very bright studio, but It’s noticeable (we know if you’ve tweeted!).

If you’ve got any questions, thoughts or advice on a project like this then get in touch!

Start a conversation

0207 494 3554
or
newbiz@catchdigital.com