Introduction Vanilla JavaScript comes handy with a lot of in build features that deal with data structures. But some of them are very complex and we don’t get expected results without doing the workarounds. By the way, I got stuck with sorting an array object with multiple fields. After a lot of research, I got the expected result. In this article, I penned down my research work and if you read this entire article you will get to know how to multi sort in array objects using vanilla JavaScript. Example use case Let us consider the example of an employee array object for which you should do the multi sort based on address field first and then name field Expected Output Problem Statement The array will not have any inbuilt functionality to sort multiple criteria by default. Let us see the output of Array.sort() method I believe the above-mentioned sort function will greatly work with a one-dimensional integer and string array. But think abou
Introduction We are in the new world of microservices and cross-platform applications which will be supported for multiple platforms and multiple heterogeneous teams can work on the same application. I like ASP.NET Core by the way its groomed to support modern architecture and adhere to the software principles. I am a big fan of dot net and now I become the craziest fan after seeing the sophisticated facility by dot net core to support infrastructure level where we can easily perform vertical and horizontal scaling. It very important design aspect is to keep things simple and short and by the way, RESTFul applications are build and it is a powerful mantra for REST-based application and frameworks. Some times we need to overrule some principles and order to handle some situations. I would like to share my situation of handling HTTP long polling to resolve the ASP.Net core 2 mins issue. What is HTTP Long polling? In the RESTFul term, when a client asks for a query from the serv