Javascript exercise of random cards

An exercise of javascript random cards

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 […]

Read More…

Typescript Component decorator (like Angular)

Typescript @Component decorator to Vue.js

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 […]

Read More…

ES6 Javascript Arrow functions

ES6 Arrow functions

Arrow functions are a new ES6 Javascript feature to write more readable and shorter code, with the same results. It came with another new feature like the “let/const” renaming from the ES5 “var”. It may seem very similar to the anonymous functions of ES5 but with some small differences. A […]

Read More…

Angular client-side pagination vs server-side pagination

Data-rich applications present a challenge: displaying large datasets without overwhelming users. Pagination comes to the rescue, breaking down information into manageable chunks. Angular offers two primary approaches: client-side pagination and server-side pagination. This article delves into both methods, providing code examples and helping you choose the best fit for your […]

Read More…

Javascript object to query string

js object to querystring

It can often be useful to transform a javascript object into a query string dynamically, without necessarily knowing the properties of that object. Another good reason is to avoid concatenation for each individual parameter. This method can be used also in javascript/typescript frameworks like: Angular, React, Svelte, etc. This is […]

Read More…