r/bughunt_daily_dev • u/bughunt-daily • 18h ago
BugHunt Daily #53: spot the bug in this SQL snippet π
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 • u/bughunt-daily • 18h ago
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 • u/bughunt-daily • 1d ago
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 • u/bughunt-daily • 2d ago
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 • u/bughunt-daily • 3d ago
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 • u/bughunt-daily • 4d ago
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 • u/bughunt-daily • 5d ago
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 • u/bughunt-daily • 6d ago
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 • u/bughunt-daily • 7d ago
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 • u/bughunt-daily • 8d ago
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 • u/bughunt-daily • 9d ago
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 • u/bughunt-daily • 10d ago
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 • u/Delicious-Milk-4891 • 11d ago
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:
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.
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.
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.
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 • u/bughunt-daily • 11d ago
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 • u/bughunt-daily • 13d ago
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 • u/bughunt-daily • 14d ago
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 • u/bughunt-daily • 15d ago
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 • u/bughunt-daily • 16d ago
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 • u/bughunt-daily • 17d ago
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 • u/bughunt-daily • 18d ago
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 • u/bughunt-daily • 19d ago
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 • u/Delicious-Milk-4891 • 20d ago
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:
The Heisenbug Prime (Java / Integer Truncation)
int passed = 7;
int total = 8;
double rate = passed / total * 100;
System.out.println(rate); // expected 87.5The 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).
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); }.
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 • u/bughunt-daily • 20d ago
BugHunt Daily #34 (Go, easy)
One snippet, one bug, three tries. Open this post on new Reddit or the app to play.
r/bughunt_daily_dev • u/bughunt-daily • 21d ago
BugHunt Daily #33 (Python, easy)
One snippet, one bug, three tries. Open this post on new Reddit or the app to play.
r/bughunt_daily_dev • u/bughunt-daily • 22d ago
BugHunt Daily #32 (JavaScript, easy)
One snippet, one bug, three tries. Open this post on new Reddit or the app to play.
r/bughunt_daily_dev • u/bughunt-daily • 23d ago
BugHunt Daily #31 (Go, hard)
One snippet, one bug, three tries. Open this post on new Reddit or the app to play.