All posts

Generating the code challenge for PKCE in OAuth 2 How to generate code verifier and code challenge for PKCE in OAuth 2. Continue reading ...

Working with FormData in JavaScript How can I grab all the fields of an HTML form at once with JavaScript? Continue reading ...

Understanding asynchronous Python and Django: a roadmap A collection of curated links to make a sense of the asynchronous Python scene. Continue reading ...

React Context API is not a state management tool Notes on React Context API, how to create a Context, consume it, and pass values to a Context Provider. Continue reading ...

My inclusive tech manifesto These are the rules I try to abide to and convey every single day. I hope you do too. Continue reading ...

A mostly complete guide to error handling in JavaScript. Learn how to deal with errors and exceptions in synchronous and asynchronous JavaScript code. Continue reading ...

Testing an HTML canvas with Cypress How to test an HTML canvas? Let's see an example of visual regression testing with Cypress. Continue reading ...

4 ways to fake an API in frontend development Let's explore in this post the most common approaches to mocking and stubbing APIs in development. Continue reading ...

All I need to know about ECMAScript modules I'm sure you already know everything about ECMAScript modules, so here's a quick recap for myself! Continue reading ...

Using webpack with Django: it's not easy as you think Most approaches to using webpack with Django work until the JavaScript app is tiny. What happens when the bundle grows? Continue reading ...

Working with request.data in Django REST framework Django REST generic views are amazing, but working with request.data in Django REST framework can be tricky ... Continue reading ...

Django Testing Cheat Sheet A cheat-sheet of common testing patterns and best practices in Django applications. Continue reading ...

You might not need switch in JavaScript Pardon the clickbaity title, but JavaScript developers are so fond of switch. Is there a better alternative? Continue reading ...

How to handle multiple sites (virtual hosts) in Django It's common to have a single Django project serving requests for multiple domains. Learn how to route each request to the right app. Continue reading ...

JSON files download with the anchor download attribute An HTML form that lets you download a JSON file of the form data after submit. Is that even possible? Let's find out! Continue reading ...

How to create a Django project and a Django application Learn how to create a Django project and a Django application in this quick-start tutorial. Continue reading ...

A PostgreSQL console cheat sheet Learn to move your first steps with the PostgreSQL console with this cheat sheet. Continue reading ...

Understanding many to one in Django A re-introduction to one of the most common database relationship: understanding many to one in Django. Continue reading ...

Python for Data Science Cheat Sheet My little collection of Python recipes for data science featuring Pandas, Matplotlib, and friends. Continue reading ...

Formatting dates in JavaScript with Intl.DateTimeFormat Date formatting in JavaScript can get trick to say the least. Let's see how Intl.DateTimeFormat can help. Continue reading ...

Cos'è JavaScript e perché studiarlo? Scopri cos'è JavaScript, a cosa serve e cosa puoi costruire con il linguaggio del web. Continue reading ...

Understanding the Firefox Dev Tools Architecture, and How to Start Contributing Here's what I learned about the Firefox Dev Tools architecture, and how you can start contributing to Firefox too! Continue reading ...

Asynchronous tasks in Django with Django Q Learn how to use Django Q for offloading asynchronous tasks in your Django applications. Continue reading ...

JavaScript private class fields and the TypeScript private modifier In this post we'll shed light on ECMAScript private fields and see how they compare to the TypeScript private modifier. Continue reading ...

FormData, the new formdata event, and HTML forms Have you heard about the new formdata event? It's just a new DOM event, but every new addition to the web platform makes me always excited. Continue reading ...

How to create a Django project from a template A Django project template is the natural solution when the default Django project format is not enough anymore. Learn how to make your own in this tutorial. Continue reading ...

What's an API, really? The elusive meaning of Application Programming Interface What's an API, really? The elusive meaning of Application Programming Interface, and why we need to reconsider the way we interpret technical definitions. Continue reading ...

TypeScript, event handlers in the DOM, and the this keyword In this quick post you'll learn how to make TypeScript play well with the infamous this keyword when working with event handlers in the DOM. Continue reading ...

What does it mean "event-driven" in JavaScript and Node.js? Just starting out with JavaScript and "event-driven" is all over the place? Worry not and keep reading to learn more! Continue reading ...

How to build an URL and its search parameters with JavaScript Learn how to build, validate, and parse an URL with the URL API: a clean interface for building and validating URLs with JavaScript. Continue reading ...

Building a Django middleware (injecting data into a view's context) In this post you'll learn how to build your own Django middleware and how to inject data into a view's context directly from the middleware. Continue reading ...

Python Per Principianti: Una Guida Per Iniziare Stai iniziando a programmare e cerchi un manuale semplice e chiaro? Python ti incuriosisce? Questa guida Python per principianti è ciò che stavi cercando. Continue reading ...

Using Optional Chaining in TypeScript and JavaScript JavaScript moves at a fast pace and so TypeScript, pushing new features into the language. Learn how to use optional chaining for cleaning up your code. Continue reading ...

Python for JavaScript Developers An hitchhiker guide to Python for JavaScript developers. Enjoy! Continue reading ...

Code documentation for JavaScript with JSDoc: an introduction Writing documentation for the source code can help your future self and your colleagues. Learn how to document JavaScript with JSDoc! Continue reading ...

TypeScript Tutorial For Beginners: Your Friendly Guide What is TypeScript and why you may want to use it? Learn more with this TypeScript tutorial for beginners and start adding types to your JavaScript code! Continue reading ...

Continuous Integration in JavaScript: a Guide (ft. Github Actions) How do you automated tests when the code leaves your computer? Learn automated testing and continuous integration in JavaScript with this easy guide. Continue reading ...

Jest Tutorial for Beginners: Getting Started With JavaScript Testing What means testing? How to test JavaScript code with Jest? Learn the basics of testing JavaScript with this Jest tutorial for beginners! Continue reading ...

Django Tips: Recovering Gracefully From ORM Errors Learn how to recover from ORM errors in Django and make your views more robust with try/except and a nice Django shortcut: get_object_or_404 Continue reading ...

Back To The Basics: How To Generate a Table With JavaScript What it takes to generate a table with vanilla JavaScript? How hard it is to manipulate the DOM without any library? Let's find out in this tutorial! Continue reading ...

React Hooks Tutorial: useState, useEffect, useReducer Learn React hooks step by step, with a look at how the same logic would be implemented with classes. Continue reading ...

How To Use Async Await in React (componentDidMount Async) How to use Async Await in React? In this post we'll see how to fix regeneratorRuntime and and how to handle errors with Fetch and async/await. Continue reading ...

How to Throw Errors From Async Functions in JavaScript? It is possible to throw errors from async functions in JavaScript? Keep reading to find out! Continue reading ...

Tutorial: Django REST with React (Django 3 and a sprinkle of testing) How to create a Django REST API? How to structure a Django project with React? Here's a practical introduction to Django REST with React. (Django 3) Continue reading ...

React Redux Tutorial for Beginners: The Complete Guide (2020) The simplest React Redux tutorial I wish I had when I started learning. Includes Redux Toolkit! Continue reading ...

Tutorial: How to set up React, webpack, and Babel from scratch (2020) Learn how to set up React, webpack, and Babel. Why? You'll be able to scratch your own itch, or even configure a frontend project from zero. Continue reading ...

Socket.IO, React and Node.js: Going Real-Time Learn the basics of WebSockets and Socket.IO while pairing your first real-time server with a React frontend. Continue reading ...