Menu

1 / 2

I built a ghost that races your wrong idea against your real code

DEV Community: typescript·Anand Indukuri·1 day ago
#cJtSb3Sc
#devtotypescript#devto#dev#ghost#code
Long article (2382 words) — no AI summary yet.
Reading 0:00
15s threshold

I wrote this post as part of the Kiroween Hackathon 2026. Ghost Run is my entry in the Resurrection category, built in Kiro in under 23 hours.

Quick: what does this return?

const scores = [ 10 , 9 , 2 ] ; scores . sort ( ) . reverse ( ) ;

Enter fullscreen mode

Exit fullscreen mode

If you said [10, 9, 2] , we made the same mistake. By default sort() compares items as text, where "10" comes before "2" . It gives [10, 2, 9] and reverse() turns that into [9, 2, 10] .

That one wrong idea, "sort() compares numbers", is what this whole project is about.

The demo I couldn't fully explain

I started vibe coding a lot for my personal projects. The code worked. I couldn't always tell you why. That gap followed me into hackathons. At MadHacks in November, an hour before judging, I was still asking some of my teammates what parts of my own demo did. We placed 4th. Now I want to learn the core and know what every part of my code does.

I'm not the only one.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.