Prashant Bansal

Engineer | Entrepreneur | Author

data

From Pipeline Purgatory to Data Nirvana

The Ghost in the Machine: Remembering the Bad Old Days Picture this: It's 2:47 AM on a Tuesday. My phone buzzes with that distinctive Slack notification sound that still triggers my fight-or-flight response. The nightly ETL job has failed. Again. Something about a malformed JSON response from
7 min read
iceberg

Data Lake Challenges and Apache Iceberg

Data storage and processing have evolved rapidly over the past decade, moving from on-site servers to scalable cloud-based systems. These modern solutions, often referred to as data lakes, can handle massive streams of data—such as billions of credit card transactions, website interactions, or customer activities—all in near real-time.
5 min read
GO

Understanding the Command Design Pattern: A Must-Have for Event-Driven Architectures

Imagine you’re building a complex application that must respond to various events, such as user actions, system triggers, or external API calls. As your application grows, the code that handles these events can become unwieldy, leading to tightly coupled, hard-to-maintain systems. This is where the Command Design Pattern comes
4 min read
async generators

Async Generators, the superior async await

An async generator is a special way for computers to do things that take time, such as getting information from the internet. Lets take a deeper dive into it from a real world example. Imagine you're at a magical bakery, and you're trying to bake a
3 min read
GO

Why I moved from Nodejs to Go

Over the past 8 years, I have been extensively working with Nodejs on the backend developing various types of I/O intensive web applications. I have developed tens of small scale and large scale services that are handling 1000's of operations in no time and are surfacing applications
3 min read
typescript

Build a Facebook Messenger Bot App

build a facebook messenger bot from scratch in minutes. Configure answers, questions and other types of replies. This is built using TypeScript, NodeJs, Express
4 min read
node

Authenticating Express React App - Part2

As we discussed in Part 1 on how to do the client side part of the token based authentication in Express React app, this post will focus on server side of the authentication. So lets get started - Exploring the Idea Server side has multiple responsibilities. Below are listed almost
2 min read
node

Authenticating Express React App - Part 1

React Apps of any nature will have certain sections that are visible to users who have registered in your app and have logged in. Consider an E-Commerce app, where users can do everything except checkout without being logged in. So how to build such a system with as little pain
4 min read
Javascript

JavaScript Call Stack, Event Loop and Callbacks

Straight getting into what the title says, a call stack is simply a stack that the javascript run-time maintains to go through all the calls defined in the code. The concept is exactly of a stack where the execution starts from the last function entering the stack and goes on
2 min read
Javascript

Know ES6 Better!

I have been working around with ES6 for long time now and I would like to share some interesting things that I found useful in my day to day work life. You will find lots of resources describing new features, but are you really willing to accept all the syntax!
3 min read
Javascript

Design Patterns in JavaScript - Part 2

Hello folks! A month back I wrote a post explaining how basic fundamental design patterns could be written in JavaScript language. I received few emails of appreciation as well as advice and on one such advice, I am sharing my experience of the current patterns which actually align with your
2 min read
Javascript

Design Patterns in JavaScript

Lets look into constructing few of the common design patterns in JavaScript by using Object Oriented Code. We will be discussing one pattern from each of the three common types - Creational - Singleton, Behavioral - Observer and Structural - Decorator pattern. Before getting to code, lets see what is
2 min read
Javascript

Working with Java Spark Framework

Creating a Rest based full stack application requires quite a bit of hands on knowledge of Back end services as well as Front end services. In this post, we are looking on Java micro web framework named Spark. We will build a rest based system where we can do stuff
6 min read
Javascript

Create and publish your first Node JS package

Creating a node.js package and further publishing it for other people to use it is pretty simple process. Through this post I shall walk through the process by creating a small library and publishing it. Before diving into writing the code and creating the package, make sure you have
5 min read
Javascript

Understanding Linked List With JavaScript

As a kid, Learning LinkedList never made sense to me. Statements involving next,null,head etc were just either too difficult or were too mainstream to understand them at first. But growing up, I came to know about the importance, not because I use LinkedList while programming, but because it
2 min read
Javascript

Arbitrary Dimensional Array

Have you ever wondered an object greater then 3 Dimensional. Ofcourse, we all know about 2D and 3D Objects but what about 4D or 5D or 6D or 10D. Wikipedia says 4D is Space and Time and anything beyond is imaginary, but you simply cannot imagine 4D and above object.
3 min read
Javascript

Iterators in JavaScript ES6

ES6 has come up with a very cool and much needy concept of Iterators. All C++ or Java coders are completely familiar with what are iterators. But, Iterators in JavaScript is something new and needs a little bit of understanding. What are Iterators ? (Definition from Cplusplus.com) An iterator is
2 min read
Javascript

Writing Your First Library in JavaScript

Writing a Library in Javascript can be a bit confusing (It was for me atleast when I started learning). It can be confusing because everything in JS is function, so for every particular requirement you can write a function. Having said that, if you are writing a function which serves
4 min read
Javascript

Full Calendar in BackBone.Js

FullCalendar is a jQuery plugin that provides a full-sized, drag & drop event calendar (Almost similar to Google Calendar) and we are gonna built in BackBone App. The concept is very simple, Jquery has a pretty cool plugin named FullCalendar. Here is how the calendar looks like when added succesfully
2 min read
Javascript

Introduction to RxJS

First thing first - What is RXJS ? "The Reactive Extensions for JavaScript (RxJS) is a set of libraries for composing asynchronous and event-based programs using observable sequences and fluent query operators that many of you already know by Array#extras in JavaScript. Using RxJS, developers represent asynchronous data streams
1 min read
Javascript

Passing Objects as Argument to Class - JavaScript

Few days back, I struggled with a very small concept in JavaScript that required to pass an object of the same class as an argument to it. In doing so, I faced a very genuine issue on how one can pass the object as argument where as the argument is
1 min read
C

Postfix Calculator Using C & Flex

Flex is an aging UNIX utility that helps you write very fast parsers for almost arbitrary file formats. Formally, they implement Look-Ahead-Left-Right (as opposed to "recursive descent") parsing of non-ambiguous context-free (as opposed to "natural language") grammars. Why should you learn the Flex pattern syntax when
3 min read