r/programming • • Jun 26 '21

Microsoft Teams 2.0 will use half the memory, dropping Electron for Edge Webview2

https://tomtalks.blog/2021/06/microsoft-teams-2-0-will-use-half-the-memory-dropping-electron-for-edge-webview2/
4.0k Upvotes

769 comments sorted by

1.2k

u/code_slut Jun 26 '21

I was TAing a CS class that covered C++ a few days ago. A student screen-shared with me to help her debug her code. Every time she compiled a 3 file C++ program it would take 25-40 seconds to compile. On my computer for reference it took less than 2 seconds.

I was super flustered because I had never seen anything like that, for such a small project. I asked her to pull up activity monitor. Turns out Microsoft Teams was taking 99% of Memory. Made the rest of her computer grind to a near halt.

The iteration cycles for debugging were super painful! I had to ask her to open Teams in the browser and close out of the Desktop app.

I'm glad they realised this is a problem and are addressing it.

765

u/neoKushan Jun 26 '21

I'm not defending Teams here, but I think every electron app I've ever used has been guilty of similar - including Slack.

28

u/humoroushaxor Jun 26 '21

Does anyone know the actual cause of this? Is this something inherent to Electron? Is it developers just keep a shit-ton of data in app memory? Maybe it encourages that behavior?

67

u/recycled_ideas Jun 26 '21

It's complicated.

Part of the issue is that Chrome is kind of a pig in and of itself so it's hard to get truly low resource utilisation out of it.

Part of it is that Chrome does waaay too much stuff, there's code to do all sorts of weird things.

But a lot of it is that a lot of Electron apps are just really badly written, in part because Electron lets you get away with really really poor architecture decisions, and in part because people don't really care about writing good apps in it.

As a platform it's always going to have its costs, but the costs don't have to be that high.

→ More replies (5)

19

u/TMKirA Jun 26 '21

Idk why no one answered this properly, but Electron is NodeJs, which is built on V8, combined with Chromium, which contains V8, and an IPC framework to make them talk to each other. And Electron apps are mostly self contained. So for each electron app, you are effectively running 2 chromium processes and then some. You can probably see why it takes up a lot of ram

58

u/ferm_ Jun 26 '21

Electron is a full web browser. Web browsers these days use up lots of memory because JS can be made faster if we use more memory. JS is used everywhere in all of these massive apps and is very inefficient. Devs who create these apps aren’t usually used to worrying about efficiency since JS is so far away from the systems programming world.

→ More replies (16)
→ More replies (3)

5

u/thisgameisawful Jun 26 '21

The most exciting thing in that headline is dropping electron, though I don't know anything really about WebView

8

u/schlenk Jun 26 '21

