Why Consistency Gets Tricky in Sharded SQL DatabasesEnsuring consistency in a sharded SQL database is complex due to the need to maintain the ACID properties (Atomicity, Consistency, Isolation, Durability) across multiple servers. Here's an easy-to-understand explanation of why this is challenging: Wh...Aug 15, 2024 · 3 min readcodecraftbyankita.hashnode.dev
Workers in JavaScriptIntroduction JavaScript, often celebrated for its simplicity, surprises many with its single-threaded nature, seemingly limiting its ability to handle complex tasks efficiently. However, it has a hidden concurrency solutions. What are those solutions...Apr 19, 2024 · 4 min readcodecraftbyankita.hashnode.dev
React Fragments: Cleaner Code and Better StructureIntroduction Imagine you're packing items for a trip. Usually, you'd put everything in a suitcase, right? But what if you have a few small items that don't need a suitcase of their own? You could just group them together in your hand or in a small ba...Apr 10, 2024 · 4 min readcodecraftbyankita.hashnode.dev
From DOM Queries to useRef in React - A Journey of Modern DOM ManipulationIntroduction In web development, manipulating the Document Object Model (DOM) is a fundamental task. Traditionally, JavaScript developers have relied on methods like document.getElementById or document.getElementByClass to access and interact with sp...Apr 7, 2024 · 6 min readcodecraftbyankita.hashnode.dev
Optimizing React Components: Harnessing the Power of Pure Component and React.memo()What is a Pure component and pure function? Based on the concept of purity in programming paradigms, a function is said to be pure if it meets the following two conditions: Its return value is only determined by its input values Its return value is...Mar 23, 2024 · 5 min readcodecraftbyankita.hashnode.dev