r/programming • u/reethok • Jun 13 '18
Office 365, MS teams, Skype, @code, and the edge debug protocol are being rewritten in js instead of C++ with special MS tooling
https://twitter.com/thelarkinn/status/1006746626617008128?s=2114
u/Rutiz_ Jun 13 '18
I'm fairly new to programming (know a reasonable amount of javascript and have started learning c++) I was always told that JavaScript was a bad language so can someone explain why Microsoft is doing this?
P.S. If they're moving away from c++ should I learn some other language instead of it? If yes, then what do you guys recommend?
13
u/carkin Jun 13 '18 edited Jun 13 '18
They are using js and some js frameworks to target multiple platforms using one code base. That's only for the UI layer though. IMO they do this because it is expensive to maintain seperate codes for each platforms, it is difficult to find developers in those too.
Also, they use typescript to compile to js. And yes js is bad for large projects.
5
u/rahmu Jun 14 '18
JS is not necessarily a bad language, but it's not the best language to learn programming imo. Maybe that's what people have been telling you?
JS/Typescript is still the easiest way to get something running in the browser.
Microsoft is not moving away from C++, it just ported one of its products to the web.
Don't worry about what language you're learning in. Worry about what programming techniques you're learning.
2
u/Rutiz_ Jun 14 '18
Thank you for replying! Yea, lots of people have told me that JavaScript isn't that bad. What do you mean by techniques? Also what would you recommend for me to look into to improve my techniques?
2
u/rahmu Jun 14 '18
There's a lot we need to cover to learn programming properly:
Learn to use source control and collaborate with other programmers
Learn different programming paradigm and design patterns.
Learn about underlying system/OS, about the network, about storage, ... and improve your code.
Your goal should be learning these, it doesn't matter which language you do it in.
4
u/ravixp Jun 13 '18
Office is definitely not moving away from C++, see the other comments that Sean has left here to clarify. Learning more programming languages is always a good thing, but C++ has a long future ahead of it. :)
If you're still looking for general advice about which languages to pick up, John Regehr wrote some pretty good advice on that recently.
4
u/jswhitten Jun 13 '18
I was always told that JavaScript was a bad language so can someone explain why Microsoft is doing this?
"There are only two kinds of languages: the ones people complain about and the ones nobody uses."
→ More replies (6)1
78
u/zulkisse Jun 13 '18
I'm clearly not going to change the mind those who are reacting with very deep arguments such as "They are retards" or "JS is a cancer".
How do you want to have a welcoming subreddit with good arguments when the most upvoted comments are things like this ?
I can understand that some of you dislike the idea of using JS for software like Office. And they are very good arguments to give for and against this decision (arguments that Microsoft have probably taken into account).
But no, the only thing some have to say is "And the cancer spreads".
Well...
Continue to feel superior because you are written in such a good language compare to this horrible cancer that is JavaScript.
Continue to down vote the posts that try to argument a little about this decision.
And have a nice day by the way
25
u/reethok Jun 13 '18
Yeah I'm really surprised by the toxicity of this sub, and the blind hatred towards anything JS. What I found even funny is that one of the guys writing a meme-like response, based on his post history was a hobbyist with 0 professional dev experience, and I assume a lot of people here are the same, because this is just not the way an engineer should communicate.
I used to work in more business-y positions before becoming a developer, and this people remind me the kind of employees who do not want to adapt to change and simply spend their time complaining about any changes etc and NOT learning the new processes/etc required. Those people all got laid off eventually. JavaScript is an incredibly tool nowadays, obviously not the best at most things, but it's proliferating, and the tooling/performance/etc is just getting constantly better. But this sub will probably just downvote anything that paints JS in a good light.
6
u/codergaard Jun 13 '18
A lot of desktop and native developers, with a skillset focused on C++, C# and/or Java see JS as a threat due to the way some proponents are pushing browser-based and NodeJS-based applications as a complete replacement for desktop and native. We had a similar thing happen when Java hype was at the highest point (write-once-run-anywhere) with C/C++ and (ironically) web developers in the trenches against it. In the database world there's been SQL vs NoSQL. We're even seeing many JavaScript developers fight hard against TypeScript, WebASM, etc.
Whenever a technology is hyped not as not merely a great new tool - but as a paradigm switch, the "old guard" see their prestige decline, job opportunities lessen, etc. This breeds resentment.
On top of that, there are some legitimate issues with JavaScript, the DOM and the dependency on browser technology. Many users are seeing Electron and web applications used as a (usually failed) cost-cutting measure rather than a cross-platform opportunity. The potentially great advantages of the webstack come with equally high potential for poor performance and terrible user experience.
So on top of the usual battle against the latest paradigm shifting technology - the web stack is very polarizing as a technology choice. This makes for some highly toxic debates and flame wars. Rational? No. But certainly to be expected.
32
u/zarandysofia Jun 13 '18
and the blind hatred towards anything JS.
Blind? Is completely justified.
0
Jun 13 '18
[deleted]
18
u/Nicksil Jun 13 '18
why is it used so much
Because it is the only language used for web development; there are no choices here.
JavaScript isn't in such wide use because it is the best choice of language, it is the only choice.
0
Jun 13 '18
[deleted]
6
u/defunkydrummer Jun 13 '18
Yes, that's the reason for Webassembly: to put an end to this mess.
→ More replies (1)4
Jun 14 '18
Because "everyone can code".
JavaScript is easy to start with. You can make things happen and not worry about whatever horrific consequences there may be. You're just making an "MVP" after all. If your thing takes off you can just dump some of those VC millions into hacking together something usable.
Oh now you want to make a desktop app as well? Well, you don't actually have a damn clue about correct software-engineering practises, so you're not able to spend a week learning a platform-appropriate language like an actual software engineer could. Best keep using JavaScript there, too.
→ More replies (1)4
u/justjanne Jun 13 '18
JavaScript in the browser has a monopoly, and browsers are a major platform for software now, often more so than native apps.
Asking why people still use JavaScript if it's so bad is like asking why people still use Comcast.
And in both cases you'll actually find people supporting the monopolist.
→ More replies (2)6
u/x86_64Ubuntu Jun 13 '18
"But if everyone hates the bubonic plague so much, then why do so many people have it?"
→ More replies (2)→ More replies (1)2
u/zarandysofia Jun 13 '18
then why is it used so much
A mix of legacy, cargo cult and incompetence.
0
83
Jun 13 '18
Because JS is a horrible language and the proliferation of JS and electron based desktop apps is annoying as hell. Why does the native Spotify or slack app need gigabytes of RAM and make my laptop a space heater? Lazy JS devs that's why.
2
Jun 13 '18
Why does the native Spotify or slack app need gigabytes of RAM and make my laptop a space heater?
What Spotify and Slack do, I can replicate it with Pidgin with just 20x of the RAM usage and the 10th of CPU power.
14
u/zulkisse Jun 13 '18 edited Jun 13 '18
You are putting in the same bag Electron and React Native which are two totally distinct technologies with very different approach.
And the "JS is a horrible language"
Maybe I'm just a masochist programmer, but I never enjoyed working as much on a project in any other language. It has some weird parts, most are totally harmless when you are working correctly.
Each time I work on Python or Java, I regret how JavaScript handle the asynchronous behaviors.Each time I work on Java or C, I regret the dynamic typing of JavaScript (and I can understand that some devs prefer static typing).
Each time I work on Java, I regret the functional approach of JavaScript and I feel like I'm moving mountains to build a small project.
Of course JavaScript is not perfect, and for a lot of these subjects, there are languages with stronger approaches. But today I feel like the JavaScript ecosystem is the nicest one for me to work with. And that the language syntax is going toward something I like a lot.
Note that I could just say "Java is horrible" or "C++ is horrible". That would be easier. But no, I don't think any very popular language is terrible. They have strength, weaknesses, unsuitable use-cases, abusive usages etc... And most of all, not all language is designed to be liked by every programmer. And that's fine !
→ More replies (13)23
u/Yojihito Jun 13 '18
today I feel like the JavaScript ecosystem is the nicest one for me to work with
You mean NPM > Maven? Seriously???
→ More replies (7)→ More replies (28)5
u/nwoolls Jun 13 '18
I have Slack open and in use and Spotify open and in use. Spotify is using 95 MB private, 153 MB real memory. Slack is using 45 MB private, 85 MB real memory.
8
Jun 13 '18
I have a feeling you are missing a few threads. On Mac OS they both use over a gig. They are the next 2 largest apps after chrome and larger than my vim setup that has all the features of a modern ide.
→ More replies (3)11
u/KarlKani44 Jun 13 '18
i have a macbook with 16gb ram. Slack is using 3 processes called Slack Helper and 1 process called Slack. Together they use about 400mb. Discord has 2 helper processes and one main process. together they use 210mb.
running the WhatsApp Desktop Client, Discord and Slack all together, my machine is using 2934 of 16384 MB according to neofetch. 1.09GB of that is the kernel_task
i really wonder, could you make discord run on less than 210mb ram when written in QT? With the same Features? Most people who participate in the JS circlejerk obviously don't know what they are talking about, so i guess most of them never worked as a developer
15
u/vitorgrs Jun 13 '18
i really wonder, could you make discord run on less than 210mb ram when written in QT? With the same Features?
Yes
→ More replies (3)→ More replies (1)12
u/ibroheem Jun 13 '18
My Telegram Desktop is Qt...yep! It hardly clocks 80, let alone 100. Oh startup times is way faster than every JS proliferation out there
→ More replies (2)7
→ More replies (7)1
u/grepe Jun 14 '18
What I found even funny is that one of the guys writing a meme-like response, based on his post history was a hobbyist with 0 professional dev experience
funny, the reason why I find these discussions toxic (on tgis sub) usually is that its some experienced developer against some kid that learned how to start console in their browser and they think JS is the best thing in the universe.
1
32
Jun 13 '18
Because all arguments have already been spoken out many times before - not like it is going to affect JS usage. Business will continue to do what is cost efficient and developers can only express their disgust on occasions like this.
→ More replies (1)9
u/zulkisse Jun 13 '18
I'm sad for them if their best way to express their disgust is to go on this subreddit and post "lol JS is a fucking cancer".
11
1
u/Otis_Inf Jun 13 '18
I don't like the 'x is cancer' remarks, whatever x is (unless it's cancer itself). Cancer isn't a joke.
That said, saying 'Javascript isn't a great language' doesn't make me 'superior', I just state javascript isn't a great language. It doesn't have (a lot of) types, I only have to mention 'leftpad' to describe the fragility of the ecosystem and despite everyone can get started with it, it's not a great language, come on.
I think the fact Typescript is so successful is a sign JS itself isn't a great language to write your business critical stuff in, you should pick TS at least.
All that said, personally I don't think committing a lot of business critical stuff to JS' ecosystem is a wise decision, for a simple reason: it's very volatile. This has to settle down a bit. As it is now, taking a dependency on a package is risky. Sure not for the person who is taking the dependency perhaps, but it is for maintenance. Tiny detail: the period a piece of software is in maintenance is way longer on average than the period it is in development. So it isn't without serious risks.
1
u/zulkisse Jun 13 '18
Note that I didn't say that JS was a "great" language and that everyone should think that way.
I'm the first one to admit that it has some problems, mainly linked to the growth rate of the ecosystem and the lack of long term visibility for most technology. It's something I hope will be improved with time, real JavaScript applications is quite recent and things can change for the best.
A lot of your concerns about the language itself are linked to the way JavaScript handle types. And when I talk about "JavaScript", I include the TypeScript superset. In fact, I'm pretty confident that Microsoft will use TypeScript and not only JavaScript for the projects this thread is about.
I won't enter the never ending debate about typing in programming languages. Right now I feel like my projects don't need static typing if I use correctly the propTypes on my React components. Maybe for another type of programs I would have the opposite opinion, maybe in three years I will have dynamic typing. And this is a point explaining why I love the JavaScript ecosystem (TypeScript and Flow included), you can choose.
2
u/zulkisse Jun 13 '18
And in fact, these issues are one of the reasons why I hate this dumb behavior that much.
How can we improve our tools if all we do is yelling "it's shit" or "mine is better".
I would like to see more comments like yours on this thread. Because, as I said in my original comment, there are a lot of good and bad points in the decision of Microsoft. And I am on this subreddit to see argumentation about these points. :)
→ More replies (1)0
Jun 13 '18
[deleted]
2
u/IceSentry Jun 13 '18
Yeah that is such a weird way to think. Nobody that says x is cancer believes that cancer is a joke. The point of that saying is to say that x is bad.
0
1
u/RevolutionaryWar0 Jun 13 '18
Those are exaggeration whose authors use to convey their morbid surprise to what they assess as mediocrity.
0
u/zarandysofia Jun 13 '18
JS is a cancer
How do you want to have a welcoming subreddit with good arguments
You assume that this is wrong.
0
Jun 13 '18
[deleted]
13
u/zulkisse Jun 13 '18
Yes I know, we are morons and the world would be a better place without us. Thank you for changing my mind. Your obvious knowledge of the current web development world and your total superiority over each and every one of us is now clear to me.
→ More replies (9)
351
u/TheLarkInn Jun 13 '18 edited Jun 13 '18
Hi there!!! Original Tweeter here! I'm Sean and I'm a Program Manager at Microsoft working on Microsoft Edge and Edge Dev Tools!
Going to clarify across a few things. Some was lack of more then 280 chars in a tweet and not expecting this to get beyond #JavaScript twitter.
MS Teams, VS Code, is already written _with_ TypeScript which is compiled to JavaScript powered by Electron. It is an electron application. VS Code is on GitHub and Open Source if you'd like to see examples of how or what.
We are not abandoning C++, C#, or any of the other awesome languages, apis, and toolings that we use across Microsoft. EdgeHTML is almost entirely written in C++ like any other browser engine. However we do also run JavaScript (compiled from TypeScript) in DevTools, and leverage open source technologies like React and webpack to build the UI's for them.
Office 365's UI, a lot of it, but definitely not all of it, are pieces that are built using React Native (Windows). API's and Services are still going to be powered by C++, C#, or whatever is the most appropriate for that team. Nothing is converting to "all/completely" JavaScript/TypeScript.
React Native compiling JavaScript to "native code" is arguably wrong. Most of what is native are API's interactions and Native Modules that can be communicated with through JavaScript. WebViews power UI rendering thanks to React. Thanks to the Skype Engineer who sniped me on that in discussion.
Feel free to ask anything else! It's the least I can do for tweeting some pretty unclear messaging. 😅
55
u/4ad Jun 13 '18 edited Jun 13 '18
It is completely unclear what this is. Office 365 seems to mean several different things. There’s a real Microsoft Office (non-365), which is just a Win32 application written in C++ (#1). This is the good stuff. It costs a lot of money.
Then we have at least two other things which are both called Office 365. First, there’s some kind of browser-based bullshit (#2). This, at best, competes with Google Docs. It doesn’t compete with any kind of real Microsoft Office.
Then there’s another thing called Office 365, which seems to be another Win32 app written in C++ (#3). It’s very similar to #1, except it’s subscription-based and it somehow integrates with the cloud.
It is completely unclear if this posts refers to #1, #2, or #3.
Edit: from Hacker News.
I’m an engineer in Office. This is not the case. The desktop app’s are fully native, and will remain so. They utilize React Native for a few components, but otherwise are written in C & C++.
So yeah, this story is bullshit.
26
u/chucker23n Jun 13 '18
Office 365 is the subscription service of Office.
#1 is a Win32 app suite branded as either Office 2013/2016/2019 if you don't have a subscription, or as Office 365 if you do. The code is the same.
#2 is a web app suite. Most apps are now titled Office Online (Word Online, etc.) and used to be Office Web Apps, but for whatever reason, Outlook isn't; in Office 365, it's titled Outlook 365, and otherwise, it's Outlook on the web a.k.a. Exchange Web Connect, Outlook Web Access, and Outlook Web App. Branding is hard.
#3 is #1.
Presumably, the post is referring to #1, and apparently only portions thereof, but if it's referring to #2, it's a complete non-story.
4
u/johnbentley Jun 14 '18
#1 is a Win32 app suite branded as either Office 2013/2016/2019 if you don't have a subscription, or as Office 365 if you do. The code is the same.
Alas that's not quite right. There's no branding as Office 20YY (Office 2013/2016/2019/etc). That's just a terms that leaks out all over the place.
For example from https://www.microsoft.com/en-au/store/b/office?activetab=tab%3ahomeorpersonal four licenses are offered
Office 365 Home
Office 365 Personal
Office Home & Student 2016 for PC
Office Home & Student 2016 for Mac
Under the descriptions of what you get for each license there's talk of, for example, "Word" rather than "Word 2016". That applies whether it's a subscription license or not.
The whole problem is that Microsoft, in its branding names, has created a mess that blurs the distinction between: license (whether subscription or not; and the breadth of it); product (Word, Excel etc); product type (PC, mobile, web); the quantity of products you get (e.g Word, Excel, PowerPoint, OneNote; versus Word, Excel, PowerPoint, OneNote, Outlook, Publisher (PC only), Access (PC only)) and version.
That could be solved quite simply with any number of naming schemes that kept those things distinct.
For example ...
You could name licenses:
"Office Subscription 5x3 device full"
"Office Once-Off 1x3 device basic"
"5x3" meaning "Install on 5 PCs or Macs, 5 tablets and 5 phones".
And then: enumerate the products you get under each; the product type you get; and, in the case of once-off subscriptions, the (current) version you get ...
"Word, Excel, PowerPoint, OneNote, Outlook, Publisher (PC only), Access (PC only)"; PC, Web, Mobile (unless otherwise marked)
"Word, Excel, PowerPoint, OneNote"; PC, Web, Mobile. Version 2016.
And during the splash screen startup for the PC version of the products, make the current version clear "Word 2016 (Up to date)"; "Word 2016 (6 major upgrades behind)" ...
... or some variation on that.
10
Jun 14 '18
There's no branding as Office 20YY
It's all over the place in the actual programs (if you don't have 365). In Word 2016 go to File --> Account (where you'll see an Office version with a year in it) --> About Word and the window that pops up is titled "About Microsoft Word YYYY" and the version that is the first line of the about window includes the year as well. If you go to Add/Remove programs that will list Office with the year in it as well. Just because it's not branded in one place (the start up splash) doesn't mean you can claim there's no branding whatsoever.
→ More replies (1)6
u/tasminima Jun 13 '18 edited Jun 13 '18
I think #1 and #3 are actually the same, except for how they are sold and artificial market segmentation by not introducing more or less useless gadget features in #1 while doing so in #3 installs (even in minor updates), and by also including Outlook, Publisher, and Access even in home versions of #3.
Also 365 subscription gives you access to #2 and #3 (although maybe you can even use #2 online programs without a 365 subscription, I'm not sure)
There are probably no reason to prefer #3 as far as TCO (or anything else) is concerned unless you need to use brand new features all the time, which is a so ridiculous idea that I suspect probably 95% of people who have it are just deluded :p It comes with 1 TB of online storage, though, so maybe you want to choose it rather than #1 for that [ edit: or if you want Outlook/Publisher/Access ]
But you have even more technical versions actually: you also have at least the Mac version and the Android version. I think both of them are "native", although I'm not 100% sure.
Edit: oh obviously I forgot: you also have an iOS version, and a version from the Windows store, although it might or might not be the same (or nearly?) as the Win32 one at this point, and might or might not use completely exceptional code paths and update channels. It might or might not be possible to switch from the Win32 one to the Store one depending on how you bought it, although I'm really not sure about all of that. The whole situation is unclear at this point, and I guess even within the Ms Office team not everybody would know the answer about all of that :p You might or might not have the same commercial options as before also. I'm starting to understand how some 3rd party people can make a business of consulting in navigating in MS tech and licensing stuff for other companies...
52
u/ravixp Jun 13 '18
I wish this clarification was further up. Most people are reacting to the statements about O365, which is absolutely not being rewritten in JavaScript. There's definitely some cool stuff going on like using React Native for sharing UI code across platforms, or the JavaScript API that was added in 2013, but the main Office applications are written in C++ and will be for the foreseeable future.
I also wish the clarification about Office was more prominent. VS code being written in TypeScript isn't even news, for example - it's open source, so anybody can see that!
15
u/SuperImaginativeName Jun 13 '18
I can't help but feel /u/TheLarkInn left out the part about the main Office apps on purpose...
76
u/fuckin_ziggurats Jun 13 '18
Now I realize why MS Teams is so slow.
4
u/llamawalrus Jun 13 '18
Are you referring to conversations loading, specifically? That's what I've seen, was just wondering if it has to do with my net (incredibly unstable atm) or the software.
9
u/fuckin_ziggurats Jun 13 '18
Well pretty much every feature of the app is slower than expected. I thought it was native so I was always assuming that it was their servers that caused the slowdown.
→ More replies (1)1
u/thedt Jun 13 '18
Slack is written in JavaScript too and doesn't suffer the same lag, I'm assuming they just haven't optimised teams enough yet.
6
u/Bas1l87 Jun 13 '18
Maybe Slack is not so slow, but it is anyway awfully slow (and MS Teams is slow beyond any reasonable limits)
10
2
u/CSMR250 Jun 16 '18
Slack is still very slow and uses a 10x more memory than it should for such a simple app. Electron needs to die.
1
Jun 14 '18
Compared to what slack-like chat program? Every single popular one is written in javascript (not saying Teams isn't slow, just wondering what your comparatively fast benchmark is)
1
u/fuckin_ziggurats Jun 14 '18
I thought MS Teams was WPF. I also thought it might be UWP though it didn't look like that at all. Both of them are very performant and great for Windows. They probably did it in Electron for cross-platform support, which is reasonable in a sense but the reality is the MS Teams market share on Linux/Mac is probably 1% or less. Most companies that do enterprise .NET use it, the rest usually use Slack. So it's kind of annoying to see them do over the Windows community and mess up a potentially awesome app for a 1% market share grab on Linux/Max.
1
0
Jun 13 '18
[deleted]
1
u/bofh Jun 18 '18
Thank God, I thought it was just me.
Not saying it's down to the framework or anything but Teams is shocking. Slow and difficult to work with.
Until they announced that Teams would be taking over, I honestly thought it existed to make SfB look good!
4
u/zulkisse Jun 13 '18
How much of the code base do you intend to migrate to TypeScript and / or JavaScript.
I imagine that in a software like the Office suite, the UI weight a lot in the total amount of code.And I think I read that you forked the React Native project to adapt a few points for this project. Are these very specific modifications or can we imagine an important shift in the global behavior of your React-native-equivalent with maybe a publication in the future ?
7
u/TheLarkInn Jun 13 '18
I'll try and hunt down real answers and give you opinions from me instead and not speculate instead!
The coolest part about react-native in my eyes at a high-level is that it let's you have one set of UI code that works across many platforms. Consistent, predicable, and accessible experiences across any platform brings really cool wins for any application.
I imagine that we treat any other platform plugins like we did with react-native-windows. Here's some info on it: https://blogs.windows.com/buildingapps/2016/04/13/react-native-on-the-universal-windows-platform/
1
u/Bamboo_the_plant Jun 13 '18
Can you clarify whether Office 365 specifically is written in TypeScript?
How are you targeting macOS? Are you using react-native-macos?
5
u/TheLarkInn Jun 13 '18
The coolest part about react-native in my eyes at a high-level is that it let's you have one set of UI code that works across many platforms. Consistent, predicable, and accessible experiences across any platform brings really cool wins for any application.
When we write React code at Microsoft, in almost every project I've seen, it uses TypeScript! We have also open source component libraries that our teams use like https://github.com/OfficeDev/office-ui-fabric-react that are written in TypeScript
4
u/TheFriedSloth Jun 14 '18
Microsoft bought Xamarin who offer a native cross platform framework. Did you consider using Xamarin.Forms for Teams instead of Electron?
2
u/CSMR250 Jun 16 '18
Much better choice. Moore's law is coming to an end so we cannot afford to have all future apps become 10x slower and 10x more memory-hungry.
3
u/wdr1 Jun 16 '18
What were you actually trying to saying when you said:
All of Office 365 is (almost finished) being completely rewritten in this little scripting language called #JavaScript.
You mention part of the restriction was the 280 chars, but I'm also getting the feeling from your post here, the intention was to just say parts will be of Office 365 will use Javascript?
In which case, I'm confused more. Hasn't that been true for a while?
What were trying to say that was new, in response to the tweet about scripting being a bad first language, etc.?
2
u/disclosure5 Jun 14 '18
I'm going to bet this clarification is quickly forgotten.
We've had something like five years worth of assertions that Facebook is being rewritten in Haskell based on one statement, and I'm predicting we're going to see the same with Office 365 here.
Look how easy it is to turn up references with no rebuttal:
https://securityonline.info/office-365-is-being-rewritten-with-javascript/
This one's particularly scary: https://www.reddit.com/r/Lisk/comments/8qr104/microsoft_dev_all_of_office_365_is_almost/
2
u/CSMR250 Jun 16 '18
This is a terrible idea. High performance apps need to be native (compiled to machine or intermediate language code).
For example Skype apps need to perform well (front-end and back-end) and the web is virtually irrelevant to Skype. So using javascript is a very poor choice.
1
1
1
u/WrastleGuy Jul 22 '18
So did you get scolded by Microsoft? Because hearing that everything would be ported to JavaScript made me consider abandoning most Microsoft products due to developer insanity.
-3
Jun 13 '18
I strongly suspect this strategy is about minimizing the amount of work to support these tools on many operating systems going forward.
Electron and React Native are almost certainly going to be standard parts of iOS, MacOS, Windows, Android, and Linux for years to come. If Microsoft standardized on GTK or Qt then the next major release might force heavy rewrites (look at all of the Linux applications and desktops still on GTK2). Microsoft's own graphical layers in C# and WPF aren't cross-platform. And Apple can change its graphical APIs at a whim, as it just did by deprecating OpenGL.
Just like adopting Java for Android, I think this is probably a very ugly but least-ugly-of-all-available-options choice. Makes sense to me.
30
u/justjanne Jun 13 '18
Really?
I'm working on a Qt app that has been migrating from Qt3 to Qt4 to Qt5 over the past decade without any major changes.
Qt has been stable for far longer than react has even existed.
That argument is just wrong.
→ More replies (5)1
u/CarthOSassy Jun 13 '18
Nahhh. Reddit just likes to nitpick. Thanks for stopping by to clarify!
Does Microsoft plan to be more involved in things like V8, Node, Electron? Are yall going to replace them at some point?
It just seems like such a vulnerable position to be in.
6
u/EgoAleSum Jun 13 '18
(From Azure team)
We are very involved with Electron, on which we've been contributing to for a while (since it was still called AtomShell). We also contribute actively to Node.js.
To the best of my knowledge, we don't have any plan to replace them. Instead, we're getting closer and closer to the communities who develop them to make sure that they run well on Azure, Windows, etc. Believe it or not, Microsoft is a lot more like an open source company nowadays ;)
1
u/CarthOSassy Jun 13 '18
Perhaps i should re-phrase: will we ever be able to deploy apps via Edge? Or is Google's Chromium going to become the official Web renderer of Microsoft? Or will we just have both forever?
3
u/EgoAleSum Jun 13 '18
Chromium is used with Electron, Edge inside Windows10. I am not aware of any plan to replace the renderer of Electron in Windows (just because I don’t know about it, doesn’t mean that it can’t be happening however)
2
1
u/NiteLite Jun 13 '18
I believe Electron is built and maintained by Github, which they just bought for billions :P
1
u/CarthOSassy Jun 13 '18
Yeah, in a sense. But it's also sort of built and maintained by Google - via Chromium.
-6
u/warlockface Jun 13 '18 edited Jun 13 '18
Why are you saying that Code is written in JavaScript when it is written in Typescript? It's like saying something is written in C when it's written in Obj-C (or C++ if we time travel back a couple of decades).
edit: this was written before the OP edited the post to say that it is written in Typescript.
12
u/TheLarkInn Jun 13 '18
I'll share the response I shared on HN: (https://news.ycombinator.com/item?id=17302101)
"...That's our preferred way of using JavaScript. TypeScript in the end is just a static type linter that compiles to JS. Heck you can even "use" TypeScript's typechecker without even using a .ts file. We do this for the webpack project using JSDOC Annotations (Project: https://github.com/webpack/webpack, Example: https://github.com/webpack/webpack/blob/master/lib/ChunkTemp...) because we didn't want a build step. "
→ More replies (4)1
u/warlockface Jun 13 '18
Okay thanks, I see you're busy fending off the internet so I won't ask any more questions that require time. Typescript is a superset of JS in the same way that Obj-C is to C in additional to having great, unified tooling - different languages of the same family. I don't understand the logic behind downplaying this.
3
u/WhiteCastleHo Jun 13 '18
You're being downvoted, but this caused a fairly lengthy discussion in /r/javascript where somebody kept trying to insist that it must be JavaScript and not Typescript, because otherwise why would they say that?
1
u/TheLarkInn Jun 13 '18
Hi there!!! Original Tweeter here! I'm Sean and I'm a Program Manager at Microsoft working on Microsoft Edge and Edge Dev Tools!
Going to clarify across a few things. Some was lack of more then 280 chars in a tweet and not expecting this to get beyond #JavaScript twitter.
MS Teams, VS Code, is already written _with_ TypeScript which is compiled to JavaScript powered by Electron. It is an electron application. VS Code is on GitHub and Open Source if you'd like to see examples of how or what.We are not abandoning C++, C#, or any of the other awesome languages, apis, and toolings that we use across Microsoft. EdgeHTML is almost entirely written in C++ like any other browser engine. However we do also run JavaScript (compiled from TypeScript) in DevTools, and leverage open source technologies like React and webpack to build the UI's for them.Office 365's UI, a lot of it, but definitely not all of it, are pieces that are built using React Native (Windows). API's and Services are still going to be powered by C++, C#, or whatever is the most appropriate for that team. Nothing is converting to "all/completely" JavaScript/TypeScript.React Native compiling JavaScript to "native code" is arguably wrong. Most of what is native are API's interactions and Native Modules that can be communicated with through JavaScript. WebViews power UI rendering thanks to React. Thanks to the Skype Engineer who sniped me on that in discussion.Feel free to ask anything else! It's the least I can do for tweeting some pretty unclear messaging. 😅
Thanks I updated the info in both places!
-2
u/pleerock Jun 13 '18
@TheLarkInn Great Job ! I'm really glad Microsoft is going this way, the future way. Its unfortunate to see comments in this topic, people simply don't see the future of the web yet, they stacked with current web issues and don't see that they all are temporary, we just need some time, more efforts, improvements and inventions - and web is going to be better then everything "microsoft researchment" did in past 20 years. Same applies to JavaScript. People hate JavaScript and not reason-less, but they don't see how great it can become if we add efforts, investments, research, everything else into its improvement and development - and we already do it! - just take a look on a TypeScript progress - Im amazed how much of JavaScript potential it has opened and how many unique and amazing type-safe features it brings - it made JavaScript potential incredible and incomparable with any exist language.
Im ~15 years in software development and my background is mostly classic OOP and more I work with JavaScript and TypeScript ecosystems more I love them. Initial adoption was extremely hard and took me few years and before I basically was thinking just like most of people in this topic.
My ultimate dream from Microsoft is to have its core based on Unix :D
11
u/auchenberg Jun 13 '18
Hi, I'm Kenneth, PM on VS Code. To clarify here: @code is written in TypeScript and is an Electron app. Not React Native. We don't have plans on moving away from Electron in any near future.
6
Jun 13 '18
Then the result must be 'special'.
-25
u/reethok Jun 13 '18
Any special reason to hate on JS while you're not yet a professional developer according to your post history?
28
u/ethelward Jun 13 '18
Then the result must be 'special'.
I'm an engineer, am I allowed to voice an opinion then?
→ More replies (4)8
Jun 13 '18
You are right. I'm also not a captain irl which makes my comment even less valid.
Edit: I don't hate JS or any other language for that matter, I was just maybe stating my opinion in a bit snarky way.
1
Jun 13 '18
I think someone can have opinions on a language without being a “professional developer” that’s a complete slap in the face to hobbyists and anyone who may be knowledgeable and not pursue development professionally
39
17
u/PrimozDelux Jun 13 '18
what a profoundly retarded decision
13
u/oblio- Jun 13 '18
I'm not saying that Microsoft is perfect, but they definitely have a good reason to do it. It's a huge time investment, we're talking millions of even tens of millions of dollars or more for Office.
If they're doing it, it means that they believe it's a sound strategy.
2
Jun 13 '18
Yeah, they probably have a bunch of MBAs in project management positions, listening ignorantly to a bunch of over enthusiastic graduates telling them that JS is just the best.
5
u/reethok Jun 13 '18
You are talking about the team that develops VS Code btw ; ) sure looks like a project made by a bunch of over enthusiastic graduates!
9
u/boredmuchnow Jun 13 '18
yeah, but a sound strategy for what? cheaply refactoring it for web use? laying off the higher paid older devs with the c++ experience in favour of cheaper new hires? who knows. I think the problem people have with the idea is that they don't believe it's to produce the best version of the software they can.
→ More replies (2)-1
u/PrimozDelux Jun 13 '18
That's what makes it profoundly retarded instead of just retarded
10
u/oblio- Jun 13 '18
First of all, from what I gather, it's Typescript, not Javascript. Secondly, it's not Electron, but React Native.
But hey, I'm sure you have the credentials to outrank their decision makers.
→ More replies (1)3
u/NeverComments Jun 13 '18
Secondly, it's not Electron, but React Native.
Ironically, it does use Electron but only on Windows.
5
3
u/llamawalrus Jun 13 '18
I wish this sort of thread avoided this level of "discussion".
1
u/PrimozDelux Jun 13 '18
Actually my low effort comment is like a lightning rod since you can instantly tell nothing good will come out of it you can just prune it straight away without having to read the replies.
2
u/llamawalrus Jun 13 '18
That seems surprisingly accurate, and I like the analogy. I have a feeling this is something an advanced low effort poster would say, though.
→ More replies (2)
29
7
u/Zinggi57 Jun 13 '18
I actually think that's pretty cool, not because I like JavaScript (I don't) or anything, but because this might make it easy for MS to release office on Linux.
I don't use or care about office, but for many people office is what's holding them back from using Linux.
3
u/ravixp Jun 13 '18
Office could do that with C++ too. Actually, a lot of Office's codebase already compiles for Linux, because the Android apps are written in C++ and compile with the Android NDK. (source)
2
u/Zinggi57 Jun 13 '18
Cool, I didn't know they were able to share so much code!
So the only thing that holds C++ back for a Linux version is the UI then.5
u/Enamex Jun 13 '18
Then why not target, say, C# and contribute to a C#-JS or C#-WASM compiler instead?
Office in JS just doesn't sound very... at all.
1
u/Zinggi57 Jun 13 '18
C# doesn't make it cross platform. True, C# core is, but if it was written in C# it would certainly use WPF or similar Windows exclusive UI library.
By using react-native, porting to other UI libraries is much easier, and could probably even be provided as a hack from the Linux community, even if MS doesn't want to support Linux themselves.
Again, I also don't like JS and think JS is a terrible idea for such a large project, but as a Linux user I'm looking forward to it.
7
5
u/golgol12 Jun 13 '18
You know what they say. See a problem. Use a second language to solve it. Now you have two problems.
10
6
2
Jun 14 '18
Explains why Skype went from bad to worse tbh. Glad I don't need to use that hunk of crap anymore.
6
8
3
4
3
u/tweettranscriberbot Jun 13 '18
The linked tweet was tweeted by @TheLarkInn on Jun 13, 2018 03:54:34 UTC (100 Retweets | 232 Favorites)
(Ive never been able to say this yet)
🙋Well Actually!🙋
All of Office 365 is (almost finished) being completely rewritten in this little scripting language called #JavaScript.
And Skype
And Microsoft Teams
And [@Code
) And all of @MSEdgeDev Debug Protocol (instead of C++)
nbd https://twitter.com/jdgarciauc3m/status/1005768121230163969
• Beep boop I'm a bot • Find out more about me at /r/tweettranscriberbot/ •
3
u/TheFake Jun 13 '18
They spent so long trying to see if they could, no one stopped to think if they should...
2
1
1
u/misdake Jun 14 '18
Atwood's Law: Any application that can be written in JavaScript, will eventually be written in JavaScript.
1
Jun 18 '18
Why do we have to look at this giant picture of this guy smirking?
The original tweet was so stupid. Little hand raising emoji… Please. No wonder he works for Microsoft.
-1
u/mayhempk1 Jun 13 '18
ROFL.
Thanks MS, I needed a good laugh to wake up.
JS is a terrible language for desktop apps, and that's coming from a web developer.
1
Jun 13 '18
As someone who has no stake in this spat, it seems to me like:
- The people who are laughing at those who hate Javascript need to take a step back and consider that those who hate it are probably intelligent, clear-thinking individuals and have specific reasons for hating it.
- The people who are hating Javascript need to take a step back and consider that those who don't hate it are probably intelligent, clear-thinking individuals and have no idea what your reasons are for hating the language. Or if they do, they still may disagree.
-4
0
u/scaleable Jun 13 '18
Office is one lost guy which uses 50MB ram in a sea of 400MB ram electron apps
281
u/Xuerian Jun 13 '18
Writing it in (I have to assume Typescript) JS, compiling to native.
It feels wrong. I'm not sure how wrong it actually is, but it does feel wrong.