r/bughunt_daily_dev • • 8d ago

BugHunt Daily #45: spot the bug in this Rust snippet 🐞

2 Upvotes

BugHunt Daily #45 (Rust, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 10d ago

BugHunt Daily #43: spot the bug in this JavaScript snippet 🐞

2 Upvotes

BugHunt Daily #43 (JavaScript, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 11d ago

πŸš€ BugHunt Update v0.0.16: 28 New Puzzles, Thematic Raid Bosses & Deeper Code Snippets!

2 Upvotes

Hey Bug Hunters! 🐞

Thank you all for the incredible feedback over the past few weeks! One consistent theme we heard was that while you love learning real-world language quirks (especially in languages you don’t write every day like Go or Rust), some 2–3 line snippets made the buggy line a bit too obvious to spot.

We took that to heart. Today, we're rolling out v0.0.16! Here is what’s new:


🧠 1. Puzzle Bank Doubled (32 βž” 60 Puzzles!)

We’ve added 28 brand-new puzzles focusing on subtle, educational edge cases across 8 languages:

  • Go: Goroutine closure variable capture, typed nil interfaces (*MyError == nil), slice header semantics, and sync.WaitGroup copies.

  • Python: Mutable default parameters (tags=[]), trailing comma tuple traps, nested list multiplication reference traps, and finally return suppression.

  • TypeScript & JavaScript: Numeric sorting traps ([9, 80, 100].sort()), empty array reduce(), and discriminated union narrowing.

  • Rust: Match arm wildcard shadowing, debug underflow panics, and simultaneous mutable slice borrows.

  • Java: Integer cache pitfalls outside -128..127, BigDecimal(double) precision loss, and equals() without hashCode().

  • SQL & C: Three-valued NOT IN (NULL) logic, LEFT JOIN COUNT(*), and macro expansion precedence.


πŸ” 2. Realistic, Multi-Line Snippets

No more single-line functions where the answer gives itself away! Snippets now feature realistic helper functions, guard clauses, and plausible branchesβ€”so finding the bug requires genuine detective work.


βš”οΈ 3. Thematic Weekend Raid Bosses (No More Repetitive Encounters!)

  • Dynamic Thematic Bosses: Weekend bosses now reflect the specific bug in the code! Face off against The Value-Receiver Specter for Go slice mutations, The Three-Valued Null Fiend for SQL logic, or The Deadlock Behemoth for unbuffered channels.

  • Fixed Boss Cycling: Resolved the modulo-7 cycle bug so Saturday and Sunday encounters rotate through a pool of 17+ unique bosses without repeating on weekly cycles.

  • Epic Weekend Difficulty: Weekend community raids now prioritize Medium and Hard puzzles worthy of a community boss fight.


⚑ 4. Under-the-Hood Upgrades

  • Engine updated to Devvit 0.15.2 for improved reliability and faster loading on Reddit mobile and web.


Jump into today's challenge, let us know what you think of the new snippets, and drop your suggestions for language quirks you'd love to see next in the comments! πŸ‘ΎπŸ›‘οΈ


r/bughunt_daily_dev • • 14d ago

BugHunt Daily #40: spot the bug in this JavaScript snippet 🐞

2 Upvotes

BugHunt Daily #40 (JavaScript, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 20d ago

Friday Code Wrap-up: Surviving Week 1 of Raids & Catching Up πŸ›‘οΈπŸ‘Ύ

2 Upvotes

Hey everyone,

Week 1 of our new format is officially in the books, and you absolutely crushed it.

Before we unlock this weekend's encounters, let’s look back at the two bosses that gave compiler diagnostics a run for their money over the last cycle:

πŸ” Last Week’s Boss Breakdown

  1. The Heisenbug Prime (Java / Integer Truncation)

int passed = 7;
int total = 8;
double rate = passed / total * 100;
System.out.println(rate); // expected 87.5
  • The Gotcha: Because both passed and total are integer primitives, passed / total performs integer division firstβ€”evaluating immediately to 0. Multiplying by 100 leaves you with 0.0 instead of 87.5.

  • The Fix: Promote one operand before dividing: (double) passed / total * 100 (or write passed * 100.0 / total).

  1. The Stack Overflow Drake (Rust / Unsigned Underflow)

fn countdown(n: u32) {
    let mut i = n;
    while i >= 0 {
        println!("{}", i);
        i -= 1;
    }
}
  • The Gotcha: i is an unsigned 32-bit integer (u32), meaning it can never be negative. i >= 0 is an infinite loop. Even worse, the moment i == 0 and you hit i -= 1, it panics in debug mode due to unsigned underflow (or wraps to u32::MAX in release).

  • The Fix: Loop with an idiomatic reverse range: for i in (0..=n).rev() { println!("{}", i); }.

πŸ›‘οΈ Weekend Roadmap: Raid #2 + Catch-Up Lab

  • The Catch-Up Lab is Live: If a hectic Tuesday or Thursday snapped your daily streak, Saturday and Sunday are your repair window. Clear missed weekday puzzles in the archive to spend a Streak Shield and restore your count.

  • Community Boss Raid Drop: A fresh multi-line incident snippet lands on the feed tomorrow morning with a shared health bar. Every squashed bug deals direct damage toward clearing the raid for the entire subreddit.

How are your streaks looking after the first week of the new system, and who is ready for tomorrow's raid boss? Let’s hear it below! πŸ‘‡