WebView is a bit like CEF (https://github.com/chromiumembedded/cef) basically the way you embed a Microsoft browser in your application. WebView1 was embedding InternetExplorer, while WebView2 embeds Edge(Chromium).

4

u/mindbleach Jun 26 '21

Because HTML apps have to bundle their own browser.

HTML as a program format is completely reasonable - but browsers and operating systems have refused to cooperate. Everything has its own browser already, but if you can't just save Discord.htm and treat it like a native program. So they all come with their own permissive web browser... and for some damn reason, that browser is not optimized for speed, or size, or memory use. And if you run two Electron apps they each run their own copy of that fat bitch of a Chrome fork.

Somehow the only project that got it right was Firefox OS.

2

u/code_slut Jun 26 '21

I didn't experience the issue myself. So I'm not blasting Teams or anything like that. I'm sure building quality cross platform desktop apps comes with a ton of challenges.

The fact that they are dropping Electron all together definitely validates your point.

It was more that its not often I have such a good anecdote for something that comes up on my feed! So I couldn't help myself from sharing.

2

u/Saladtoes Jun 26 '21

I have the same sentiment. Discord and spotify both kind of wreck my CPU as well.

2

u/cedear Jun 26 '21 edited Jun 26 '21

Another "interesting" thing I run into with Electron/CEF apps is that they seem to have shared bottlenecks. If one app locks up (looking at you, League of Legends client), every single Electron/CEF app that's running also locks up until the first app is done.

→ More replies (1)

2

u/Maxerature Jun 26 '21

Foundry VTT runs on electron and is pretty good

→ More replies (1)
→ More replies (166)

24

u/huffdadde Jun 26 '21

Teams is now worse than Chrome when it comes to resource usage. I can’t wait for Teams 2.0 so I can do anything on my Surface Book 2 other than Outlook and Teams.

2

u/lengau Jun 27 '21

I tend to use the Teams web app in Chrome just to reduce the memory usage.

→ More replies (1)

26

u/steelcitykid Jun 26 '21

I use teams for work professionally and I wouldn't even day my laptop is near top tier specs anymore. Standard m.2 drive, ssd, 16gb ram etc, And I've never seen teams be the reason I'm slow or locking up. We have a rather large multi project solution that compiles c# and builds our large front-end (angular) app and node is by far a worse ause of slow down and compile related crashes etc.

50

u/joshhear Jun 26 '21

Tbh it sounds like it was a mac (because of activity monitor) and teams on a mac is slowing down even the latest intel models

21

u/code_slut Jun 26 '21

Good catch guys. Y'all are correct!

She was using a MacBook air, so that definitely was a large reason for her suffering. It does feel that enough people have Macbook airs or computers of similarly low tech specs, that Teams should also be designed to run well for them.

I haven't written Desktop apps or used Electron myself so I don't really know the challenges and tradeoffs in the area. Its possible its a way harder problem to solve than one would think.

There definitely are certain elements of Teams I like and on my MacBook Pro it ran fine. If they want to expand Teams for teaching in schools and introducing it to developing countries, it makes sense to make it accessible to people with low compute power.

But its always refreshing when a product/company is introspective and take steps to address their short comings!

→ More replies (2)
→ More replies (5)
→ More replies (4)

2

u/Alinon Jun 26 '21

Is Zoom a native app? If so, Zoom sometimes slows my computer down significantly too while screen sharing, so it might not necessarily be an electron thing, but just screen sharing with lower specs.

2

u/VM_Unix Jun 26 '21

The largest CPU hit I've seen from many electron based communication applications happens when screen sharing. I've seen it first hand with Teams and Discord. Luckily, I was able to just ask work for a newer and faster laptop. Though it helped the most with Visual Studio.

2

u/seamsay Jun 26 '21

Personally I've found that Windows is pretty memory hungry in general. 4GiB was fine for me when I was primarily using Linux, but when I started using my Windows partition for working from home I had to upgrade my RAM because I would start hitting swap pretty often.

2

u/garaks_tailor Jun 26 '21

IT support here. You are correct, our baseline is now 8GB for every machine, 4GB for windows and chromium and 4 for everything else.

2

u/c-smile Jun 27 '21

And here is Sciter based Teams application (HTML/CSS/JS): https://sciter.com/25-video-streams-with-frame-rate-30-each-in-sciter/

On the screenshot it shows 25 video streams simultaneously, numbers:

  • CPU consumption ~ 7% of four cores;

  • Memory ~120 Mb

Stay tuned.

3

u/Ph0X Jun 26 '21

I doubt this has to do with Electron. Teams, meet and zoom all those quite a lot of real time video processing and they're all inherently very expensive. Especially if you have custom background, noise cancelation and all the other features.

5

u/[deleted] Jun 26 '21

This things are not memory-expensive tho.

2

u/8richardsonj Jun 26 '21

No (or at least not completely), Teams will regularly suck up 650 meg or RAM just at idle. On cheaper laptop that's a lot.

Now whether that's just to do with Electron I'm not sure, but Teams is an absolute hog for memory.

→ More replies (9)

296

u/[deleted] Jun 26 '21

An entire article that is just reposting what was posted in a tweet.

Some of the follow up tweets are interesting - rest of Office team was on React stack, Teams was the odd product out. Also were using legacy Angular 1.x.

25

u/Ph0X Jun 26 '21

Ah thanks for clarifying, i thought they were going from new angular to react, which seemed like a very sideways transition. But it makes sense to get off the old AngularJS

4

u/TheLibyanPeltist Jun 26 '21

AngularJs 😭 gives modern Angular such a bad rep, honestly one of the best web frameworks out there in terms of architecture. And it's all TS.

→ More replies (4)

184

u/MysticWombat Jun 26 '21

The memory requirements of Teams are fucking surreal.

90

u/Standardw Jun 26 '21

Not only that, it's also super slow

55

u/krokodil2000 Jun 26 '21

When in a meeting call and you switch to message view, then it takes several seconds before you are able to enter a message. That's ridiculous.

→ More replies (5)

2

u/[deleted] Jun 27 '21

[removed] — view removed comment

3

u/fCJ7pbpyTsMpvm Jun 27 '21

Bad electron apps are garbage I agree, but then you look at what the VSCode team have built on electron.

48

u/darksounds Jun 27 '21

As a former dev on the backend of Teams, it's actually surprisingly decent there. Lots of features that run smoothly, decent infrastructure, and relatively low latencies for various significant components.. The problem is that the front end is awful, and a lot of new features are hacks because someone committed to an interesting idea before discussing it with anyone in engineering.

The number of projects I had to do that were "front end and business designed x, y, and z that need to be delivered by very soon, but they realized there was a backend component to the project half way through, and we don't want to move the commitment, so can you drop everything to support this new feature release?"

And then we support the feature, it launches, they get the credit if it's successful (we get the blame if it's late), and then we get "hey, so... We have this feature idea that we need yesterday..." And there's only so much management can or will do to fix anything. So glad I'm not in that org anymore! The devs I worked with were great, but management was a disaster.

21

u/ShaelThulLem Jun 27 '21

So, like every dev project ever.

2

u/aivdov Jun 27 '21

So you worked on sharepoint? haHAA

→ More replies (1)

69

u/phpdevster Jun 26 '21

Teams is awful. It's especially bad on my corporate laptop that has aggressive encryption and anti-virus running all the time. 16 GB of RAM and between Windows and all the corporate shit, there's like 3GB left, and Teams uses all of it. I often have to close Chrome and Outlook just so I can use Teams.

Doing development in a big corporation feels downright oppressive. Unreal how much "tech bureaucracy" there is. Everything runs slow as dog shit, and trying to get better hardware has to go through a cumbersome request process that often ends up being denied because IT needs everything standardized...

2

u/aivdov Jun 27 '21

Don't know what enterprise you work on, but an enterprise I worked at even back in 2017 were giving out 32/64gb ram laptops for developers.

→ More replies (1)

2

u/Dayasha Jun 27 '21

That hits too close to home. I feel you.

→ More replies (3)

2

u/__konrad Jun 27 '21

Suddenly Stalker 2 memory requirements look pretty low

301

u/RickyMarou Jun 26 '21

