Recently I came across this problem in hacker rank. This problem is really fascinating as it teaches you to handle a lot of edge cases and variables at the same time. So, I thought of writing an article on this one. I hope you will enjoy it as much as I enjoyed solving it. Simplified Problem Statement You will be given an array of N integers. This array could be … [Read more...] about Almost Sorted Hacker Rank Problem (Medium Difficulty)
How To Start Your Career as a Computer Programmer (For Newbies)
In this pandemic, I got in touch with many undergraduates and I found a common pattern. They all seem to be confused, usually spread all over the place. On top of that, they are running after the wrong stuff. You see today the internet is filled with information. If you want to learn something, it is just a search away. And this is a good thing. But it can easily … [Read more...] about How To Start Your Career as a Computer Programmer (For Newbies)
Principles of Microservices – Deploy Independently
This is one of the most important principles in the world of Microservices. This has a direct impact on the ability of an organization to roll-out new changes in less time and with more accuracy. The idea here is to be able to deploy a new version of any part of the functionality in isolation such that the consumers of that service won't even know that something has … [Read more...] about Principles of Microservices – Deploy Independently
Principles of Microservices – Decentralize All The Things
Decentralization is a tricky concept. There are many facets to it. In this article, I want to talk about decentralizing everything in a way it doesn't hurt you or your organization. When I think about decentralization the first thing that comes to my mind is Self Service. Self Service Self-service is very important in a truly decentralized system. The people working on … [Read more...] about Principles of Microservices – Decentralize All The Things
Principles Of Microservices: Culture Of Automation
This article is written in a succession of the previous article that talks about the first principle of microservices i.e. modelling of microservices around a business domain. Once you have modelled the microservices around your business models and you are confident that you have done a good job, then the next step is to focus on automating your infrastructure. Automation … [Read more...] about Principles Of Microservices: Culture Of Automation
iTerm2 – Colorize The Tailed Logs In ITerm2 Terminal
Coloured logs are very helpful especially when you are going to deploy your application in production. The moment when the live traffic is shifted to your servers and you sit there eagerly watching the logs roll off in speed, only one thing in your mind that no warnings and errors should go by unnoticed. This is the best situation where colors play an important role. In this … [Read more...] about iTerm2 – Colorize The Tailed Logs In ITerm2 Terminal
QuickSort – Understanding the QuickSort Algorithm and Implementation
QuickSort algorithm is a brilliant idea of Tony Hoare. This algorithm is so effective that if implemented well, it can be 2x or 3x faster than its competitors merge sort and heap sort. I personally like quick sort algorithm because of its simplicity and speed. But I'm surprised to see that so many people get confused with quick sort algorithm. But worry not, because I … [Read more...] about QuickSort – Understanding the QuickSort Algorithm and Implementation
How To Add Custom JNDI Resource Factory That Will Return Your Custom Object
This is legacy stuff, which means you either stuck somewhere or you are about to get stuck somewhere. Am I right or am I right? :D The JNDI stuff is really confusing especially if you have not seen the younger architecture of the web. So, let's talk about the earlier architecture and System Design where it was used. Monolith Architecture Mostly all of the legacy … [Read more...] about How To Add Custom JNDI Resource Factory That Will Return Your Custom Object
Create Page Layouts with React and Typescript
Layouts are one of the most important pieces when it comes to web development. Let's say you have a website that offers a member's dashboard so that the members of the site can login and get the exclusive content. Now, you wouldn't want to have the same layout for your members that you have for a non-member of your website. The logged-in user may have access to a lot more … [Read more...] about Create Page Layouts with React and Typescript