javascript

image post

Getting some insights from Jacoco html report

A simple script to count packages that contain classes with low coverage
Andrés Canavesi - Nov 29, 2021
After running the Jacoco report generator we can open it and see the coverage results. There are some results the I wanted to know, for example, how many packages contain uncovered classes and how many contain coverage under a given threshold

image post

flexsearch tutorial

We are going to build a small example to see how it works.
Andrés Canavesi - Nov 10, 2021
It's a module available through npm or yarn to index in-memory data. With this module, you will be able to search or display related data on your site. We are going to build a small example to see how it works.

image post

javascript lazy load images

javascript lazy load images
Andrés Canavesi - Aug 31, 2021
javascript lazy load images

image post

Mock AWS SDK with Jest in TypeScript

An example mocking some SQS methods
Andrés Canavesi - Jul 31, 2021
It's a fact: you will spend some time writing mocks and slow down the development process but in the other hand unit test will run faster with less configuration.


image post

Mock Axios with Jest

Mock request made by Axios using Jest in Node.js. Unit tests more unit
Andrés Canavesi - Jan 31, 2021
Mock Axios with Jest using successful and error response

image post

How to use a GitHub repository as a dependency in Node.js

Andrés Canavesi - Aug 30, 2020
Sometimes you need a dependency that is not published as a regular package at npmjs.com

image post

Load stylesheets in background to increase page speed

Andrés Canavesi - Aug 16, 2020
Optimize the page loading time by loading your style sheets in background.

image post

Lazy load images with javascript

Increase page loading time by requesting your images in background
Andrés Canavesi - Aug 12, 2020
Why should you load your images in a lazy way?

image post

Cache implementation in Node.js

A custom cache implementation to show how Promises powerful are
Andrés Canavesi - Aug 08, 2020
A cached value it’s dynamic data, expensive to calculate, that we make it constant during a period of time.

image post

Configure Prettier in your Node JS project

How to configure Prettier to format your code as It was written by only one developer
Andrés Canavesi - Aug 08, 2020
Prettier is a code formatter that supports many languages and can be integrated with most of the editors

image post

Better Queue in Node JS

Move heavy processing task to background with better-queue module in Node.js
Andrés Canavesi - Aug 03, 2020
A good practice in software development is to delegate as much heavy work as possible to background jobs to avoid blocking the main execution of your application that can be a web app, mobile app, or desktop.

image post

Optimizing Node JS code

Small actions that may generate big impact in your performance
Andrés Canavesi - Aug 03, 2020
At different levels you might optimize your JavaScript code. Sometimes optimization is a matter of good practices such as avoid using logging in loops.

image post

Customize styles highlight.js

Use your own styles to highlight source code
Andrés Canavesi - Aug 02, 2020
Customize styles highlight.js

image post

Hash text in Node.js

Hash a text using native crypto module in Node JS. No extra dependencies.
Andrés Canavesi - Aug 02, 2020
Hash a string in Node.js without extra dependencies

image post

Why I adopted Heroku

Heroku is a platform as a service (PaaS) acquired by Salesforce in 2011
Andrés Canavesi - Jul 31, 2020
Heroku is a platform as a service (PaaS)