started with a fun idea: the plan is super easy leet code or something but with n ppl, you each have to alternate writing lines of code / characters
was first time really using typescript and next.js, so struggled through a lot of docs reading & ai assistance
used the monaco text editor (what vscode uses), and had many issues trying to initialize it through react (its a weird promise thing)
switched to svelte <3
was doing pretty well, did monaco -> get text content -> pyodide for python code execution, got a terminal down, and then wanted to add text syncing across devices
did some research, there was a library called y-monaco that used yjs to sync monaco (woah cool that that exists, so niche), and a service called partykit that could host it
set it up and then…
there were a lot of syncing issues between my friend who was helping me test and i
after some debugging, found that this was a platform specific issue (she had windows, i had mac) that was documented on the y-monaco github issues page; used a fix provided in the issue to bypass it
then came time to make the challenges.
for [no for loops], ran into issues like people can bypass with map, and also other types of bypasses, but just settled with a simpler warning
alternating lines was tougher so after a bit gave up
hiding worked!
quickly added some problems from project euler to see whats up—it was super fun and funny!
recording here: https://drive.google.com/file/d/1ytYv_SLanwhoxQAJyDHX0v2Bg8IDlzGC/view?usp=drive_link