God, Love, News, Event, Entertainment, Amebo,..... All about Bringing out the best in you...
Show HN: Codesprint – A LeetCode Typing Trainer https://ift.tt/Q5noixX
Show HN: Codesprint – A LeetCode Typing Trainer Hi HN! I built CodeSprint because I realized getting good at typing code requires practicing syntax fluency, not just logic. I found myself screwing up on mock interviews not because I didn't know the algorithm, but because I fumbled the syntax. I needed a way to drill "Depth First Search in Python" or "Ring Buffer in C++" until my fingers actually knew the shape of the code. The Engineering: Renderer: Uses a heavily customized Monaco Editor instance. I'm using deltaDecorations to paint diffs directly onto the editor model without breaking syntax highlighting, and getScrolledVisiblePosition for a custom, low-latency caret. Data Pipeline: I didn't want to hardcode snippets. I wrote a custom Bun script (scripts/sync-leetcode.ts) that reverse-engineers the LeetCode GraphQL API to pull real problem snippets, sanitizes them, and normalizes indentation. Latency: To handle high WPM without UI lag, the typing engine isolates keystroke processing from the main React render cycle where possible. Repo: https://ift.tt/oUxGiSs Live Demo: https://codesprints.vercel.app/ I'm a 15-year-old student from Vancouver. Would love feedback on the typing engine feel vs. native VS Code! https://ift.tt/oUxGiSs November 21, 2025 at 02:53AM
Subscribe to:
Post Comments (Atom)
Show HN: Orch8 – Durable workflow engine in Rust, one binary, Postgres or SQLite https://ift.tt/w0SucJB
Show HN: Orch8 – Durable workflow engine in Rust, one binary, Postgres or SQLite https://ift.tt/7C2tsIn May 5, 2026 at 02:15AM
-
submitted by /u/Dull_Tonight [link] [comments] source https://www.reddit.com/r/worldnews/comments/pehy48/housing_secretary_robert_je...
-
Show HN: A Spotify player in the terminal with full feature parity https://ift.tt/oZgrl1Q July 18, 2024 at 02:57AM
-
Show HN: Wallpapper Splitter for Many Desktop I've build an simple tool to split your wallpapers across multiple desktops. Now you can u...
No comments:
Post a Comment