OneBug
Bug of the week #1 new bug every Tuesday

A weekly bug-spotting puzzle for developers.

One hidden bug. Click the line you suspect. See your time and where the community guessed.

Spot the bug TypeScript
1
// Split items into `groupCount` round-robin buckets.
2
function partition<T>(items: T[], groupCount: number): T[][] {
3
  const buckets: T[][] = Array(groupCount).fill([]);
4
  items.forEach((item, i) => {
5
    buckets[i % groupCount].push(item);
6
  });
7
  return buckets;
8
}
9
 
10
const result = partition(["a", "b", "c", "d"], 2);
11
console.log(result[0]); // expected: ["a", "c"]
12
console.log(result[1]); // expected: ["b", "d"]
Powered by OneBug

One email a week. The bug, the median, nothing else.

Put OneBug in your blog

One script tag drops a playable puzzle into a post or your docs. The reader solves it where they are; the share card sends them back here.

paste it into your blog post or docs
<script src="http://localhost:5173/embed.js" data-puzzle-id="1" data-theme="auto" async></script>
Carries "Powered by OneBug" and links the reader back to the puzzle.
become a creator

No spam. One key per blog. The full editor (paste your code, mark the bug) opens once your key is active.

Why I built this

I read code review like other people read crosswords. So I built one bug, one shot, and shipped it in public - no funding, no roadmap deck, just a puzzle a week and the numbers behind it.

Building OneBug in public.

Past bugs

free · playable

No past bugs yet - this week's is the first.