4 ms·
Here's my modest plea to authors of extensions like this: please consider creating a "standalone" version, too. The AST viewer in the GIF is a good example of
by cxr 6y ago
Here's my modest plea to authors of extensions like this: please consider creating a "standalone" version, too. The AST viewer in the GIF is a good example of a tool that doesn't need the whole VSCode framework around it; it can be implemented in a single "ASTViewer.html" that can be double clicked or dragged and dropped into the user's browser, which is probably already open.
EDIT: I see comments from the author below, where there's some version of this tool online, but it goes for other authors, too, and the ability to run it from a truly standalone, single-file viewer.
- Gehinnn 6y agoI refactored all the visualization out into a standalone framework. I share your view ;) Except that it should not be a single file. That is technically neither feasible nor required. https://hediet.github.io/visualization/ https://hediet.github.io/visualization/ https://github.com/hediet/visualization https://github.com/hediet/visualization
- cxr 6y agoWhat makes it infeasible?
- Gehinnn 6y agoWell, maybe it actually is easier than I thought to bundle everything into a single html file (I thought you couldn't embed fonts into html, but apparently you can [1]). Anyways, in case of this application, all visualizations together are like 20MB (the monaco editor is a significant part of it). Having them split up and only loading things one demand significantly increases startup time. Also, base64-encoding all the binary resources is a little bit inefficient. [1] https://www.mediaevent.de/font-in-css-einbetten/ https://www.mediaevent.de/font-in-css-einbetten/
- joshribakoff 6y agoThis is the approach I’m taking with https://rx-store.github.io/rx-store/ https://rx-store.github.io/rx-store/ We use http://Nx.dev http://Nx.dev to split up example apps and libs into separate packages. I have a “visualizer” package, a “devtools” (for use in browser), will potentially add an electron app etc later
- robenkleene 6y agoThe app I'm making called Repla (https://repla.app https://repla.app) is designed for this purpose. To be able to take the things typically done in the "preview" side of VS Code and break them out into their own window that's usable with any text editor.
- outworlder 6y ago> Here's my modest plea to authors of extensions like this Not trying to be snarky or anything but... the source code is available. If there's something that you really need, please consider contributing. That goes for any open-source project.
- Gehinnn 6y agoBut they have a valid point that many things could be more useful if they were thought more general. I feel like software development could be significantly more efficient if all developers would work together and not against each other, or just with much more foresight. We have so many programs/code/libraries that do almost the same stuff. But then, we are already super efficient compared to what we could do 50 years ago.
- cxr 6y agoFor what it's worth, I wasn't going to respond, but the more I read back this reply, the more it chafes—maybe because I've bristled about similar replies in the past and I've tried many times to write a blog post about what I see happening here. It reminds me of a different but commonplace phenomenon that has led to the case where I no longer bother filing bugs against projects who host their bugtracker on GitHub because of the high-ish likelihood that it will get a reply in the form of a comment responding solely to an imagined subtext in my message—where the subtext is that my bug report is actually a support request. I attribute this to the bugtrackers in many projects being run so poorly that folks are even allowed to file support requests there (which is frustratingly common on GitHub) and that maybe because the reply originates from someone who lives in a world where all communication happens through subtext. So intentional snarkiness or not, there's something in your comment that just doesn't comport with mine and the message in it. If I were directly addressing the author of this tool and, say, asking that it be changed or repackaged to solve some problem for me, then your reply would be on-target. But I'm not even using this extension, and that's not what my comment was. It was not a support request. Besides what I wrote, there was no subtext to be found, but if a person insisted on trying to root out some latent meaning from the words, then let it have been an observation about current approaches to modularity or the principle of least authority or the principle of least power. https://www.w3.org/DesignIssues/Principles.html https://www.w3.org/DesignIssues/Principles.html