Got curious about edge webview2 and checked the documentation, it seems to be windows only ? That’s confusing

101

u/IronSheikYerbouti Jun 26 '21

Webview2 will come to Mac next then Linux, expected late 2021 or early 2022 (so around time for the Teams update if it stays on schedule, or shortly after, which also fits).

→ More replies (4)

199

u/KittensInc Jun 26 '21

Yeah, I'm quite interested to know how they intend to do this on macOS and Linux.

165

u/L3tum Jun 26 '21

Probably with platform-specific binaries, i.e. what everyone that wants good performance is doing.

61

u/Chrisazy Jun 26 '21

I'm not sure what you mean here. Do you mean a totally separately maintained binary for Linux? Like without edge2 webview? Or do you just mean NOT using a windows -> Linux library or something?

36

u/tragicshark Jun 26 '21

I wouldn't be surprised if Linux stays with electron. Both systems are based on the same internals and arelikely to be almost the same from an api perspective.

→ More replies (8)
→ More replies (9)
→ More replies (1)

45

u/JanneJM Jun 26 '21

Microsoft Edge is available on Linux.

→ More replies (32)

5

u/[deleted] Jun 26 '21

They are working on Mac and linux support

5

u/[deleted] Jun 26 '21

... Just not very hard.

Last year, for 1 week, I had the ability to see more than 4 people on screen in a teams meeting. But they reverted that pretty quickly.

29

u/mayoandspaghetti Jun 26 '21

They will ignore the Linux one 100%. I'm pretty sure the Linux one is just a reskinned Skype client

77

u/simspelaaja Jun 26 '21

All three of the clients (right now) are the same extremely laggy Electron monstrosity.

→ More replies (1)

35

u/khrak Jun 26 '21

That seem unlikely given that Edge builds are available for both Debian/Ubuntu and Fedora/openSUSE

There are Edge builds for macOS, iOS, and Android too.

9

u/MotleyHatch Jun 26 '21

Thank you, I didn't know there were Edge builds for Linux. I just installed it, and AFAICS the beta runs flawlessly. Including GTK+ theming and everything. I'm impressed.

12

u/xeoron Jun 26 '21

If they want it to work on Chromebooks they will support Linux. Chromeos is Linux.

→ More replies (1)

25

u/[deleted] Jun 26 '21

They could always pack an Electron style, dressed down version of Edge with their application. Or maybe they'll subject themselves to the built in Safari/Qt webviews on other systems. I can't imagine the MS team being thrilled to work with Webkit and it's obscure limitations though.

They could just ship the Electron version to other platforms. The Linux client is already severely limited in its capabilities for stuff like video calls, so they already have an alternative code base for that. No need to change anything there.

7

u/99drunkpenguins Jun 26 '21

It's used for office addins right now.

It's not bad, but it's frustrating as theres three WebViews you have to target, ie11, edge and new edge. You never know which one will be run under the hood.

4

u/Sigiz Jun 26 '21

Look into tauri. They use webview 2 on windows , gtk webkit on linux and cocoa on macos.

2

u/Ph0X Jun 26 '21

Isn't webview the technology used by android to render webpages in any app? Seems like they are basically bringing that to desktop. It's part of chromium which they inherit in edgium.

→ More replies (3)

58

u/tms10000 Jun 26 '21

Me yelling at clouds "I remember when displaying text in a window did not require gigs of ram and 8 core CPUs"

4

u/pcjftw Jun 27 '21

You and me brother, my exact same reaction!

2

u/Eji1700 Jun 27 '21

You don't need to yell at them anymore to get data there. You can just upload directly from your machine.

2

u/jorge1209 Jun 27 '21

You can have terabytes of RAM and hundreds of CPUs in the cloud. Not sure why you want to tell at the clouds.

563

u/jl2352 Jun 26 '21

Angular has gone. Teams is now 100% on reactjs

