---
title: "Sandeep (@buggleboy) | Hashnode"
description: "Sandeep (@buggleboy) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@buggleboy"
---

@buggleboy

# Sandeep

@buggleboy · Montreal, Canada · Joined June 2026

### [What is a Comparator in JavaScript? (and why sorting algorithms depend on it)](https://buggleboy.hashnode.dev/what-is-a-comparator-in-javascript-and-why-sorting-algorithms-depend-on-it?utm_source=hashnode&utm_medium=feed)

Why JavaScript's default sort fails with mixed-case strings — and how a custom comparator fixes it.

7 min read · [buggleboy.hashnode.dev](https://buggleboy.hashnode.dev/what-is-a-comparator-in-javascript-and-why-sorting-algorithms-depend-on-it?utm_source=hashnode&utm_medium=feed)

[Jun 28](https://hashnode.com/posts/what-is-a-comparator-in-javascript-and-why-sorting-algorithms-depend-on-it/6a4163e4fcb3d3a44dc323a2)

### [The else Suite in Python that nobody told me about (it's not just for if)](https://buggleboy.hashnode.dev/the-else-suite-in-python-that-nobody-told-me-about-it-s-not-just-for-if?utm_source=hashnode&utm_medium=feed)

The else clause in Python isn't just for if statements — it can also work with while loops. Here's what I learned about this misunderstood feature

4 min read · [buggleboy.hashnode.dev](https://buggleboy.hashnode.dev/the-else-suite-in-python-that-nobody-told-me-about-it-s-not-just-for-if?utm_source=hashnode&utm_medium=feed)

[Jun 21](https://hashnode.com/posts/the-else-suite-in-python-that-nobody-told-me-about-it-s-not-just-for-if/6a38666e82708bcf442f0f7b)

### [How does one extract and print every digit of a number backwards i.e. reversing a given number](https://buggleboy.hashnode.dev/how-does-one-extract-and-print-every-digit-of-a-number-backwards-i-e-reversing-a-given-number?utm_source=hashnode&utm_medium=feed)

Why breaking down a number digit by digit helped me understand loops — and why I forced myself to solve it without AI

3 min read · [buggleboy.hashnode.dev](https://buggleboy.hashnode.dev/how-does-one-extract-and-print-every-digit-of-a-number-backwards-i-e-reversing-a-given-number?utm_source=hashnode&utm_medium=feed)

[Jun 14](https://hashnode.com/posts/how-does-one-extract-and-print-every-digit-of-a-number-backwards-i-e-reversing-a-given-number/6a2f1fcff92d9f92b4a56fa6)

### [The Leap Year rule that confused me for years](https://buggleboy.hashnode.dev/the-leap-year-rule-that-confused-me-for-years?utm_source=hashnode&utm_medium=feed)

Why checking divisibility by 4 isn't enough — and the century rule that finally made it click

4 min read · [buggleboy.hashnode.dev](https://buggleboy.hashnode.dev/the-leap-year-rule-that-confused-me-for-years?utm_source=hashnode&utm_medium=feed)

[Jun 7](https://hashnode.com/posts/the-leap-year-rule-that-confused-me-for-years/6a25bd067829edb3111a85ac)
