4 ms·
Except that sublime does all of that, supports plugins written in python, and doesn't screen tear, and leaves me some RAM for other things
by mugsie 9y ago
Except that sublime does all of that, supports plugins written in python, and doesn't screen tear, and leaves me some RAM for other things
- rangibaby 9y agoSublime has frustratingly bad CJK support which someone from those countries would have fixed by now if it were open source. I got a plugin to get the IME working on Ubuntu but it could be so, so much easier.
- Klathmon 9y agoBut Sublime doesn't do all of that. It does some things better, and others worse (and still others not at all). I couldn't write a plugin for Sublime to embed a web browser. I couldn't write a plugin for Sublime to display images inline by fetching their URL if found in the source. Those kinds of features might not be important to you, and that's fine, but they are indispensable for me.
- mugsie 9y ago>I couldn't write a plugin for Sublime to embed a web browser. Yes - that is true. and, with atom basically being a web browser, it is trivial for them to do it. >I couldn't write a plugin for Sublime to display images inline by fetching their URL if found in the source I actually think that is now possible in ST3. With the new "Phantom" plugin API it can certainly inject a subset of html (including <img/> tags) into the view.
- Klathmon 9y ago>with atom basically being a web browser, it is trivial for them to do it. Which was the point of them making it in a web browser. Leverage that as a platform to make extensions/plugins easier to write and maintain and allow them to do more. Atom is a more capable "IDE" than any other IDE i've ever used, and it's easier to create and manage plugins for. Yeah, there are still some rough edges and things that I hate about it (honestly the whole "hanging for 30+ seconds because you accidentally opened a compiled file" shit really needs to get dealt with somehow, every release they chip a bit off of it, but it is still annoying), but it's by far the editor i'm the most productive with (by quite a large margin).
- mugsie 9y agoNow, I haven't worked on web in a while, but what advantages does having an in IDE browser of a random provenance (it trails Chromium by 2-3 weeks) vs using a known version in a separate window beside it? edit: spelling
- Klathmon 9y agoThe same benefits that having multiple tabs of code windows is better than multiple separate windows. When i'm debugging/developing/whatevering code that is going to run the same in all supported browsers, doing it in the editor directly allows me to switch tabs back and forth quicker and easier than having them as separate windows. When i'm working on my laptop without any additional screens, being able to keep the view of the page on the same screen at the same time as the code is hugely beneficial. When i'm at home I still tend to use a separate instance of the browser to "preview", but I still drop into the embedded one because the keybinding is so fast and easy to take a quick look then close the tab. Plus being able to open bookmarks to random documentation websites and see the docs in the most up to date format in their "correct" formatting right in the editor is a huge bonus too.
- maelkum 9y ago> When i'm debugging/developing/whatevering code that is going to run the same in all supported browsers, (...). Completely off-topic remark: I always find it funny that Web is hailed as the Write Once, Run Everywhere there is a browser, but then words "supported", or "compatible" start cropping up.
- Klathmon 9y agoWrite Once, Run Everywhere != every line is 100% compatible with every platform. Really any more the only things that aren't "cross-platform" are bugs, and very new stuff.
- kuschku 9y ago> Atom is a more capable "IDE" than any other IDE i've ever used That says more about you than it does about atom. You should check out the IDEA line of IDEs sometimes.
- konart 9y agoSublime has minihtml, just in case: https://www.sublimetext.com/docs/3/minihtml.html https://www.sublimetext.com/docs/3/minihtml.html It is a bit different from when you are using a browser trying to look like a text editor, but still.
- Klathmon 9y agoWhich is fantastic for some use cases, but not for the use case where I want a fully featured browser window in my editor to preview my page i'm currently working on as I'm working on it.
- konart 9y agoTrue. Still doesn't change the fact that you can open the page in a normal browser and autoreload it with some pluging in other text editors, but you can't have the same performance in Atom ¯\_(ツ)_/¯
- frou_dh 9y agoWhy not have one's actual web-browser as an adjacent window, with livereload? I think it's an anti-pattern for the primary application in use to be reflexively maximised and lay claim to the whole screen, meaning everything must be inside it.
- Klathmon 9y agoIf i'm working on a laptop with only one screen, an adjacent window starts to crowd the UI pretty heavily. Having it in a tab is easier for me. You can call it an anti-pattern, but for me the anti-pattern is alt+tabbing back and forth to see if my changes look good, or cramping the browser to 1/2 the screen and the whole editor (with sidebar, file tree, and other crap) cramped in the other half, or needing to navigate to localhost:3000 every time I want to look at something VS having a keybinding to open to the exact page i'm working on.
- maccard 9y ago
- _pmf_ 9y agoI wanted to agree with you and write a snide remark about Atom, but then I checked RAM usage of an empty Sublime Text 3 instance on 64 bit Linux, and it was at about 136 MB, so there's that.
- mugsie 9y agoSure - there will always be an overhead for window compositing, etc. But the point of the article is the bloat as you open larger files, which gets much larger when you use a DOM to do syntax highlighting. I have (and unfortunately still have to from time to time) open massive log files - in sublime / vi / nano they open fine (even with syntax highlighting), but even on my workstation Atom and Code fall over.
- _pmf_ 9y agoMaybe the virtual DOM should be an actual virtual DOM instead of an additional DOM that doubles the materialized DOM (like desktop application's virtualized list and tree views since 20 - 30 decades).