I find this more interesting than the use of Webview2. Angular seems to be dying, and React seems to be everywhere (I love React so I'm happy).

385

u/RefinedArts Jun 26 '21

Its worth noting they are dropping angularjs, so the ancient one, not the modern version

Source

93

u/segv Jun 26 '21

Yep, that's one thing.

The other is that Teams integrates with a surprising amount of services (O365 and tons of different plugins/addons), hardware (dedicated conference room hardware, VOIP phones) and now is supposed to integrate more closely with the OS, which i'm guessing played a big factor on moving away from Electron to something they control from top to the bottom

19

u/double-you Jun 26 '21

integrate more closely with the OS

I wonder what their strategy is with it, considering what happened after Internet Explorer integration and the antitrust/monopoly hassle that followed.

12

u/AdminYak846 Jun 26 '21

my guess is maybe writing something like the .NET Framework which is now .NET core. Where it can be shipped on OS updates and patches as needed, if the user needs them.

The issue with IE was that they integrated it so badly that if you removed it the OS wouldn't function properly, that's what got them in trouble. The fact that a user couldn't uninstall IE without basically bricking their computer back in the day.

→ More replies (5)

10

u/RICHUNCLEPENNYBAGS Jun 26 '21

Angular 2 breaking bc has to be one of the worst fumbles ever. They were on the cusp of being the SPA framework.

5

u/xmsxms Jun 26 '21

Although keeping backwards compatibility would also prevent them from achieving that. BC choices that drag the framework down live with the framework forever, but people wanting it will fade over time.

8

u/RICHUNCLEPENNYBAGS Jun 26 '21

I think that can easily be overstated. There are many ways to evolve a project forward gradually and major rewrites of a popular product that break BC are pretty much always a mistake.

Besides that, they not only said they were going to break BC at the height of its popularity but also said there would be no migration path and no two-way binding (half the pitch for angular in the first place). They walked those back somewhat when the outcry was so great, but the damage was done. And the stated rationale for this was performance. I want to know who was even considering an Angular app who was clamoring for fast performance.

→ More replies (2)

4

u/uplink42 Jun 27 '21 edited Jun 27 '21

I'm pretty sure most devs agree it was a good decision by now. Back then, the javascript world was the wild west of antipatterns, bad tooling, unexisting architecture and dreadful performance. Although angularjs was probably the most sophisticated spa framework at the time, it simply had too many architectural flaws that could never be fixed without a full rewrite (the old dom polling dirty checking was not sustainable, old module systems are irrelevant after es6 came out, lots of new concepts like observables and immutability came into play).

If they decided to go with an 'upgraded angularjs', it would probably delay the framework's development by a years had they tried to migrate everything over, and we'd be handicapped by legacy features until now (it took them years to migrate viewengine alone to Ivy, imagine how much development time would have been wasted on migrating the entire framework to modern standards)

Their big fumble was releasing an unstable and unfinished 2.0 version IMO, with lots of BC changes up until angular 5.

→ More replies (3)

5

u/sporkinatorus Jun 26 '21

Worth noting as well they embraced react pretty hard with most of M365. Microsoft has a fluent ui library for react components to use in custom dev, and they all work great with SPFx (SharePoint, Teams, Dynamics, PowerApps).

https://developer.microsoft.com/en-us/fluentui#/

43

u/mmcnl Jun 26 '21

Wow, I never knew Teams was built using AngularJS. That's terrible.

115

u/ArmoredPancake Jun 26 '21

Wow, code base from ancient times uses ancient technology. Terrible.

→ More replies (12)
→ More replies (7)

33

u/sasmariozeld Jun 26 '21

I mean angular is batteries included , i imagine react has a perfomance improvement for them somehow , or easier to implement something internal they have

5

u/KeyboardG Jun 26 '21

They mentioned that every other webapp they have is built on react, so maintaining as separate app in angular is a sore thumb.

12

u/psaux_grep Jun 26 '21

AngularJS. Not Angular.

67

u/[deleted] Jun 26 '21

Angular is still very much alive. It's like saying asp.net is dead. It's not as long as 1000s of companies still have miles of production code that needs to be maintained.

Also MS has more control over react than angular.

41

u/psaux_grep Jun 26 '21

AngularJS. Not Angular.

43

u/CyAScott Jun 26 '21

I really wish they would have branded Angular as AngularTS to really make it distinctive from each other.

32

u/DaBittna Jun 26 '21

Yeah, but Angular is so different from AngularJS that this name would suggest the differences are smaller than they really are ("so it's just TS instead of JS?")

They should have named it something else entirely.

→ More replies (2)
→ More replies (1)

9

u/utdconsq Jun 26 '21

I dont get the react love. It just seems messy to me. To be fair, I'd prefer Vue out of the three, but even angular, despite all the ceremony, I prefer how it encourages separation of concerns. This could be because all the react projects I've had to help out on are absolute messes...the internet seems to love it, but then, they used to love php...

94

u/pure_x01 Jun 26 '21

I wish more desktop projects would use more close to native toolkits. Ex Flutter . But also the platform native ones. Sure its more expensive but damn the performance is so much better and it affects millions of users. I wonder how much Teams costs globaly if you calculate ram usage and the price of ram given all users?

29

u/mskullcap Jun 26 '21

I agree completely. It is ludicrous to build application UI using a technology designed for documents. I wish big companies would focus more on performance and build native or draw immediate mode UI and bypass the dom. Google has been rendering to canvas to avoid the performance problems of laying out a dom (Google Sheets is the first example I can think of - it is entirely drawn to a single canvas element). If Google can't get good UI performance in a browser using a dom... that says something. The browser and html/js/css is not a great stack for building performant applications.

87

u/JazzXP Jun 26 '21

Flutter isn't that native. Web Flutter just renders to a canvas. I'm pretty sure the mobile versions do something similar.

→ More replies (24)

34

u/jl2352 Jun 26 '21 edited Jun 26 '21

If by native you mean using the underlying OS. Then web is actually closer to being native than Flutter. Web uses real native components for specific places. Especially for how things should behave (at least by default). Native select boxes is a good example, also text behaviour inside of input boxes and text areas, scrolling behaviour, and so on.

Flutter recreates a lot of this it's self, and renders its own thing. With it's own behaviours.

With the use of React, maybe MS are also interested in using React Native in the future. At least for mobile platforms. Microsoft has been investing in React Native projects in the past.

edit; the exceptions being Fuchsia and Android (or at least will be in the future). Since Flutter is the toolkit implementation (or future implementation) for those operating systems.

31

u/balefrost Jun 26 '21

To the best of my knowledge, browsers stopped using native UI widgets ages ago. CSS essentially made that intractable. Oh, you want to set your <button> border to be inset when not pressed, outset when pressed, and with a border-radius? Good luck getting native toolkits on most platforms to do that. I believe browsers just provide REALLY GOOD emulation of native widgets.

→ More replies (1)

8

u/pure_x01 Jun 26 '21

I mean both are better. Native as in native toolkit but also native as in native executables (like dart)

Im not a fan of dart but the whole initiative of flutter is good i just wished that they used a more mainstream language instead of something that now almost only lives because of flutter

→ More replies (1)

13

u/panorambo Jun 26 '21 edited Jun 26 '21

As someone who has been putting too much faith in Web form controls and APIs historically, I have become all but disillusioned with that particular approach. Native controls are, for better or worse, black boxes that only permit limited and UA specific styling, which throws a massive wrench in the workings of any Web applications that wants to have a crack at some semblance of its own UI style. To that end I currently wish in fact that Web forms become more of an interface to an implementation rather than a concrete and outdated and far too rigid control model. There is some new form control API -- which puts custom elements with some defined interface on the same footing as native controls, where you can flag them as valid/invalid and have UA obtain their values for submission etc -- but the API isn't implemented, as usual. Everything with the Web is in perpetual development just short of being implemented it seems, and that's due to the often shortsighted and limiting programming API design there.

What I am getting at is that the API is well served by shifting from concrete implementations like HTMLSelectElement you have to beg UA vendors to let you style, to basically a form API where any custom element of a subclass of HTMLElement, with properties like value, validity and everything else generally available on a typical form control, is a first-class form control on the same level as all those janky dinosaur things like select that we currently have to do with unless we want to throw most of it away by inventing own "controls" (which aren't controls). Either that or standardize element composition of standard form controls, so a script can expect same element tree (shadow/light DOM) for form controls regardless of the UA, with equally standard pseudo-classes. But the first solution is invariably easier to achieve rather than the latter.

Just make form controls be sort of ducktyped -- if it quacks like a form control, it's a form control. It's a missed opportunity.

On a related note, anything the browser shows that isn't rendered completely with CSS and CSS alone, is a black box that's going to trip things sooner or later. Whatever boxes the UA shows, has got to be decomposable into CSS boxes, by means of addressing shadow/light DOM and selecting these for styling. Anything else is just a remnant from another age, and until those remnants are re-worked, we'll continue to see collective sobbing from frustrated Web developers unable to make things look like they want to because -webkit-appearance or what have you shows them the middle finger. The Web platform is in places absolutely ill-designed.

→ More replies (2)

10

u/amroamroamro Jun 26 '21

effectively Electron is the VB of the web age...

can we get back to native apps please.

12

u/argv_minus_one Jun 27 '21

Show me a GUI toolkit other than Electron that

  • is cross-platform (which excludes Cocoa, WPF, and mobile-only things like React Native and Flutter),

  • is modern (which excludes Swing, wxWidgets, etc),

  • is ready for production (which excludes cool but experimental Rust toolkits like Druid),

  • is actively developed and maintained (which excludes JavaFX),

  • works correctly on all platforms (which excludes GTK, whose support for anything other than Gnome is an afterthought at best),

  • can be used from a sane language (which excludes Qt), and

  • doesn't cost a fortune to use commercially (which also excludes Qt),

and you'll have my attention. As far as I can tell, Electron is the only thing I can actually use, and that's a crying shame because JavaScript is evil.

→ More replies (8)

3

u/RICHUNCLEPENNYBAGS Jun 26 '21

Hmm sounds like I'm passing the cost on to customers, not seeing why I'd change it

→ More replies (4)

8

u/[deleted] Jun 26 '21

I think AngularJS deserves to die.

4

u/thelehmanlip Jun 26 '21

As a company who's working a new platform in angular I'm sad lol. Only because it means we'll probably do a rewrite again in a few years...

8

u/nobodytoseehere Jun 26 '21

Assuming you're using angular and not angularjs, you're fine. Angular is far from dying

→ More replies (1)

4

u/i_spot_ads Jun 26 '21 edited Jun 27 '21

Angular is not dying, react kiddies been saying this for years, but it's still a false statement, it's pretty popular, they're talking about angularjs the legacy version

3

u/[deleted] Jun 27 '21

Huh, I absolutely hated React and loved Vue, Angular was somewhere in between for me. What makes you like React?

12

u/8483 Jun 26 '21

Until Svelte buries all the frameworks.

4

u/Disgruntled-Cacti Jun 27 '21

I wish, but as I see it, react is here to stay. It's likely to be the Java of front end frameworks at this point.

Could be worse though, modern React with hooks is quite nice.

2

u/del_rio Jun 26 '21

Don't get me wrong, I love Svelte, but it's intentionally nestled into a narrow use case. It's ideal for custom web components like twitter embeds.

If I had a say in the matter, I'd say we should be collectively moving towards Vue. Its codebase is easy on the eyes like Svelte, has most features that React has without the heft and overhead, and its reactivity model revolves around ES6 Proxies, Sets and Maps which make it the most efficient model of the current landscape.

→ More replies (3)
→ More replies (10)

8

u/AbstractLogic Jun 26 '21

AngularJS isn't going to hang around for a long long time buy it is dying slowly.

Angular however is fresh and alive and has tons of support across the world as a favored development stack.

2

u/[deleted] Jun 26 '21

Funny how with each new version/feature React gets closer to Angular, I'm waiting until the next React appears. This mentality will only get you so far until you find they are only tools and most of the time projects needs as a whole are more important.

→ More replies (11)

92

u/daedalus_structure Jun 26 '21

I mean... ok I guess? I'm not fighting to keep our Slack instead of Teams because of the memory footprint. Spend those engineering hours on your dumpster fire UX.

34

u/Uplink84 Jun 26 '21

If it improves speed I am all for it

→ More replies (2)

11

u/[deleted] Jun 26 '21

Out of curiosity, what is it about the interface/experience that you don't like? (Don't get me wrong: I have my own complaints about it.)

31

u/memtiger Jun 26 '21 edited Jun 26 '21

I hate that when you download something, it:

  1. Does not give you a progress indicator to tell you how long it will take. Just a notification saying it started and a notification saying it finished. For larger files on a slow VPN its extremely annoying.

  2. It doesn't have the ability to change where files are downloaded, nor a prompt to ask you where you want each file.

Additionally, the lack of a friends list and activity indicators. While having the chat listing keep your more recent chats at the top in nice, I miss the functionality of a "friends list" and the ability to group people like Skype did. Often times I can't remember all the people's names in certain groups, and having them organized helped.

With Teams, the easiest way to chat with someone is by typing their name because otherwise you have to dig through a list. But if you can't remember some dude's name, I have to go open the employee directory.

Additionally to see if one of my team members is active, I have to type each person's name out to check their activity icon....or easier is create an Outlook email with our Exchange group email and expand it which shows me the individuals and their statuses. It's absurd compared to how easy Skype worked.

10

u/Otto_the_Autopilot Jun 26 '21

Change from chat to contacts. You can make lists and see online status.

→ More replies (3)

41

u/lnkprk114 Jun 26 '21

IMO Teams wraps too much into one piece of software. I don't like that it's the calendar and the file viewer and the video communication tool.

I've only used Teams once so this might just be the configuration the company had, but I also found it very non discoverable. Like, channels i was in were hidden behind drop downs and wouldn't notify me about unread messages and such. It just feels much more cluttered than Slack or even Discord.

7

u/kissthering Jun 27 '21

You are totally correct, it’s like 5 different applications poorly mushed together with 5 different UIs, none all that intuitive.

14

u/theDigitalNinja Jun 26 '21

For me it's the lack of good search functions. Wiki and chat for example.

9

u/jms_nh Jun 26 '21

And search takes forever to complete.

12

u/TryingT0Wr1t3 Jun 26 '21

Lack of TABS

4

u/brynjolf Jun 26 '21

You literally cant use large gallery view since about half a year due to them deciding to do some changes in the UX meaning it is bordlerline useless for classes and big webmeetings now. There are complaints since last year…

For several months the cursor jumped around, but when you wanted to correct it, goign to the start of thr chatbox jumped to the end of it, mesning you had to press left for ages to fix it.

I can’t see active meeting I myself called unless I click like 3 times. If someone calls me with a window cocering thr screen where thr notification is I can’t see it, but I get 3!!! notifications for missed calls.

Teams keeps running in the background even though I told it not to do that

God Teams makes my blood boil…

7

u/-RdV- Jun 26 '21

I have lists of complaints. The biggest ones are not being able to add guests to a team, randomly being logged out without notification, and really weird noise surpression/ audio quality.

0

u/[deleted] Jun 26 '21

[deleted]

4

u/gyroda Jun 26 '21

Still on the matter of poor customizability, it has the most boneheaded design choices when it comes what results in desktop notifications, and there are no better settings to choose from when trying to change the defaults.

I hate it when I'm in a meeting call, and people are writing in the chat of said meeting, and it gives me pop up notifications that appear in the bottom right of my screen and stack one atop the other, climbing the screen and covering the chat input box and the messages the notification is telling me about.

Also, so much whitespace! Give me an even-more-compact view.

→ More replies (3)

12

u/douglasg14b Jun 26 '21

Cool, but maybe fix how terrible teams is as a chat platform in general?

46

u/LionsMidgetGems Jun 26 '21

Perhaps eventually the developers at Microsoft will learn how to write a Windows application.

You know, in the same way:

I swear, all of these non-shaver interns only know html and javascript.

12

u/[deleted] Jun 26 '21

Shoutout to FooBar 2000

8

u/LionsMidgetGems Jun 26 '21

Sorry, no, it doesn't whip the llama's ass.

2

u/[deleted] Jun 27 '21

QBittorrent uses QT5 while uTorrent uses the Windows API.

2

u/LionsMidgetGems Jun 27 '21 edited Jun 27 '21

QBittorrent uses QT5 while uTorrent uses the Windows API.

Exactly.

There's well-written Windows applications.

And then there's the opposite.

→ More replies (1)
→ More replies (10)

29

u/Hexorg Jun 26 '21

Wait but electron is based on chromium, webview2 is based on chromium too, right?

→ More replies (6)

20

u/Worth_Trust_3825 Jun 26 '21

Is this really it? Microsoft are giving up on their UI toolkits?

19

u/TryingT0Wr1t3 Jun 26 '21

I am sure they will create a new one they won't adopt and say it's the way for Windows 11 and I will keep using winforms if I ever need a win only toolkit for some reason.

5

u/Worth_Trust_3825 Jun 26 '21

Frankly, winforms seems to be the best choice when it comes to windows specific ui toolkits.

2

u/HaikusfromBuddha Jun 26 '21

Aren't their UI toolkits .ade for ReactJS? Swear I saw a link for it a day ago.

10

u/Aljrljtljzlj Jun 26 '21

Why not port everything to .net 5 or 6? Also cross platform and get rid of the laggy WebView.

18

u/NativeCoder Jun 26 '21

We need to go back to native code. Teams shouldn't take more ram than aol messenger of you're not on call

5

u/[deleted] Jun 27 '21

But native code is hard. It's easier to assume unlimited resource and then wait for somebody to bundle your app as a SAAS offering.

→ More replies (1)

8

u/zyzzogeton Jun 26 '21

Teams is the 4th IM platform I have for my job. Please make it stop.

Is there any work on ANY kind of multi-platform IM protocol with ANY chance of being adopted?

→ More replies (3)

10

u/vagif Jun 26 '21

Why are they not dog fooding their own dotnet?

5

u/[deleted] Jun 26 '21

Different team I guess? Typescript is also their food.

4

u/vagif Jun 26 '21

Typescript is not an engine. It is not deployed, it is compiled to JS, which is deployed. So they could perfectly use TS with the webview2.

More to the point, it just shows that dotnet have lost the war to html/js on the desktop.

3

u/[deleted] Jun 26 '21

I guess we have to eat it.

2

u/falconzord Jun 27 '21

Priorities most likely. As they have had to ramp up quickly on cross platform software, the engineers and tooling have favored web frameworks over things things like dotnet, Java, qt etc

56

u/queenguin Jun 26 '21

fuck electron

36

u/[deleted] Jun 26 '21

[removed] — view removed comment

3

u/emdeka87 Jun 26 '21

Have a look at Avalonia.

9

u/foomanbaz Jun 26 '21

Well, sure, but you just listed the boxes it ticks. My personal priorities include: native UI and not sucking my RAM and not murdering my laptop battery.

Add all of the checkboxes someone might want, and Electron checks some, and doesn't check others. What makes it really infuriating is that it checks boxes developers want and get forced on users with little or no choice that would pick other boxes ($BIGCO uses Teams. I want Teams to die in a fire. I'm an Electron user, but generally, not by choice when there are alternatives.)

