It happened to me once to complete an interesting and curious javascript exercise of random cards. The request was as follows: ” Having a deck of French cards (consisting of 52 cards), 10 cards must be drawn (using the Math.random function). Of those decide the suit and number of each […]
Native lazy loading for images
An excellent new attribute has been added that will avoid a series of problems of loading. For example, you are in a scrolling SPA (Single Page Application) with many background images. The browser will gradually download them when it needs. I’m talking about native lazy loading for images and usually […]
Typescript Component decorator (like Angular)
Let’s first see what might be the reasons for wanting to include a Typescript Component decorator.In case you want to create a FE application developed in Typescript, often one of the main reasons is the fact that you come from applications in Angular, one of the most used frameworks when […]
Java 8 Lambda expressions and functional interfaces
To talk about lambda functions and functional programming we must first talk about functional interfaces. A functional interface is an interface with one and only one abstract method. They have a special relationship with lambda expressions.From Java 8 we can find many functional interfaces in java.util.function package. A functional interface […]
Nuxt typescript translate system
Often a multi-language application can be needed to be able to speak to a wider audience of people and we can use Nuxt translate system for it. It can always be useful to localize your application according to who you want to talk to, while still being able to read […]