shoebilyas.hashnode.devEnums in RustEnums and structs are not Rust specific concepts. They are tools that many programming languages offer to define our own custom types while working with data. Structs give us the power to combine multiple values in a single variable. Enums, on the ot...Oct 23, 2025·5 min read
shoebilyas.hashnode.devWhy Your React State Isn't Updating: Understanding Closures and State SnapshotsHave you ever wondered why your React state variable still shows the old value immediately after calling setState? You're not alone! This is one of the most common React gotchas that trips up developers at all levels. function MyComponent() { const...Sep 6, 2025·6 min read
shoebilyas.hashnode.devBrute Force vs Quad Tree: A Deep Dive into Collision Detection AlgorithmsIntroduction When developing games, physics simulations, or any interactive application with moving objects, collision detection becomes a critical performance bottleneck. The question "are any of these objects touching?" seems simple, but as your ob...Aug 26, 2025·15 min read
shoebilyas.hashnode.devStop Making Multiple process.env CallsAs Node.js applications grow in complexity, managing environment variables becomes increasingly important. Most developers are familiar with the traditional approach of accessing process.env.VARIABLE_NAME throughout their codebase, but this pattern h...Aug 23, 2025·5 min read
shoebilyas.hashnode.devBuilding React.useState From ScratchIn React, hooks are just functions that let you preserve state between renders. One of the most widely used hooks is useState. When you call useState, it gives you two things: The current value of the state A function to update that state The key...Aug 16, 2025·5 min read