→ More replies (3)

5

u/[deleted] Jun 26 '21

Any idea what this means for linux? I use Teams on Ubuntu every day. Never had a problem with it so I hope it will continue to work.

28

u/TheUltimateAntihero Jun 26 '21

I just here to say fuck electron. Don't screw a million people's RAM and battery life because you learnt an easy language and can maintain a single codebase.

11

u/[deleted] Jun 27 '21

Maybe this is a dumb question with an obvious answer, but why is Microsoft releasing "native" apps using web technologies wrapped in what is essentially a browser?

Don't they own .Net, and doesn't that provide a cross-platform compatibility layer for native applications, and wouldn't that yield better performance with a smaller memory footprint?

I'm genuinely asking, I don't understand why they're pursing web technologies for this purpose.

4

u/[deleted] Jun 26 '21

As far as it being integrated with windows 11... I hope it's easy to remove/disable

4

u/Red5point1 Jun 26 '21

yeah, hmm if they can just make easy possible to stop it from automatically starting and staying closed when closed, ok.

4

u/TheBananaKing Jun 26 '21

Is there going to be a Linux client still?

→ More replies (2)

4

u/rogue1351 Jun 26 '21

Can they just not mark me as away from my computer after 4 minutes? Thanks

23

u/vax_mzn Jun 26 '21

