---
title: "Vaibhav (@il3ven) | Hashnode"
description: "Programmer. Read the latest articles by Vaibhav on Hashnode."
url: "https://hashnode.com/@il3ven"
---

@il3ven

# Vaibhav

@il3ven · Joined June 2021

Programmer

### [Your test cases should fail](https://il3ven.hashnode.dev/your-test-cases-should-fail?utm_source=hashnode&utm_medium=feed)

A 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.dev](https://il3ven.hashnode.dev/your-test-cases-should-fail?utm_source=hashnode&utm_medium=feed)

[Jan 25, 2022](https://hashnode.com/posts/your-test-cases-should-fail/61efee1587fd2728e7cd3196)

### [Easily implement Infinite Scrolling using Intersection Observer in vanilla JavaScript](https://il3ven.hashnode.dev/easily-implement-infinite-scrolling-using-intersection-observer-in-vanilla-javascript?utm_source=hashnode&utm_medium=feed)

What 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.dev](https://il3ven.hashnode.dev/easily-implement-infinite-scrolling-using-intersection-observer-in-vanilla-javascript?utm_source=hashnode&utm_medium=feed)

[Jul 23, 2021](https://hashnode.com/posts/easily-implement-infinite-scrolling-using-intersection-observer-in-vanilla-javascript/60fb0ab631552277811ab68c)

### [Pythagorean triplet in an array - Interview Question](https://il3ven.hashnode.dev/pythagorean-triplet-in-an-array-interview-question?utm_source=hashnode&utm_medium=feed)

Solution using Naive, Two Pointer and Hashing

6 min read · [il3ven.hashnode.dev](https://il3ven.hashnode.dev/pythagorean-triplet-in-an-array-interview-question?utm_source=hashnode&utm_medium=feed)

[Jul 22, 2021](https://hashnode.com/posts/pythagorean-triplet-in-an-array-interview-question/60f9427474648858f4bb4887)

### [Common Error: Accidentally Mutating State in React](https://il3ven.hashnode.dev/common-error-accidentally-mutating-state-in-react?utm_source=hashnode&utm_medium=feed)

In 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.dev](https://il3ven.hashnode.dev/common-error-accidentally-mutating-state-in-react?utm_source=hashnode&utm_medium=feed)

[Jun 12, 2021](https://hashnode.com/posts/common-error-accidentally-mutating-state-in-react/60c4a7a5a25fa357af841064)
