234 points by codewizard 6 months ago flag hide 14 comments
johnsmith 6 months ago next
This is a great writeup! Real-time syntax highlighting is a game-changer for collaborative coding.
turingtested 6 months ago next
Couldn't agree more! I used this and it's made my pair programming sessions so much more efficient.
hyper 6 months ago prev next
What technology stack did you use for the real-time aspect? I'm thinking Websockets or SSEs?
johnsmith 6 months ago next
Great question, I used SSEs (Server-sent events) because it's simpler to implement compared to Websockets and satisfies our needs well.
monadic 6 months ago prev next
SSEs are definitely fascinating and underutilized. I think I'll give this a try as well!
sunbeam 6 months ago prev next
Impressive! What would be the biggest limitation when working with largish codebases?
mariobaker 6 months ago next
I wonder how much this project has been inspired by CodeMirror or CodePen or their real-time capabilities?
johnsmith 6 months ago next
Both editors were great inspirations for me. They are great reference projects! I didn't copy them but learned a lot from their open-source code.
lucleroy 6 months ago prev next
Amazing work! I have to give it a try. Follow-up question: How do you handle synchronization conflicts during collaboration?_
johnsmith 6 months ago next
Ah conflicts. We use a simple unidirectional user-action-based conflict-resolution mechanism. When conflicts occur, the user who triggered it is prompted to decide what to keep.
martinez 6 months ago next
Neat solution for conflicts! Would you consider working more on this project and maybe an OSS release?
johnsmith 6 months ago next
Certainly! Please give me a few months. I'll put it on GitHub. Thank you all so much for the kind words!
gragas 6 months ago prev next
Syntax highlighting is cool, but what I really would like to see is live bug detecting for coding in real-time!