News for hackers. Stuff that matters.
Re:Why I Still Use Vim by mugsie on Wednesday August 23, 2017 @06:54AM (#15080315)
>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.

Re:Why I Still Use Vim by Klathmon on Wednesday August 23, 2017 @07:01AM (#15080367)
>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).

Re:Why I Still Use Vim by mugsie on Wednesday August 23, 2017 @07:13AM (#15080419)
Now, 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

Re:Why I Still Use Vim by Klathmon on Wednesday August 23, 2017 @07:22AM (#15080474)
The 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.

Re:Why I Still Use Vim by maelkum on Thursday August 24, 2017 @07:22AM (#15089156)
> 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.

Re:Why I Still Use Vim by Klathmon on Thursday August 24, 2017 @07:39AM (#15089230)
Write 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.

Re:Why I Still Use Vim by kuschku on Wednesday August 23, 2017 @07:15AM (#15080425)
> 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.

Re:Why I Still Use Vim by stouset on Wednesday August 23, 2017 @08:03AM (#15080729)
I can literally hear when my coworkers have IntelliJ open. People are here griping about Atom's memory use, but using 1GB of memory is an order of magnitude better than obliterating my battery by pegging my CPUs. No thanks.
Re:Why I Still Use Vim by Klathmon on Wednesday August 23, 2017 @08:36AM (#15080967)
To be fair, Atom isn't to friendly to the CPU either, especially when it's loaded to the brim with plugins!
Re:Why I Still Use Vim by ionised on Thursday August 24, 2017 @12:20PM (#15091390)
When does IDEA do that?

I use it every day and not experienced what you are describing.

Re:Why I Still Use Vim by Klathmon on Wednesday August 23, 2017 @07:18AM (#15080445)
I own a license and use IntelliJ's tools a lot still. Whenever I jump into Java code they are the gold standard! But when I'm working on web code, Atom runs circles around WebStorm.
Re:Why I Still Use Vim by rootlocus on Wednesday August 23, 2017 @07:46AM (#15080619)
> Atom runs circles around WebStorm.

Because it can show you a preview of the page? Because, as far as code indexing is concerned, Atom doesn't do a very good job at all.

Re:Why I Still Use Vim by Klathmon on Wednesday August 23, 2017 @09:08AM (#15081189)
Well yeah, and all the other things that I like about it.

And as for code indexing, Atom doesn't do much of it at all out of the box. Everything is in plugins (by design). So it can use the full abilities of TypeScript or Flow if you add those plugins, or it can just use TernJS, or it can offer simple string-matching autocomplete.

It does as good of a job as what you plug into it does, as all it really does at the core is display text, and give a plugin interface.