I've spent the last ten months building a project with Claude, and tonight I asked it to show me a bit of the code that he thinks is very clever and he's proud of
I'll pick the barcode scanner listener, src/hooks/useLabelScan.ts. It's about 50 lines, and one of them does nearly all the work: // A scanner's keys come well under this apart; a person's, well over. const GAP_MS = 60; const onKey = (event: KeyboardEvent) => { if (typingIn(event.target) || event.c…
Read the full story at r/ClaudeAI ↗