r/programming • • Jun 25 '15

Atom 1.0

http://blog.atom.io/2015/06/25/atom-1-0.html
1.1k Upvotes

632 comments sorted by

View all comments

Show parent comment

10

u/thelehmanlip Jun 25 '15

Yeah, Visual Studio Code did the same thing. I'm not totally sure why.

38

u/[deleted] Jun 25 '15

They already had the editor - visual studio online. It was probably somewhat trivial to embed it on top of electron, so why not do it?

As an aside, visual studio code is way faster than atom for some reason.

5

u/[deleted] Jun 25 '15

As an aside, visual studio code is way faster than atom for some reason.

May be is like Cloud9 and use canvas instead html.

2

u/jtanz0 Jun 26 '15

Just popped open dev tools on my copy of vscode and it's DOM all the way down. Each line is a div each token is a span

→ More replies (1)
→ More replies (6)

5

u/jugalator Jun 25 '15

Simple(r) multi platform support? :/

23

u/Tulip-Stefan Jun 25 '15

It is trivial to create cross platform user interfaces with native code using Qt.

Html/js is no better than java swing. You'll end up with something that behaves in non-standard ways on all platforms. I think people underestimate the effort it takes to implement even the simplest form dialog in a way that is looks like a native window on more than one platform. Qt is the only framework i know that behaves at least passable on a wide range of platforms.

22

u/[deleted] Jun 25 '15

Qt is the way to go. But noooo, let's do it in Javascript/HTML because you know, webscale and shit. Totally a waste of talent because those guys could be investing their time not only writing in Qt but also contributing to make Qt better and encourage people to use it in their own projects. HTML is pure crap.

2

u/khaosoffcthulhu Jun 25 '15 edited Jan 04 '17

[deleted]
0.5153

/47201^ thanks spez jiBUR)

10

u/thoomfish Jun 25 '15

Qt is the only framework i know that behaves at least passable on a wide range of platforms.

Yes, this sure looks native to me.

7

u/ph0bitor Jun 26 '15

It looks like that application's author opted to create their own UI, using their own layout, styles, etc. Qt has a module for native widgets; here's what it looks like in Android for example:

https://blog.qt.io/blog/2014/12/03/native-android-style-in-qt-5-4/

I think part of the reason HTML/JS is used so often is because its so much easier to set up and get started with compared to c++.

Also lots of popular HTML/JS toolkits and frameworks are permissively licensed, a lot more than comparable Java and C or C++ offerings.

5

u/Tulip-Stefan Jun 26 '15

That is Qt Quick. I wasn't talking about that part of Qt. I was talking about GUI's built on QtWidgets.

6

u/bobbaluba Jun 25 '15

Qt quick controls has only been available for android for a couple of months. It looks much better now.

8

u/thoomfish Jun 25 '15

I looked at a few of the Mac samples and found them equally unsettling, I just figured Android would be a more accessible example. "Cross platform UI toolkit" in my experience means "feels like Windows everywhere".

→ More replies (1)

0

u/[deleted] Jun 25 '15

[deleted] — view deleted comment

8

u/thoomfish Jun 25 '15

You look at that and see passable?

→ More replies (1)

4

u/ferk Jun 25 '15 edited Jun 25 '15

You don't really need an editor to look native.

The looks are the least of the aspects I would care about. I would rather have an ugly non-standard pure text interface if it had all the features I need in a fast and efficient way (I'm not saying that's the case for atom.....) than a beautiful piece of native-looking sluggish mess.

3

u/Tulip-Stefan Jun 26 '15

An editor doesn't need to look native, indeed. I need it to behave natively. Qt creator doesn't look like a native app either, but it behaves as one. It uses my OS text rendering settings, it uses my OS style of hotkeys, it uses my OS file picker dialog.

Have you ever used GIMP on windows? When i close gimp, a dialog box comes up that asks whether i want to save the current image or not. I always hit n instinctively. But no, the gimp developers have decided to assign d to that particular action. I press d a few times, nothing happens. O wait, i need alt + d ... This is the kind of stuff that completely breaks my workflow. A mac user would tell me that the buttons are in the wrong order.

I rely on standard behavior so much that i can point out UI bugs in windows explorer and windows media player. Apparently, even Microsoft can't get basic behavior right 100% of the time in their core apps.

→ More replies (1)

2

u/dethnight Jun 26 '15

So.... Emacs?

→ More replies (1)

2

u/ifonefox Jun 25 '15

Isn't that based on atom?

1

u/jtanz0 Jun 26 '15

Nearly it's based on atom shell now called electron which is a framework that allows you to write x-platform apps in HTML and JS and is itself based on chromium and io.js.

Electron underpins Brackets, Atom and VS Code

1

u/yoshi314 Jun 25 '15

portability of editor and plugins, most likely. not that i like the choice of technology here.

2

u/snipeytje Jun 25 '15

you could still have the plugins be JS if you really wanted, the rest of the program doesn't need to be in JS for that.

4

u/ferk Jun 25 '15 edited Jun 25 '15

I don't think the problem is the JS part but the HTML rendering part.

There are editors written in slower VMs than the V8 engine.

They could have still used nodejs and implemented the interface using some established toolkit rather than using a stripped down Chromium. Even stripped down it's still a beast. Plus now they have the extra burden of having to maintain their own Frankenstein... they even needed to create a custom fork of nodejs to be able to embed it properly

→ More replies (2)