5 ms·
VSCode is an Electron app and it works fine. Slack is garbage because its authors just don't give a damn, not because of Electron.
by jeffbee 5y ago
VSCode is an Electron app and it works fine. Slack is garbage because its authors just don't give a damn, not because of Electron.
- mrtksn 5y agoI’m still impressed every time when I’m reminded that VSCode is an Electron app. What did they get right that everyone else fails to?
- kitsunesoba 5y agoThe team behind VS Code are all-stars and they’re backed by an established company with plenty of money to throw and no hard deadlines to meet for profitability. VS Code is also central to Microsoft’s strategy to rebrand themselves as a “good guy” to the dev community. Most Electron apps are cost cutting measures and this is reflected in the quality of their teams and the priorities of the company. They’re made to check a box, not to be good.
- userbinator 5y agoI haven't used VS Code, but on the other hand, Teams is also Electron and is one of the worst pieces of software I've ever used both in terms of UI and resource consumption.
- jeffbee 5y agoTeams is unbelievably bad, proving that it's not about the company or the library, it's about the dev team.
- kitsunesoba 5y agoTeams is much more of a "box checker" cost-cutter sort of project. Microsoft's enterprise customers are already captive, so Teams doesn't need to be good, it just needs to exist to prevent desertion due to lack of a Slack counterpart.
- fulafel 5y agoIt's still less terrible than its predecessor from MS, which is the crtiical thing for the captive audience in enterprise world. So the bar is low.
- jks 5y agoI was amazed when I saw that Finda is an Electron app. It's a single-author Mac-only utility that finds things much better than Spotlight: https://keminglabs.com/finda/ https://keminglabs.com/finda/ The author has a blog post about how he made it so fast: https://keminglabs.com/blog/building-a-fast-electron-app-with-rust/ https://keminglabs.com/blog/building-a-fast-electron-app-wit...
- bombcar 5y agoVSCode takes noticeably longer to launch than any other editor I have - save IntelliJ on an entire project. As long as you never quit VSCode it’s pretty snappy.
- mhh__ 5y agoIt amazes me how bad many so called tech companies tech is. We have a cross platform GUI app at work which is just a library that wraps the native GUI (Win32/X11 calls). The core interface is basically maintained by one person, but these tech companies seem to struggle with teams and teams of people working on their (say) Slack desktop apps.
- frutiger 5y agoI’d be curious to know how many users your app has, if you’re comfortable sharing that information.
- lupire 5y agoAre you getting new features in that app every week?
- mhh__ 5y agoNo. It's a simple app, but it's basically not maintained by any one person. How many useful features does, say, slack add? Certainly none that I'm using. My point isn't that it should be easy, but rather than these companies are utterly directionless and obsessed with solving scaling issues they either haven't hit yet, or don't know enough about to come up with a solution for.
- strokirk 5y agoSlack adds a few dozen big features every year, and a lot of them tend to be great. Recently the ”huddle” feature has been used a lot at my workplace.
- horsawlarway 5y agoThis 110%. Electron as a UI layer is hands-down excellent. But that doesn't mean I want to be running performance critical code in JS. Electron supports native addons just fine (and can call out to c/c++ fairly easily), but most companies don't take advantage of it. Hell - Slack goes from like 40% of my CPU to less than 1% if I just disable emoticon images (seriously - preferring the plain text over the rendered GIF make an INSANE difference in how crappy it is).
- Kibranoz 5y agoNo, You might have the best developers around but using electron will always make your app worse. It bundles all of chromium which is an outrageous waste of space. Chromium in itself is really ram intensive and the new contributions of Microsoft edge to chromium aren’t even added there anyway. If you need a web front end make a progressive web app and use web assembly technology. Or use a lighter framework like neutralino or tauri JS. You do not need to bundle chromium in every single application.
- rayiner 5y agoDon’t understand the down votes for this. There are no good electron apps. Zero. None. Just less bad ones.
- horsawlarway 5y agoLook - bitch all you like, but... An electron app is now the most popular editor on the planet. Further - because of Electron I can use every required work app on linux. I literally give almost no fucks how bad electron apps are, because I'm painfully aware of what it was like to try to run a linux box as a daily driver as an employed software developer before Electron - Hint, it involved booting a windows VM. You want to guess what's more of a resource hog? So, you can go poopooing "that damned new app on my block" all you want, but you don't matter. Between an electron app, and no app... I will pick electron. if that means I need to spend an extra 15 bucks on ram or hdd... oh the horror! Would I be happy to see linux native ports? Sure. But as someone who's not an a blind foolish zealot, I can do some quick math to understand exactly what the cost/benefit of native linux ports are, and I don't really blame companies for skipping them, and I'm thrilled they pick stacks like electron so I get first party support. Would I like to have more PWAs? Absolutely - go take it up with Apple, who's been a stick in the mud on this front for literally decades now. Do I think Neutralino or Tauri actually solves this problem? Nope - because it depends on the native webview implementation, system support is a nightmare (it's a modern take on DLL hell from windows - just this time it's missing browser features. You want to guess how many times I still see enterprise machines running ie8/11 as the default webview? It's a fuck load more than you might expect) Otherwise... take a deep breath. You will survive this "hugely trying ordeal" of having someone ship a slightly larger binary in this day and age of multi-terabyte drives.
- thrower123 5y agoVSCode is easily the worst text editor I use regularly, and it's the best Electron app, the one that everyone points to as the state of the art. I'd rather use one of the flock of old Scintilla editors.
- fastball 5y agoHave you tried Atom though?
- GeekyBear 5y ago>VSCode is an Electron app and it works fine. So why is Microsoft Teams so terrible? They moved it from Electron to Edge WebView2 on Windows, and said doing so would cut memory usage in half. https://blog.thoughtstuff.co.uk/2021/06/electron-to-webview2-what-does-it-really-mean-for-the-teams-desktop-client-and-for-a-client-sdk/ https://blog.thoughtstuff.co.uk/2021/06/electron-to-webview2...
- rayiner 5y agoVSCode isn’t fine, you are just suffering from web app Stockholm syndrome: https://github.com/jhallen/joes-sandbox/blob/master/editor-perf/readme.md https://github.com/jhallen/joes-sandbox/blob/master/editor-p... VSCode is slower than Emacs/Vim at e.g. syntax highlighting a large file by a factor of three. It’s slower on a search and replace by a factor of seven. It’s slower than those editors by about the same ratio as Atom is slower than VSCode.
- Macha 5y agoVSCode is slower than vim, this is true. So are Xcode, Visual Studio and MonoDevelop, so it's hard to say that being native would automatically fix it. But at the same time, VS Code is doing more for syntax highlighting than out of the box vim, and heavily plugin modified vim can get slow too. I can't say search and replace has ever taken a noticeable amount of time for me, on all my projects and devices it's perceptually instsnt, unless I'm doing a project wide search and forgot to exclude node_modules or something, a performance problem vim avoids by... not having project wide search.
- Nadya 5y agoBut you don't actually feel those differences unless you (a) measure it or (b) have such an absurdly large project or file as to actually encounter these problems. Many people aren't working on supermassive/monolothic projects and VS Code works just fine for my little 100-500 lines-per-file projects. I don't really care if it takes 0.0002 seconds instead of 0.00009 seconds because the end result is that it feels instantaneous either way. Sure if my files were 1,000,000 - 5,000,000 lines of code per file and I was working on massive projects the 8 seconds vs 0.004 seconds would begin to make a massive difference. I don't though and so it doesn't matter. I sped up the RegEx in my application earlier by an astounding 99.92% on average. I run several dozen various RegEx on a string once every few seconds - sometimes even slower. Execution for the end users already _appeared_ near instant and after the improvements it... doesn't feel any faster for the end users. Because the efficiency of my RegEx doesn't really matter at the rate strings are being parsed and for the small size of the strings (<150 characters often in the 30-50 range).
- jeffbee 5y ago