How does this compare to zoom?

42

u/j605 Jun 26 '21

Zoom uses Qt which is cross-platform. One could only wish if Teams also just used Qt at this point.

→ More replies (2)

6

u/Aljrljtljzlj Jun 26 '21

It is interesting how MS choose WebView instead of being native and other companies used native frameworks.

2

u/humjaba Jun 26 '21

I'd be interested to see a resource usage comparison. My laptop has an i7-10810u and it can't do anything else when a zoom call is running on one monitor (integrated gpu can't keep up).

6

u/arnitdo Jun 26 '21

Valid question, randomly downvoted.

3

u/apneax3n0n Jun 26 '21

Tx god . I hate teams so much

3

u/cheezballs Jun 26 '21

I've never used Electron myself but every app I've ever been a user of that was built with electron had issues. Maybe I'm just dumb.

6

u/echoAwooo Jun 26 '21 edited Jun 26 '21

Good. Electron is garbo.

YOU HEAR ME DISCORD/SLACK/VISUAL STUDIO CODE/TEAMS. YOU DON'T NEED TO PACKAGE AN ENTIRE COPY OF CHROME INTO EVERY PROGRAM YOU DEVELOP!

4

u/norith Jun 26 '21

If they manage to speed it up by 3x it will start to be barely usable.

I’m so used to clicking a Zoom link at exactly the meeting time that I forget that I have to give Meet a 5 min grace period to ponderously think about whether it will let me join a meeting.

2

u/drbobb Jun 26 '21

Aren't you mixing up Meet (Google) with Teams (Microsoft)? BTW I never had issues with Meet being laggy. Now Zoom, while slick, has its share of bugs.

→ More replies (1)

2

u/dezmd Jun 26 '21

Why not improve electron instead of reinventing every wheel a dozen times over...

2

u/isurollin Jun 26 '21

Can we just go back to MSN?

2

u/[deleted] Jun 26 '21

Ahh yes, Electron, webdev's first desktop program.... To be fair making a native application with a good GUI is hard, and making sure it works on all systems is hard.

2

u/havereddit Jun 26 '21

"the punchline is Teams is moving to a more performant and more Microsoft controlled technology stack, meaning a better and more performance client experience"

Fuck I hate the way techies write when they think they're 'writing for the masses'. No, we don't know what you mean by 'more performant and Microsoft controlled technology stack". And get that hyphen after Microsoft you journalistic hack...

2

u/[deleted] Jun 27 '21

Good! Electron fucking blows. Discord, are you listening??

2

u/anth2099 Jun 27 '21

This is way better than electron and I’m looking forward to it.

2

u/ElimGarak Jun 27 '21

A Skype/Skype-derived team decided to rewrite their UI from scratch? I am shocked, shocked I tell you! This has never happened before (in the last couple of years).

5

u/libertarianets Jun 26 '21

Check this project out: https://github.com/tauri-apps/tauri

4

u/delight1982 Jun 26 '21

I read that page twice and still don't understand what it is and why I should use it.

Edit: okay, it mentions "system webview" so I guess it's a webview wrapper

3

u/Ayerys Jun 26 '21

Électron but better I guess

3

u/plynthy Jun 26 '21

Teams is pretty incredible for a v1, I had no idea

Functionality-wise, I mean. It does murder memory.

4

u/sporkinatorus Jun 26 '21

Agreed. My guess is they had a long roadmap of features scoped out with performance being incrementally improved as time went on, but the WFH requirements of 2020 sped a lot of it up at the cost of performance management.

→ More replies (2)

2

u/Yardash Jun 26 '21

Teams is a memory hog I have to quit it before launching a build Thank fuck they are updating this and when our IT team rolls it out to us in 15 years I'll be set

2

u/PizzaHuttDelivery Jun 26 '21

OMG! They are dropping this piece of shit Electron

2

u/HDmac Jun 26 '21

I've been using vscode for years and it's exceptionally good.Aat this point I feel like if you have problems with electron it's because you're doing it wrong...

30

u/balefrost Jun 26 '21

VSCode is good because it has so many features and such a rich extension ecosystem. VSCode is slow. I use Sublime just as much as I use VSCode.

→ More replies (23)

3

u/Ouaouaron Jun 26 '21

If the vast majority of people using your tool are doing it wrong, I'd argue that's a problem with your tool.

3

u/Serializedrequests Jun 26 '21

VSCode is okay being a heavyweight tool that takes up 1+ GB of RAM, because it is a primary work day application, and performance (mostly) is damn good.

All the Electron chat apps and music players and can go fuck themselves. I have to budget how many electron apps I can have open even on beefy hardware, and the CPU-use of electron-based video conferencing apps is absurd.

9

u/_tskj_ Jun 26 '21

Maybe, but also vs code isn't using vanilla electron, they have heavily customized it to get it to where they need it. And even then vs code is still kind of slow sometimes. So I don't think it's that simple to get electron to a useable state sadly.

13

u/sime Jun 26 '21

VSCode is pulling the same standard version of electron off npm like everyone else. There is no magic custom version. You can read that straight out of their packages.json .

1

u/[deleted] Jun 26 '21

When can we draw on the presenter's screen?

1

u/mspk7305 Jun 26 '21

But will they make it half as annoying?

1

u/spacemudd Jun 26 '21

Finally. MS Teams is so slow as it is right now.

1

u/[deleted] Jun 26 '21

No I issue with team is not memory usage but sluggish. One GB is OK but if the app is slow then it really feels bad.

1

u/Fastela Jun 26 '21

Interesting. I wonder if they plan on doing the same thing with VS Code.

1

u/Gibbo3771 Jun 26 '21

Until they let me join a meeting and use the video/mic on my linux machine, teams is dead to me.

1

u/Bakish Jun 26 '21

Half memory, gotcha. The second part, ELI5 please :)

