The Fetch API is a browser method for making AJAX requests. Learn how to build your own Fetch API polyfill from scratch and use ES2015 Promises like a pro.Continue reading “Fetch API: Building a Fetch Polyfill From Scratch (For Fun and Promise)”
Learn the new kid in town with this Svelte 3 tutorial. Everything you need to know to start building with Svelte!Continue reading “Svelte 3 Tutorial for The Impatient (React) Developer”
How do you handle ORM errors in Django? Learn how to make your Django function views more robust with try/except (or with a neat shortcut).
Django views are the glue between your users and the underlying database. When a user visits an url Django can map that url with a view. And most of the times the view is also responsible for fetching some data from the database.Continue reading “Django tips: Recovering Gracefully From ORM Errors”
I gave a talk about Decoupling Django with Django REST at Pycon Italia 2019. Here are the slides and the transcript!
It was a pleasure to attend and speak at the tenth edition of Pycon Italia. I gave a talk about Decoupling Django with Django REST. Here’s a loose transcript of the talk which you can use as a tutorial too, alongside with the slides and some pictures!Continue reading “Decoupling Django with Django REST (and a sprinkle of React) @ Pycon Italia 2019”
In this React hooks tutorial you will learn how to use React hooks, what they are, and why we’re doing it.
Here I am, writing a React hooks tutorial for you. I decided to wait until hooks got finally released before dropping this post. Together we’ll learn React hooks step by step, with a look at how the same logic would be implemented with ES6 classes.
Enjoy the reading!Continue reading “React Hooks Tutorial for Beginners: Getting Started With React Hooks (2019)”
In the following tutorial you’ll learn how to test a Django application and the thought process behind testing and refactoring
When it comes to backend my tools of choice are Django and Python. Speed of development (particulary useful for rapid prototyping) and the excellent test coverage I can get almost out of the box are the major boons for me.
I use Django for training aspiring developers too and when I run a workshop I don’t go straight to the “right implementation”. What I like instead is guiding newcomers through the initial “working implementation” to refactoring into a more complex application.
In this tutorial you’ll build a small application with the exact same mindset. We’ll make it work first and them we will refactor for adding more functionalities.Continue reading “How to Test a Django Application: the Thought Process Behind Testing”