r/programming • • May 10 '17

Visual Studio 2017 for Mac is Now Generally Available

https://www.thurrott.com/dev/115708/visual-studio-2017-mac-now-generally-available
608 Upvotes

203 comments sorted by

View all comments

Show parent comments

11

u/luxtabula May 10 '17

Vscode is really good and worth a try. I highly recommend it as well as atom and sublime

14

u/lambdaexpress May 11 '17

Recommending Atom on Reddit? Is that a shotgun I hear being loaded in the background?

5

u/LeCyberDucky May 11 '17

I'm a bit out of the loop here. Can you tell me why Reddit dislikes atom?

12

u/lambdaexpress May 11 '17

Key points:

Electron's architecture: Electron applications are essentially encapsulated in a stripped down version of a headless Chromium browser, with some elements taken from Chrome (like being bundled with Node, which uses Google's V8 engine used in Chrome). This means you can develop and maintain cross-platform applications that have beautiful UI, using web technologies (since code is executed at the browser engine level), with a low barrier to entry (ever tried dealing with GTK or Qt? Electron's learning curve is far gentler than even React's, which I liken to the brick wall learning curves of F-Zero or Dance Dance Revolution). But Electron's greatest strength may also be its fatal flaw. Chromium/Chrome is like its own operating system in miniature (in fact, Chromium has 16M lines of code, about the same amount as the Linux kernel). Therefore, when you run the desktop clients for Slack, Discord and Atom simultaneously, what you have is your main OS (e.g. Windows, Mac OS, Linux distribution) running three mini VMs, each of which has its own operating system (the Chromium "OS") that is in of itself running yet another Javascript program (in this case, the actual desktop clients). If you've ever tried running even one VM without beefy hardware you may be familiar with how miserable it can be. A similar analogy. Electron is like running VMs on your host machine, each of which are running their own programs. A more efficient solution would be for desktop applications run natively, but because of how the world wide web was designed over 20 years ago, it's not a particularly simple endeavor. The closest alternatives I can think of are Webassembly and ChromeOS, and they're still both in their infancy.

The codebase isn't spectacularly clean: As I mentioned before, Electron uses web technologies and has a low barrier to entry. Combined, it means bloated code is disgracefully easy to write. The bundled Chromium browser in which every Electron application is encapsulated is about 100 MB. If the Electron application is not written well (like Slack's desktop client, which executes a separate Chromium process for every team you're on), it can consume gigabytes of RAM and unacceptably high amounts of CPU power, or it will suck a laptop/tablet battery dry. This is a prime example of "just because you can, doesn't mean you should". Atom is unfortunately guilty of bloat due to bad code. Analogous to Electron, Atom's greatest strength (being hackable to the core) is also its fatal flaw due to Electron's architecture. This is because the "hackability first, performance later" philosophy gives Atom an intolerably bloated script layer that leads to equally intolerably frequent memory leakage. It's especially hellish if you try to open large projects.

1

u/Kozyre May 11 '17

Thanks!

10

u/dvidsilva May 11 '17

Poorly optimized. Really slow. Can't handle large codebases. Hogs ram.

Not sure if it has change but last time I tried it I felt it was not worth it. I use vim normally so ymmv.

Also atom used to be not open source, which sparked a lot of the early hate, but by now I imagine everyone knows is open source.

2

u/asdfkjasdhkasd May 11 '17

It's not that it's poorly optimized, it just runs like crap because it's built on electron. It could have all the optimizations in the world and would still run like shit because it's using the DOM.

2

u/dvdkon May 11 '17

From what I've heard, VS code is much faster than Atom, but both are built on Electron. I've never used Atom, but on my non-powerful notebook VS Code starts faster than Eclipse or IntelliJ and isn't noticeably slower than native IDEs.

1

u/[deleted] May 11 '17

Atom is a still a go to choice for serious web developers, and other types of developers.

But I guess some people tried it once, for a little bit, and decided it was totally bad and so now atom is totally bad from here on out.

9

u/heyf00L May 11 '17

I tried it, and it seemed fine until it started detecting a syntax error that didn't exist. Eventually I figured out that it was considering a ( inside a reg ex as starting an open parenthesis in the main language (I think that was it, or it was very similar to that). I uninstalled after that.

Maybe it's been fixed since then.

5

u/dagamer34 May 11 '17

Chokes on larger files apparently.

1

u/Pulse207 May 11 '17

I always thought that was an overblown issue, since it never came up while I was using Atom.

The other day, I opened up a 1.7 GB text file with emacs and just started editing it. Didn't even think anything of it at the time, but if I had still been running Atom, I wouldn't have had a pleasant experience.

1

u/[deleted] May 11 '17

It is pretty horrible that a 1.7 GB text file even exists, though.

Atom is safe if you are working on most files that should never be that long. A file really should max out around 400 lines at the most, before you break it up into more pieces. It's generally good practice.

Working with legacy and data can be the exception and that will require you to sometimes look for other solutions than atom, sure

1

u/Pulse207 May 11 '17

I mean, I made it and then realized I made some mistakes with the generation. Rather than wait around to run it again, I just edited the file and went about my business.

1

u/[deleted] May 11 '17

Probably an exception, though? I haven't found anything that compares to how good my atom experience is with the packages I use.

I mainly do react-native/react development and it feels really great. Went from sublime text to this and I'm really happy.

I tried VSCode but I didn't like the differences, I'm too used to the hotkeys in sublime and atom is more similar to that. I also don't like the way VS code looks. I also don't want any of the extra "ide" like features in VS code.

The package ecosystem for atom is amazing

1

u/Pulse207 May 11 '17

The package system for emacs is what prompted my switch from Vim, so I feel you there. I can't imagine anything else comparing to my setup except my setup X days from now that'll no doubt make me wonder how I ever got by with this.

1

u/[deleted] May 11 '17

I feel like I might want emacs if I was writing C++ but not for JS

→ More replies (0)

1

u/Luolong May 11 '17

Nobody really knows. Last man who knew was found lying on his porch with a shotgun would in his back.

-1

u/geodel May 11 '17

I think it is about Sublime. One has to defend that 70 gazillion dollars it costs to uncountable users commenting here.

1

u/vdanmal May 11 '17

It can't autogenerate namspace/class names of newly created classes which is annoying. Otherwise it's a surprisingly decent C# editor.