Category: CodeMoments

We help you to enjoy every moment of Coding. Let’s Dive In

March 11, 2023 / CodeMoments

The websites these days are becoming more and more complex. And we have to load things in parts sometimes as micro components. Or maybe lazy loading some components just to better user experience. When we do this we need to create loader for heavy components that is replaced with the…

January 17, 2023 / CodeMoments

Monorepo and Microservices are two completely different concepts yet often used interchangeably You might have managed multiple repositories for inter related projects. Monorepo simply puts all these inter related projects into one single repositories. This way you have to manage one single repository for all the projects. You setup deployment…

January 16, 2023 / CodeMoments

The hottest topic in the software industry is microservices architecture. But, what is it? Microservices architecture is just a software development architecture that breaks your software into multiple small loosely coupled simpler services. These services are small in size, serves a specific purpose, very easy to maintain. Teams can work…

January 8, 2023 / CodeMoments

The Blog Industry shall prepare for the headless CMS revolution Content Management Systems played a really important role in the internet revolution. The blogs that you use to get information are all brought to you buy CMS. Without a CMS it is very difficult to maintain blogs. But CMS are…

December 26, 2022 / CodeMoments

A developer’s job is to solve problems. It’s not programming in javascript and knowing a few frameworks. As the problems evolve the developer also needs to evolve to be able to solve these problems. AWS or any other cloud platform is just the next evolution that the developers of the…

December 22, 2022 / CodeMoments

Understanding the lifecycle of a react component is very crucial. It enables you to write code at a certain point in the process. There are basically four important lifecycle methods: componentDidMount, componentDidupdate, componentWillUnmount, shouldComponentUpdate. Let’s look at these methods in detail. ComponentDidMount componentDidMount is a method that is invoked when…

April 5, 2022 / CodeMoments

next-cookies is not just an npm package. It’s a life saviour. This package solved a big problem that NextJS developer faced. Browser storage in all SSR, SSG functions. The most common use case for accessing cookies in getServerSideProps is when you want to fetch data from an API that requires…

January 24, 2022 / CodeMoments

Event Propagation is simply the ways by which order an event is captured by browser in an HTML page where elements are nested. There are basically two types of event propagation bubbling and capturing. In event bubbling the event of the innermost element is captured first while in event capturing…

June 10, 2021 / CodeMoments

Population or Query Population in mongoose is a process of automatically replacing paths with other documents from other collections in a single document, multiple documents, objects, multiple objects. That’s the official definition of the population by a mongoose. But, most of us would understand this one: “Population is simply a…