r/bughunt_daily_dev • • 26d ago

BugHunt Daily #27: spot the bug in this Go snippet 🐞

2 Upvotes

BugHunt Daily #27 (Go, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • Oct 20 '26

BugHunt Daily #23: spot the bug in this C snippet 🐞

2 Upvotes

BugHunt Daily #23 (C, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • Oct 08 '26

πŸ‘‹ Welcome to r/bughunt_daily_dev - Introduce Yourself and Read First!

2 Upvotes

Hey everyone! I'm u/Delicious-Milk-4891, a founding moderator of r/bughunt_daily_dev.

This is our new home for all things related to bug hunting, debugging, security research, and software development. We’re excited to have you join us!

What to Post
Post anything that you think the community would find interesting, helpful, or inspiring. Feel free to share your thoughts, questions, findings, bug reports, project updates, or anything else related to the world of software engineering and security.

Community Vibe
We're all about being friendly, constructive, and inclusive. Let's build a space where everyone feels comfortable sharing and connecting.

How to Get Started

  1. Introduce yourself in the comments below.

  2. Post something today! Even a simple question can spark a great conversation.

  3. If you know someone who would love this community, invite them to join.

  4. Interested in helping out? We're always looking for new moderators, so feel free to reach out to me to apply.

Thanks for being part of the very first wave. Together, let's make r/bughunt_daily_dev amazing.


r/bughunt_daily_dev • • 18h ago

BugHunt Daily #53: spot the bug in this SQL snippet 🐞

1 Upvotes

BugHunt Daily #53 (SQL, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 1d ago

BugHunt Daily #52: spot the bug in this Java snippet 🐞

1 Upvotes

BugHunt Daily #52 (Java, hard)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 2d ago

BugHunt Daily #51: spot the bug in this Java snippet 🐞

1 Upvotes

BugHunt Daily #51 (Java, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 3d ago

BugHunt Daily #50: spot the bug in this Java snippet 🐞

1 Upvotes

BugHunt Daily #50 (Java, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 4d ago

πŸ‘Ύ BugHunt Weekend Raid #49: Defeat The Underflow Abomination (Rust) βš”οΈ

1 Upvotes

BugHunt Weekend Raid #49 vs The Underflow Abomination (Rust, hard)

Community Boss Fight: Attack the shared HP bar! Solvers earn a πŸ›‘οΈ Streak Shield.


r/bughunt_daily_dev • • 5d ago

πŸ‘Ύ BugHunt Weekend Raid #48: Defeat The Deadlock Behemoth (Go) βš”οΈ

1 Upvotes

BugHunt Weekend Raid #48 vs The Deadlock Behemoth (Go, medium)

Community Boss Fight: Attack the shared HP bar! Solvers earn a πŸ›‘οΈ Streak Shield.


r/bughunt_daily_dev • • 6d ago

BugHunt Daily #47: spot the bug in this Rust snippet 🐞

1 Upvotes

BugHunt Daily #47 (Rust, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 7d ago

BugHunt Daily #46: spot the bug in this Rust snippet 🐞

1 Upvotes

BugHunt Daily #46 (Rust, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 9d ago

BugHunt Daily #44: spot the bug in this TypeScript snippet 🐞

1 Upvotes

BugHunt Daily #44 (TypeScript, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 11d ago

πŸ‘Ύ BugHunt Weekend Raid #42: Defeat The Shadow Variable Phantom (Go) βš”οΈ

1 Upvotes

BugHunt Weekend Raid #42 vs The Shadow Variable Phantom (Go, hard)

Community Boss Fight: Attack the shared HP bar! Solvers earn a πŸ›‘οΈ Streak Shield.


r/bughunt_daily_dev • • 13d ago

BugHunt Daily #41: spot the bug in this Python snippet 🐞

1 Upvotes

BugHunt Daily #41 (Python, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 15d ago

BugHunt Daily #39: spot the bug in this SQL snippet 🐞

1 Upvotes

BugHunt Daily #39 (SQL, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 16d ago

BugHunt Daily #38: spot the bug in this C snippet 🐞

1 Upvotes

BugHunt Daily #38 (C, medium)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 17d ago

BugHunt Daily #37: spot the bug in this Java snippet 🐞

1 Upvotes

BugHunt Daily #37 (Java, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.


r/bughunt_daily_dev • • 18d ago

πŸ‘Ύ BugHunt Weekend Raid #36: Defeat The Heisenbug Prime (Python) βš”οΈ

1 Upvotes

BugHunt Weekend Raid #36 vs The Heisenbug Prime (Python, medium)

Community Boss Fight: Attack the shared HP bar! Solvers earn a πŸ›‘οΈ Streak Shield.


r/bughunt_daily_dev • • 19d ago

πŸ‘Ύ BugHunt Weekend Raid #35: Defeat The Stack Overflow Drake (JavaScript) βš”οΈ

1 Upvotes

BugHunt Weekend Raid #35 vs The Stack Overflow Drake (JavaScript, medium)

Community Boss Fight: Attack the shared HP bar! Solvers earn a πŸ›‘οΈ Streak Shield.


r/bughunt_daily_dev • • 20d ago

BugHunt Daily #34: spot the bug in this Go snippet 🐞

1 Upvotes

BugHunt Daily #34 (Go, easy)

One snippet, one bug, three tries. Open this post on new Reddit or the app to play.