Blog

It's a Wonderful Life

Spring Destroy Prototype Beans

In Spring, beans which have been declared as scope="prototype" will not be destroyed when the whole application has destroyed, or the main method has reached to its end.

Quick Sort

Quick sort picks an element as pivot and partitions the given array around the picked pivot. There are many different versions of quickSort that pick pivot in different ways.

Stream in Java

Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods which can be pipelined to produce the desired result....

Difference between IoC and DI

The main goal of Inversion of control and Dependency Injection is to remove dependencies of an application. This makes the system more decoupled and maintainable.

How to append text to an existing file in Java

Java 7+

Weird Input On Android

So today I found out a weird behaviour of the input tag under mobile devices, well, Android devices specifically.

React Portal

React 16, released in September 2017, introduced Portals.

React Lifecycle Events

During the lifetime of a component, there’s a series of events that gets called, and to each event you can hook and provide custom functionality.

Maxlength Work With Number Type Input

maxlength attribute cannot be used on input tags which type attribute is number, it will not take any effect. There are 2 work arounds to achieve the same functionality though.

Understanding process.nextTick()

As you try to understand the Node.js event loop, one important part of it is process.nextTick().