Your test cases should failA test with good code coverage can fail to catch bugs. This article explains how to write great tests, and test driven development (TDD).3 min read·il3ven.hashnode.devJan 25, 2022
Easily implement Infinite Scrolling using Intersection Observer in vanilla JavaScriptWhat is infinite scrolling? It is when more items keep loading as we scroll. Below is a GIF for visual representation. View this GIF in action Difficult way to do it (using getBoundingClientRect) Here we are discussing the difficult way in brief. It...4 min read·il3ven.hashnode.devJul 23, 2021
Pythagorean triplet in an array - Interview QuestionSolution using Naive, Two Pointer and Hashing6 min read·il3ven.hashnode.devJul 22, 2021
Common Error: Accidentally Mutating State in ReactIn React, the state is immutable. In simple terms it means that you should not modify it directly. Instead a new object should be created to set the state using setState. Here are two examples. Modifying the state directly - Not Acceptable onChange(e...2 min read·il3ven.hashnode.devJun 12, 2021