PHP REST tools showdown Series - Part 1: really RESTful APIs

A 10.000 feet overview of PHP tools and approaches to RESTful APIs

Introduction This is the first of five posts in a series that want to tell you the story of my discovery journey through modern PHP tools to build a REST service layer. I have a sweet spot for REST and decoupled architectures, but working for a (mostly) Drupal company in the last (several) years, I had little occasion to put my head over the topic aside personal tinkering and small projects. [Read More]

Espruino on NodeMCU (step-by-step guide)

How to flash NodeMCU with Espruino firmware and basic examples on how to use it.

Introduction This step-by-step guide is going to help you setting up and use Espruino on NodeMCU device. NodeMCU is: > An open-source firmware and development kit that helps you to prototype your IOT product within a few Lua script lines. We chosen the NodeMCU because it uses the ESP8266 chip which is one of the most cheap wifi module. We will first list all tools required to complete this tutorial, then we will flash the NodeMCU with the Espruino firmware (1v91) and at the end we will see how to connect to the wifi and push temp and humidity values over internet using dweet.io for the Internet of Things.“) Buy all the things! [Read More]

Trapped by an amend, saved by a reflog

Personal experience on getting in trouble with a common git command and finding my way out.

We use Git on a daily basis, and most of the time we always enter the same commands. It can happen to found ourselves trapped by one of them, sometimes because we forgot a side-effect, other times because we confused the right option. No need to worry though, since Git is equally able to put you in trouble and save your day with the same ease. So, let me tell you how I was hit by an --amend during a commit and how I easily got out.

[Read More]

Avoid bottlenecks on a Drupal web application and how identify it with profiling

How identify bottleneck of your web application and avoid that can appear in the future

Introdution This article is focused on the possible bottlenecks of a web application, how you can identify it and improve the performance of your code. We’ll talk about using Blackfire to get insights on a Drupal-based PHP application running on a LAMP stack. Application’s performance is one of the feature that tells a done job from a good job, and shows a focus on quality. Scope of this post it to provide a quick-reference that can be used right before to deploying a Drupal (but not only) project to production. [Read More]

Wait a minute, Doc

How we leveraged Raneto and Docker to tame projects documentation

Only the brave can be web developers today. I really think if you are a web developer, nothing can scare the crap out of you! Nothing but writing documentation for your code… Let’s face it, we hate writing docs! In fact developers came up with a lot of clever tools to automatize code documentation, and they work well and reliably to date. But there are cases where you have to jot down a guide to first build, or a reference page with best practices. [Read More]

Drush Make overwrites your custom .gitignore file

An investigation about an undesired behavior: bug or feature?

Managing a customized .gitignore file across drush make builds The problem Drush 8 overwrites the .gitignore file after a successful makefile execution. This affects complex projects where multiple dependency sources are present, and where other reasons might require a significant override of the .gitignore file provided by Drupal, which ends up diffed, causing git status to produce an ugly output, until the committed .gitignore is restored. Origin of the problem In recent upgrades, the --overwrite option has been added to Drush in order to force the overwrite of existing folders (the command docs don’t mention files, althought some file reference is present in the code comments), while the default behavior is to merge, which means keeping existing folder content. [Read More]

A nerdy editorial experiment

Our attempt to create a new concept in social blogging. By hackers, for hackers.

OK, I admit there’s nothing more hipster than describe themselves as nerds. But I had to draw your attention somehow. Would you ever say there is still room to evolve the concept of blogging? We do! But let’s start from the beginning. One year from the company inception the time has come to blog about the technology we love. But we’d like to do this in our commitment to transparency and openness. [Read More]