by rmsaksida · 2y ago · 0 comments
I don't know about VS Code, but I remember Atom was refactored to use manual DOM updates because the performance penalty of using React wasn't worth it.[1] By the way, isn't OOP by far the most popular paradigm for building desktop UIs? I imagine VS Code is a difficult codebase to work with that has a lot of intricate code (as is usually the case with large software projects), but that's a strange piece of criticism :-)
> By the way, isn't OOP by far the most popular paradigm for building desktop UIs?
Yes, but I wish it wasn't. My day job is desktop development (with Electron), and I avoid OOP as much as I can and try to use a functional approach. After jumping all over the VS Code codebase to try to understand how some of this stuff works, and seeing how hard it is to navigate, I think heavy OOP is a bad idea.
I think a lot of people don't consider how complex text editors are and then there are the complexities of an IDE, or extensions, to be able to interact with it.
ropes? gap buffers? https://code.visualstudio.com/blogs/2018/03/23/text-buffer-r...
how vscode does it,
- https://code.visualstudio.com/blogs/2018/03/23/text-buffer-r...
I'm just saying, that general graphics editors is above that and do just fine with React.