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...3 min read·codecraftbyankita.hashnode.devAug 15, 2024
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...4 min read·codecraftbyankita.hashnode.devApr 19, 2024
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...4 min read·codecraftbyankita.hashnode.devApr 10, 2024
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...6 min read·codecraftbyankita.hashnode.devApr 7, 2024
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...5 min read·codecraftbyankita.hashnode.devMar 23, 2024