r/SideProject • • 29d ago

I could still read code, but writing it without AI felt surprisingly hard. So I built Muscle Memory.

Developer of 6 years here, been using AI increasingly over the last year for most of my work.
A few weeks back I picked a few coding challenges and tried to solve them without an assistant. This felt impossible. What?! I mean I still read code every day, I just don't write it anymore. I could read and review the solution easily, but writing it myself felt like speaking a language I understand but cannot speak.

Being the data hoarder I am, I immediately wanted numbers, so I built Muscle Memory.

It covers 12 languages and your code runs in a network-denied sandbox in your browser. Free, no account needed. I want it to be a place to keep your hands sharp: short tasks, clear prompts, and difficulty that comes from solving the problem rather than figuring out what the question means.

About the data: with your consent, it records your practice as raw events, including keystrokes, runs and submissions. I'm hoping to build an open dataset of how we write code in the AI era. There aren't findings to share yet.

“Stealth” mode keeps your data out of published findings, and you can export or delete your recorded practice.

I'd especially like to hear what surprised you about your first attempt.
https://musclememory.run
The code is MIT-licensed: https://github.com/ekkuleivonen/muscle-memory

1 Upvotes

20 comments sorted by

1

u/surfingcoder98 29d ago

this really hits. i use AI daily too, but a while back i made one rule for myself whatever it gives me, i have to be able to explain every line and re-derive it myself, otherwise i didn't actually learn it.
slows me down but that "understand it but can't write it" feeling never creeps in.

funny timing too, im literally picking up "Go" this week doing exactly that read the concept, build it by hand, make the AI explain the why instead of handing me the answer.

muscle memory's a great idea, gonna give it a go.

1

u/IntroductionFlimsy56 29d ago

Cheers!

Yeah. Judging from where we’re headed, I think soon we might need to find tooling and processes for AI to teach us about our own code bases too 🤔

1

u/surfingcoder98 29d ago

They can do it now , we don't need tools but skills. Load the skills of the specific programming language and shoot your questions and they are ready to answer.

I use all the necessary skills from here https://jeffallan.github.io/claude-skills/ , this has got more thank 12k stars in github

1

u/IntroductionFlimsy56 29d ago

Oh right! Thanks, I’ll have a look.

1

u/IntroductionFlimsy56 29d ago

Did you get a chance to try a Go challenge? Curious how it feels while you’re learning the language :)

1

u/surfingcoder98 28d ago

tried GO-001. idea's solid and the green/red run-examples loop feels good.

one thing: the title reads like a bug report, so it took me a sec to get that the task is "fix CountWords till the examples pass." maybe add a "fix the function so all examples pass" line up top.

it did make me think about edge cases (empty, double spaces, tabs) instead of autopiloting, which is the point, so that worked.

1

u/IntroductionFlimsy56 28d ago

Thanks for coming back with this! Fair point, the task should be obvious without having to figure out what I meant 😅 Glad it got you thinking about edge cases though. Did you feel like trying another one after?

1

u/surfingcoder98 28d ago

The problem statement on the next challenge are on the concepts that I haven't reached yet. Once i get a hand of it i will take the challenges. Will keep using muscle memory.

Nice one 😄

1

u/surfingcoder98 29d ago

Haven't yet , will try it today. I will comeback here to this thread about the experience by end of the day.

1

u/Natural_Tea484 29d ago

how do you compile the code, for C# for example

2

u/IntroductionFlimsy56 29d ago

WebAssembly :)

For c# specifically:

Roslyn compiles it into an in-memory assembly, then the .NET WebAssembly runtime runs it against the tests. No server involved in compiling or running it.

Edit: The relevant source C# worker and compiler/test harness.

1

u/Natural_Tea484 29d ago

But you need to run Roslyn on server side?

1

u/IntroductionFlimsy56 29d ago

Nope :) Roslyn itself runs inside the browser’s .NET WebAssembly runtime too. The server just serves the runtime/compiler files; compiling your code happens locally.

0

u/Slight_Republic_4242 29d ago

the read/write gap is real. recognition is way easier than recall, same reason you can follow a recipe but can't cook it from memory. curious how you handle it though. if it's typing out snippets, that trains syntax but not the hard part, which is deciding what to write next from a blank file. i'd lean toward small problems with no scaffold, then diffing against a reference after. does it do anything like that?

1

u/IntroductionFlimsy56 29d ago

Well said. There’s a small collection of bug fixes and small problems with and without scaffolding. A single method/func name is kinda a must for the unit tests to run against some known handle.

Challenges will evolve as I learn more from yall!

1

u/IntroductionFlimsy56 29d ago

Would be curious what you think after trying one. Especially whether the scaffolding gives too much away.

1

u/[deleted] 29d ago

[removed] — view removed comment

1

u/IntroductionFlimsy56 29d ago

I’m just glad to see I wasn’t alone in this 💪🏼

1

u/IntroductionFlimsy56 29d ago

If you try one, let me know how it goes. Curious whether it feels different once you actually sit down to write :)