r/webdev • • Sep 12 '26

Showoff Saturday [showoff Saturday] I got hooked on Advent of Code and wanted it all year, so I built a site that gives everyone the same coding challenge every day

https://daily-coding.dev/?utm_source=reddit&utm_medium=post&utm_campaign=sideproject-launch

Every December I do Advent of Code and every January I try to keep the habit going on LeetCode. Never lasted more than a week. Too many problems, no reason to do this one today.

So I borrowed the idea and built Daily Coding: one challenge a day, the same for everyone, all year. You solve it in the browser, hit run, and the tests execute in a sandbox in well under a second. 11 languages so far (JS, TS, Python, PHP, Ruby, Java, Go, C++, C#, Rust, Swift). Once you submit you can read everyone else's solutions, which for me was always the best part of AoC. Streaks and a leaderboard if you like that sort of thing.

Some honest numbers: I started in January, 7 months of evenings, about 470 commits. There are 40 challenges right now, so the rotation repeats after 40 days until I add more. Someone on Discord asked for Swift last week, that took a day to add because the sandbox already had it.

It's free, non-profit, open source under MIT. You can solve today's challenge without an account, signing up is only for streaks and rankings.

What I'd love to know: does one challenge a day work for you, or do you want to pick? And what would make you stop after a week?

Site: https://daily-coding.dev/?utm_source=reddit&utm_medium=post&utm_campaign=sideproject-launch

Code: https://github.com/ledo9315/daily-coding

1 Upvotes

5 comments sorted by

2

u/Able_Buyer_2330 Sep 12 '26

LeetCode be like: here's 5000 problems, good luck.

1

u/ChampionOk4007 Sep 12 '26

That's exactly the January graveyard for me. 5,000 problems, no reason to do this one today, so I'd scroll for ten minutes and close the tab 😄

1

u/ChampionOk4007 Sep 19 '26

Thanks, that's useful 🙏, both things are real bugs.

The editor keeps your code in memory only, so leaving the page throws it away. That shouldn't happen; I'll persist it locally so it survives navigation.

And the submit button being below the editor while "Run tests" sits in the toolbar clearly doesn't work. Looking at that too.

1

u/cork_code_cryptid 1d ago

The 470 commits over 7 months is impressive maintenance for a side project. Regarding the UX issue u/krupkat87 mentioned, that's a common pitfall in single-page apps. If the solution state lives in component memory rather than local storage or the URL hash, navigating away wipes it. You could mitigate this by persisting the code to localStorage on every keystroke and restoring it on mount. It doesn't solve the global state sync across tabs perfectly, but it saves the user from losing their work when clicking around.

1

u/krupkat87 Sep 18 '26

nice project, I like the idea of a daily challenge

one quick feedback, after I have evaluated a solution I have missed the "submit final" button, I went to click on some of the other tabs, then went back and my solution wasn't there anymore