logoalt Hacker News

Collaborative Editing in CodeMirror (2020)

52 pointsby luulast Sunday at 5:39 PM8 commentsview on HN

Comments

jazzypantsyesterday at 5:44 PM

I'm a huge fan of this guy's work. His code is really easy to read, and I learn a lot every time I dig in. I think that Lezer [0] is underappreciated considering how flexible and performant it is.

Edit: I just realized I didn't even mention his most famous work, Eloquent JavaScript [1]! This book is incredible. I couldn't finish it the first time, so I'm not sure if it's the best book for beginners, but I learned so much when I picked it back up a few years later that I think that every JavaScript programmer should read through it and do the exercises at least once.

[0] https://lezer.codemirror.net/

[1] https://eloquentjavascript.net/

eliasdejongyesterday at 9:06 PM

CodeMirror is great, but still requires a lot of clientside JavaScript. I wonder if it would be possible to create a code editor in the same style OverType[0], where the editor is basically just an HTML textarea. You would need 70% less JavaScript code to do exactly the same thing, and it supports syntax highlighting out of the box[1].

[0]: https://github.com/panphora/overtype

[1]: https://github.com/panphora/overtype/pull/35

show 1 reply
sheepyyesterday at 7:08 PM

Marijn Haverbeke and Fabrice Bellard are my heroes

ejohanssonyesterday at 8:27 PM

Happy to see the love for Marijn. Goat.

sbruchmannyesterday at 6:06 PM

(2020)

anicepersonyesterday at 8:53 PM

blessed