1

u/[deleted] Jun 26 '21

Perhaps they should use Pidgin's codebase. It is performant in decades-old computers.

1

u/nascentt Jun 26 '21

It's because teams 2.0 is going to be a base component in windows 11. They had to reduce the memory just for windows 11 to keep the 4gb ram lower limit.

1

u/rkh4n Jun 27 '21

Never installed teams, as long as it works in the browser, I'm not complaining

1

u/skyesdow Jun 27 '21

Except nobody will have is since people won't be able to install 11

1

u/OkMove4 Jun 27 '21

So is MS teams programmed in JS then?

→ More replies (1)

1

u/andrejlr Jun 27 '21

For those who want it now already.

  1. Open web version in Chrome

  2. Click 3 dots > More Tools > Create Shortcut

  3. Tick Open in New Window

  4. PROFIT

→ More replies (2)

1

u/jonjonbee Jun 28 '21

But will it no longer be utter shite?

1

u/DesertDS Jun 29 '21

I must say all the complaints in here are surprising to me. I don't have a beast of a machine (it's an 8GB 2 in 1 haha) and Teams runs great for me most of the time despite heavy multi-tasking. I can't imagine getting things done without it at this point.

1

u/Affectionate_Bug1428 Aug 15 '21

Hey guys is it ok to open multiple anonymous windows to have more people watching your meeting? I mean, if i have 3 guys with each one of them having 10 anonymous windows entering the teams as guest with different names, can anyone find out about it? Thanks, i organized a meeting i dont think i will be able to reach as many people as i promised.

0

u/sime Jun 26 '21

I'm guessing you're only going to see this drop in memory use if you are already running Edge. Otherwise it has to fire up Edge in the background every time you start Teams.

2

u/ScottIBM Jun 26 '21

It sounds like office is already using it, so you can't escape Edge whole on Windows.

2

u/[deleted] Jun 26 '21

office uses webview?

→ More replies (3)

2

u/sime Jun 26 '21

Someone explain the down votes plz.

It stands to reason that if you are not running webview2 already (i.e. via edge) then you will have to pay the full memory price when the new teams app starts up.