Photo by Alejandro Escamilla on Unsplash

How do I open a company? How do I start trading and make sure that I stay compliant with all the laws? Who do I need to talk to? How long does it take? How much does it cost?

These are just a few questions I had in mind when I decided to go contracting: in this post, I’ll go through the answers and show that, after all, running a small company is not that difficult.

Disclaimer: I started contracting not long ago and am no expert. I had to go through all the initial setup and decisions recently though…

Snapshots introduce a new, different way of testing where we don’t set specific expectations beforehand: we get to accept/refuse the outcome of a test.

The JavaScript world is ever changing: every day new libraries come out and, as developers, we’re lucky enough to get to try all these new ideas in our every day job.

Using the right tool for the right job means, in the end, using more tools and this leads us to more configuration, orchestration and maintenance (and, possibly, bugs). All of this goes under the name of JavaScript fatigue, a name that should represent the effort needed to stay on top of our game. …

With functional tests being an integral part of a webapp workflow, we should always try to find ways to make them run smoother and make our lives easier.

My dilemma

I’ve been working with Selenium Webdriver/WebdriverIO for years now, and the biggest complaint I have is that I need to have a selenium server running before starting my tests.

This may seem like a minor problem, but it means having another tab open in my terminal, starting/stopping that process, and it all get way more difficult when you try to automate it in a CI environment. …

Testing React components has become trivial as more and more of them are now stateless functions.

The new shallow renderer and tools like Enzyme make it possible to render a component “one level deep” when testing, without even rendering it in some sort of DOM, while still having a great api to traverse the components’ output and assert facts on its behaviour.

Given all these great tools that we have, what happens when we have a container component that renders sub-components (child components) based on some sort of rule/logic?

During the development process of an application, we are often required to call services from domains different to the one our application is being served from, using AJAX requests.

This is not possible, as outlined on Wikipedia:

In computing, the same-origin policy is an important concept in the web application security model. Under the policy, a web browser permits scripts contained in a first web page to access data in a second web page, but only if both web pages have the same origin. An origin is defined as a combination of URI scheme, hostname, and port number.


In that…

It happens to me quite a lot: I create a branch and then want to rename it to a more specific/correct name.
If that branch has already been pushed to a remote, this operation is a bit trickier than the usual renaming.

I’ve found this nice gist from lttlrck and thought I’d share it:


Originally published at on January 29, 2016.

This small article is meant to be an easy, step by step guide to installing a headless Raspberry Pi with Node.js.

What’s covered:

  • Install Raspbian Lite
  • Find your Pi
  • Go wireless
  • Upgrade and get some goodies
  • Node time

Let’s do it!

1. Install Raspbian Lite

Raspbian lite is a minimal version of Raspbian that doesn’t contain the desktop environment (useless for a headless setup).

Download it on the RaspberryPi website website and install it following the instructions.

2. Find your Pi

After you have your Raspberry Pi turned on and connected to the Ethernet network, you need to find its IP address.
To make this work, you’ll…

Riccardo Coppola

JavaScript developer at heart. Gym rat. Coffee geek. Very average amateur photographer. London, UK.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store