Python decorators were introduced in v2.4 (in 2003! 💾) and allow you to enhance the behaviour of a function or method. When introduced in PEP 318, the goal was to make to extend the @classmethod syntactic support to other functions. It works as a...
Let’s talk about forms in React. What do you need and how to create them? Forms are a basic way to collect multiple data input from users, they are convenient because you can get all the data at once and submit it. Although nobody likes them or w...
Chakra UI provides a range of flexible and composable components that can be used to build complex layouts. Alignment and how to position components in a webpage are frequent questions, so I wanted to paste out here some examples to get started....
To connect a NestJS application to an SQL database, we are going to use typeorm which has a built-in integration with NestJS. The official documentation for typeorm integration with your NestJS application is pretty lengthy! Let’s hover the main ...
Generics exist in typescript, and they behave similarly to other typed languages like Java, Kotlin or C#. And they can become useful as generics do when creating function dealing with multiple types. But that’s not just it! However, the syntax ca...
In this article, we are going to delve more in the NestJS ecosystem with its built-in validation mechanism. It integrates with the class-validator and class-transformer packages from typestack. And even without NestJS, they bring a lot of value to...
Let’s talk about software architecture, how you come about them, how to make architecture decisions and what influences them, and finally, how to categorize the different type of architecture. Approaches There are usually three ways to go with ...
You can test your GraphQL API with graphql-cop which is a command-line tool to check for common security vulnerabilities. Let’s explore some of the tests it can run and how to prevent them. Types of attacks There are different types of attacks...
Google Cloud, also sometimes referred to as the GCP (Google Cloud Platform) is a cloud computing platform that offers hosting, storage, and a wide range of services to deploy and manage applications (Kubernetes, VMs, Serverless functions …). You...
K6 made by Grafana is an open-source load testing tool which offers the ability to write scenarios to simulate traffic on your system. The test scenarios can be written in Typescript (when transpiled into javascript) and offer a wide range of feat...