When we are running a distributed system that spans multiple containers and data centers, we need to understand how user requests flow through these services. This enables us to decipher the larger picture of where the request spends most of its time and figure out which service is not working as intended.
Most services communicate with each other through a fixed set of protocols such as HTTP (as REST calls), RPC, or a queuing-based mechanism, where one server acts as a producer and the other as a consumer. …
Let’s face it, almost all web applications have some requirement for date-time handling, and choosing a library that caters to all our requirements yet is very lightweight is always a chore.
MomentJS has always been the solid offering for extensive date-time management options but it is currently in maintenance mode & can become bulky (whopping 4.21Mb unpacked size!) at times, especially when you are concerned about that extra 5Kb affecting your website load times!
One of the popular lean options that come up is
date-fns (our review of it can be found here) but the APIs are quite different from…
Java is a strongly-typed, object-oriented programming language, which often translates to strict request, response, and data-transfer objects. It provides the developer with a clear picture of the data available for consumption in any class, but adds a lot of boilerplate code such as getters, setters, and let us not forget the constructor. Not only is it painful to write and maintain these methods, but they also add clutter to the code. Project Lombok allows us to write clutter-free code with impressive community support.
Lombok is a code generator and kicks in during compile time. Before diving deep into the features…
As developers, we have all gone through the process of setting up the boilerplate and associated files like .env, Dockerfile, etc. every time we start a new project. Even though CLI’s are available for certain frameworks like ReactJS, they don’t usually include the utility files we typically need for completing the setup. Archetyper is our attempt to provide a one-line command for creating the directory structure and all the files needed for completing the setup of your project.
npx archetyper create <project…
Before getting into the features of Papa Parse, let’s look at how we can include this package in our code:
/* babel or ES6 */
import papaparse from ‘papaparse’;/* node or require js */
const papaparse =…
Getting started with moment.js is pretty…
To create rich user interfaces and experiences, CSS frameworks are used extensively. There are a number of reasons for this; firstly, it is easier to build structured layouts as most modern CSS frameworks provide tooling. Secondly, it helps in rapid prototyping and allows us to change the experience in a very agile manner.
But with so many frameworks to choose from, selecting the best fit depends on the level of flexibility you are looking for. In this review, we will be looking at
tailwindcss, a popular CSS framework that focuses on providing the most flexibility to the developers. Tailwind does…
Ever written a method to get the time of day in GMT? or have wondered if I need to convert the time to UTC? Most applications have some common date-time manipulations which are often repeated and after some time become very difficult to maintain. To add upon this when internationalizing an application Date and Time manipulations are one of the key challenges you will face. So much so that you will lose track of time amending it all 😉.
Tick Tock, Tick Tock! Fear not for we have you covered.
date-fns is one such package that provides simple helper functions…
Want to make your console look groovy and colorful? In this article we are going to go through the npm package
chalk which aids in styling your terminal in a very easy and quick way!
This package is solely built for the purpose of the console and how we can visualize whatever it logs. The package can be installed using the command
npm install chalk. Let’s look at what this package offers.
To start off with, let us look at how we can include this package in our code. Very simple to do so, just using the line:
Let’s face it, your coding environment plays a major role in how your application operates (pun intended)! Managing environment variables is ever more important in today’s containerized and cloud native applications, be it for defining your database connection string per environment or storing your access keys. Using a
.env file is a common practice for managing these variables and
dotenv presents a simple and zero-dependency way to use this method in your JS code.
The package is extremely simple to use, requiring only one line of code and the
.env file in majority of the use cases. The package expects…