Django: How to Fix “missing 1 required positional argument: on_delete”

A quick fix for missing 1 required positional argument: on_delete on Django 2.0

Django 2.0: a quick fix for "missing 1 required positional argument: on_delete"

Django 2.0 has been released with some nice improvements over the older version.

I really like the new path method so I decided to check out Django 2.0. Among the new feature there are some minor changes such as with the ForeignKey field.

Continue reading “Django: How to Fix “missing 1 required positional argument: on_delete””

Tutorial: Setting up React with Parcel. A comparison with Webpack 3

Learn how to configure React with Parcel module bundler in this brief tutorial

Parcel is a new module bundler for Javascript applications. It offers faster compilation times and zero configuration bundling.

Setting up React with Parcel Bundler

You’re not supposed to switch from a tool to another one every week. But I feel like Parcel it’s worth a look.

Let’s see why.

Continue reading “Tutorial: Setting up React with Parcel. A comparison with Webpack 3”

Tutorial: User Interface Testing with Jest and Puppeteer

I started to consider testing with Jest and Puppeteer right after the library came out. Puppeteer has quite an interesting API.

Testing with Jest and Puppeteer

In the following post I’ll introduce you to a basic UI test for a contact form.

We will testing with Jest and Puppeteer. Even if it’s still under development and the API could be subject to changes, Puppeteer is here to stay.

Continue reading “Tutorial: User Interface Testing with Jest and Puppeteer”

4 + 1 ways for making HTTP requests with Node.js: async/await edition

HTTP requests with Node.js are a means for fetching data from a remote source. It could be an API, a website, or something else: at one point you will need some code to get meaningful data from one of those remote sources.

4 + 1 ways for making HTTP requests with Node.js: async/await edition

During your career as a Web Developer you will work with HTTP requests all the time. This is why in the following post I want to introduce you to some different ways for making HTTP requests in Node.js.

Starting from the easier one we will explore the “classic way” for doing HTTP requests all the way through libraries which support Promises.

Continue reading “4 + 1 ways for making HTTP requests with Node.js: async/await edition”

How to switch from Gulp to Webpack: a tutorial to get you started

Switching from Gulp to Webpack could be traumatic. For most developers Webpack is just another obscure Javascript tool.

Switching from Gulp to Webpack: a quickstart

I didn’t care too much about Webpack either, until I found out it could do the same things as Gulp does. Plus I was eager to learn Webpack as soon as possibile. This is why I started to think about switching from Gulp to Webpack for all of my projects.

Latest update: November 1, 2017

Continue reading “How to switch from Gulp to Webpack: a tutorial to get you started”