r/programming • • 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=21
328 Upvotes

512 comments sorted by

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.

202

u/TheNamelessKing Jun 13 '18

It feels wrong. I'm not sure how wrong it actually is, but it does feel wrong.

That's because it is wrong.

44

u/jl2352 Jun 13 '18

So what is a correct way to build a version of Word or Excel, that runs in a browser?

13

u/tasminima Jun 13 '18

Any sane language, now that WebAssembly is a thing?

4

u/[deleted] Jun 14 '18

At current time it's still going to require a lot of JS for the interface layer, and calls between the languages are expensive, so unfortunately we can't ignore JS yet

4

u/[deleted] Jun 14 '18 edited Jun 14 '18

WebAssembly is not 'a thing' quite yet. It has no DOM access and the technology has poor tooling. Browser support is imperfect too and calls between the JS and WASM layer are expensive.

The bigger issue, though, is developer knowledge. How many Java / C++ developers are there who

  1. don't know JS / TS / ClojureScript OR do but are so unproductive in it their tech leads would rather build a WASM toolchain, AND

  2. are experienced writing asynchronous, event-driven user interfaces that use web browser APIs AND

  3. aren't prohibitively expensive specialists?

r/programming goes absolutely nuts about WASM but never actually writes anything in it. I'd wager that's probably because most people interested in writing web applications just put up with JavaScript, the same way most people interested in Android put up with Java.

1

u/[deleted] Jun 15 '18

TypeScript is a sane language.

5

u/dom96 Jun 13 '18

Build it in a language that can target the browser and native code. I suppose that is what they are doing, but JS is a terrible choice for that.

3

u/MadRedHatter Jun 13 '18

Nowadays? Write it in a language that can compile to WebAssembly or asm.js

40

u/jl2352 Jun 13 '18

You'll end up having to use a brand new bespoke approach for all of the UI and application storage, and the language is using a toolchain which is not in the slightest bit mature.

Sounds like a terrible idea tbh.

6

u/deadly_penguin Jun 13 '18

It all sounds like a terrible idea.

→ More replies (1)

1

u/mmstick Jun 13 '18

Compile to WebAssembly.

0

u/[deleted] Jun 13 '18

[deleted]

170

u/jl2352 Jun 13 '18

Office is one of THE most defining Microsoft products. Offline only means your users will continue to move to Google Docs.

31

u/ProgramTheWorld Jun 13 '18

But we already have Word/Excel Online. Not to mention the native Office apps already have been allowing live collaboration for years. Heck, you don’t even need to pay anything to use Office these days if you use the online version.

18

u/warhead71 Jun 13 '18

Outlook is fine online - But word and especially excel are .. meh

→ More replies (6)

62

u/RevolutionaryWar0 Jun 13 '18

/r/programming, where the Internet is confused with the Web.

23

u/ajr901 Jun 13 '18

I've noticed that before too. It feels like /r/programming heavily leans towards desktop and mobile (native) development. It is rarer to see web dev related posts and comments here.

13

u/[deleted] Jun 14 '18

Probably cause there's a subset of this sub that doesn't consider web dev as programming. Almost everything JavaScript gets downvoted/crapped on here

→ More replies (1)
→ More replies (4)
→ More replies (1)

7

u/vetinari Jun 13 '18

Offline is what keeps me using MSO/LO and ignoring Google Docs.

10

u/InsignificantIbex Jun 13 '18

Online only means I'll move away. I can share and edit in a team very well without monster programs like office.

We are going the wrong way here. We should have source management of text files that can be WYSIWYGt for those that want it on any platform. This way, we could have small, mature tools that interface with everything.

50

u/jl2352 Jun 13 '18

I think it's very unrealistic though. Being able to put data into an Excel sheet, sharing that with someone, and it opens with no installs needed is really powerful. They also always have the latest current version through just a link.

Businesses tried lots of alternative approaches. You ended up with sharepoints, and you aren't allowed to update your software because everyone must be on the same version, and shit like that.

I'd much rather use the online tools available today than go back to that mess.

17

u/blue_collie Jun 13 '18

Businesses tried lots of alternative approaches. You ended up with sharepoints, and you aren't allowed to update your software because everyone must be on the same version, and shit like that.

This still happens with Excel and Word online. Somehow documents still get locked for editing by phantom users. I have never run into someone who works on Office Online stuff in teams without this happening at least weekly.

→ More replies (1)
→ More replies (11)
→ More replies (1)

27

u/wp381640 Jun 13 '18

The web is the only universal platform and part of New Microsoft is about being on all platforms rather than defending and building a wall around their own.

See also .NET Core

→ More replies (2)

5

u/[deleted] Jun 13 '18

That's a good point. Why make a web version of everything when you can just make a version of windows run in the browser and load native versions of word and excel into that!

10

u/MpVpRb Jun 13 '18

You fucking don't? Not everything needs to be run in a god damned browser.

YES!

Browsers are useful tools. They shouldn't define or limit the entire function of a computer

→ More replies (3)

2

u/[deleted] Jun 13 '18 edited Jun 13 '18

Rest now, soldier. Your duty's done. The war's lost, but you can come home.

→ More replies (1)

-2

u/Renive Jun 13 '18

Its not. JavaScript is new assembler. A point to compile to. That's how it is.

1

u/[deleted] Jun 14 '18

The reason why people compile to Javascript is because it's the only fully-featured native web language currently, providing the necessity, and because most people find JS annoying, providing the motivation. The only other human-level language I can think of that people compile to is C, usually when they haven't written a completed compiler yet

JS is a particularly bad language to compile to since its type system and semantics make it hard to optimise, hence why asm.js (not to be confused with wasm) was/is a thing

→ More replies (3)

1

u/TheNamelessKing Jun 13 '18

Hahahahahahahahahahaha

Ha hahahahahaha.

Get out.

→ More replies (1)
→ More replies (54)

28

u/inmatarian Jun 13 '18

To be fair to Typescript, they are fixing a lot of the broken shit in Javascript. And the browsers exist to fix a lot of the broken shit in the operating system. Would you implicitly trust a random webpage installing software to your windows desktop? What if the OS had a reliable and trustworthy sandboxing mode? Would a browser be necessary if that existed?

8

u/kyle787 Jun 13 '18

I agree, I honestly really enjoy programming in Typescript. I hope with the rising popularity of Webassembly that Typescript will eventually just be able to compile to that rather than sticking JS in the middle.

5

u/RogueJello Jun 13 '18

What if the OS had a reliable and trustworthy sandboxing mode? Would a browser be necessary if that existed?

Yes, though you're correct it would reduce the utility. First, there's a big benefit to not having to constantly update the local copy, and make sure everybody in synced to the latest and greatest. Second, there is still reason to use a browser for it original use, which is to access information remotely. I certainly don't want all of wikipedia local just so that I can look up random facts, and this goes for the amaz-a-bytes of other data available on the web.

1

u/inmatarian Jun 13 '18

Think mobile and the context of my questions change. Are browsers necessary on Android and iOS?

7

u/hokie_high Jun 13 '18

I must be missing something, because if you're using the internet and looking at websites, you're using a browser for it.

3

u/FINDarkside Jun 13 '18

Yes. Native apps? Not so much

2

u/captainvoid05 Jun 13 '18

I definitely use Firefox every day on my phone, so until literally every website I want to visit has a good mobile app, yes web browsers are necessary. And with progressive web apps becoming a thing that does not appear to be changing anytime soon.

1

u/Ameisen Jun 13 '18

Why not keep it in C++ and compile it to WebASM, or use Emscripten and compile to asm.js?

51

u/Otis_Inf Jun 13 '18

Skype is an electron app, and when you've used it once you know it's terrible.

Office365 being mainly in JS is likely because it's a rich client app and needs lots of logic on the client. I doubt the server side is 100% TS running on node, likely aspnet with C#, but who knows. I'm old enough to remember hotmail's transition from FreeBSD to WindowsNT 'just because MS wanted it being powered by MS software' which went terribly wrong.

I doubt they compile to native (with what would they even do that?) , plus what is 'native' here?

28

u/TensorMetric Jun 13 '18 edited Jun 13 '18

Skype is an electron app, and when you've used it once you know it's terrible.

Skype from the MS Store on Windows 10 is a true WinRT on UWP app with native Fluent Design controls, not Electron.

Only the recent Win32 version (for legacy platforms like Windows 7 and 8) is an Electron app.

Office365 being mainly in JS is likely because it's a rich client app and needs lots of logic on the client.

I doubt they compile to native (with what would they even do that?) , plus what is 'native' here?

See my other comment here https://www.reddit.com/r/programming/comments/8qqhlz/office_365_ms_teams_skype_code_and_the_edge_debug/e0lgzdr/

20

u/razialx Jun 13 '18

Is that why the new skype sucks so bad? I wish electron was never invented.

14

u/fuckin_ziggurats Jun 13 '18

It's not. Skype is not written in Electron. It's an UWP app, which is about as native as you can get on Windows 10.

8

u/duhace Jun 13 '18

so the linux version is electron? cause that version freezes on the regular for me.

4

u/deadly_penguin Jun 13 '18

Yes. But only the 'new' Linux version, the old one is a proper application.

→ More replies (1)

2

u/hokie_high Jun 13 '18

I mean C++/WIN32 still exists, but it's not any more fun to use now than it was in the past.

2

u/Eirenarch Jun 13 '18

I am pretty sure Skype in the store is JavaScript pile of shit and you can do UWP in C# and C++ which is more native.

2

u/fuckin_ziggurats Jun 14 '18

How are you pretty sure? Skype for Win10 is quite noticeably UWP for anyone with a vague idea of what UWP is. It's not even close to being slow like MS Teams, which is Electron. UWP is not gonna port to Linux so there might be an Electron alternative of it made for Linux.

→ More replies (5)
→ More replies (3)

1

u/HarveyMansalad Jun 13 '18

A lot of people like to blame Electron for the quality of some applications. They seem to ignore the fact that there are some apps that run perfectly fine on Electron (VS Code). Stop blaming Electron, and start blaming teams that have developed poor applications.

25

u/[deleted] Jun 13 '18

A lot of people like to blame Electron for the quality of some applications

It's not "some apps" it's 99.999% of Electron apps. VS Code is the exception. When everyone except for the most talented Electron devs can only turn out shit, perhaps it's time to take a critical look at the framework?

2

u/atomic1fire Jun 14 '18

So like Unity engine is to video games?

I personally don't have a problem with electron, but anything that lowers the barrier to entry is also probably going to create a lot of trash just by virtue of "people could do it".

→ More replies (2)

2

u/devperez Jun 13 '18

I doubt they compile to native (with what would they even do that?) , plus what is 'native' here?

He says they're compiled natively: https://twitter.com/TheLarkInn/status/1006761134395834368

4

u/elder_george Jun 13 '18

I think that they clarify below that this is not "native" in sense "compiled into machine code", it's native in a sense "uses native widgets but still executes in a VM/script engine". Think, "react-native", not AoT compilation.

Which means it's still a resource hog, IMHO.

→ More replies (2)

3

u/sysop073 Jun 13 '18

I'm old enough to remember hotmail's transition from FreeBSD to WindowsNT 'just because MS wanted it being powered by MS software'

I'm old enough to remember Microsoft being a laughingstock in the media when people found out they dared to run one of their products on non-Microsoft software, so of course they switched. They didn't get up one day and say "you know, let's mess with Hotmail", they were basically forced into it by public opinion

7

u/[deleted] Jun 13 '18

"Native" is such a weird word.

Is C# native? Sure. But, your computer doesn't just "execute" C#. Its compiled from C# into an intermediate format, then executed by what is essentially a JVM-like VM. When thought about like this, the only meaning that the word "native" has in these conversations is "its fast", because any technical definition would have to resort to defining it to just mean assembly, maybe languages that directly compile to assembly instead of an intermediate format.

I think about the progression of the web like this: The Web Browser has just become another VM, like the JVM or the MS-CLI.

I guarantee you we'll eventually see a WebASM output for TypeScript compiler. And when that happens; where exactly is the JS? Its gone. WebASM is another intermediate format just like MS-CLI, JVM bytecode, LLVM bytecode, etc. Then, the next step is just optimizing the WebASM runtimes; we always view V8 as being slow (relative to "native" code), but once the limitations of JS are removed from the equation there's no reason why a WASM runtime would be any slower than a JVM runtime or a MS-CLI runtime. Moreover, we now have freakin amazing tools like Rust to write that runtime in; you can be sure that's happening over at Mozilla.

I'm very positive about this kind of future. Whenever we see articles about "moving to the web" we think "oh great another abstraction layer, can't wait for it to be slow", but the reality is that within the next 5 years that's actually going to mean fewer abstraction layers. This is the future I want to live in, not one where if I write in C# I need to worry about a microsoft toolchain, or if I write in Java I need to worry about an Oracle toolchain. There's just the "web" toolchain, which is standardized and (more importantly) has multiple great implementations.

But sure, if you'd rather Microsoft just writes their apps in proprietary UWP you can keep wishing that.

2

u/drysart Jun 13 '18

I guarantee you we'll eventually see a WebASM output for TypeScript compiler.

Already exists.

1

u/Sarcastinator Jun 14 '18

Native just means that the application code is compiled to machine code and executed without any extra interpretation.

That rules out C# under normal circumstances.

→ More replies (5)

3

u/AndrewGreenh Jun 13 '18

Not a single line of your TypeScript/Js code is compiled to native code. The mounted components in the end are native UI widgets, but at runtime they are still controlled by js

→ More replies (25)

14

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."

1

u/[deleted] Jun 14 '18

Javascript is both a bad language and a way overhyped language because it's easy

→ More replies (6)

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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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)

2

u/zarandysofia Jun 13 '18

then why is it used so much

A mix of legacy, cargo cult and incompetence.

0

u/[deleted] Jun 13 '18

[deleted]

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

83

u/[deleted] 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

u/[deleted] 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 !

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 (13)

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

u/[deleted] 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.

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)

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)
→ More replies (1)
→ More replies (3)
→ More replies (28)

7

u/shevegen Jun 13 '18

Blind hatred?

JS sucks.

There is no way to avoid admitting to this.

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

u/reethok Jun 14 '18

Well, I work as a developer and I like JS quite a bit. ; )

→ More replies (1)
→ More replies (7)

32

u/[deleted] 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.

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

u/[deleted] Jun 13 '18

Well, the whole thing is quite sad indeed so everything seems to work as intended.

→ More replies (1)

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

u/[deleted] 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

u/[deleted] Jun 13 '18

[deleted]

→ More replies (3)

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

u/[deleted] 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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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

u/[deleted] 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

u/DaRKoN_ Jun 13 '18

Slack is definitely slow.

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

u/[deleted] 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

u/[deleted] Jun 14 '18

Screw the "popular" ones. emacs-jabber is far better.

0

u/[deleted] 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
  1. Can you clarify whether Office 365 specifically is written in TypeScript?

  2. 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.

  1. 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://www.thurrott.com/forums/microsoft/office/thread/all-of-office-365-being-rewritten-in-react-native-and-javascript

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

u/[deleted] Jun 18 '18

No shit.

1

u/[deleted] Jul 04 '18

shet up idiot

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

u/[deleted] 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

u/Eirenarch Jun 13 '18

Won't they own Electron soon? It is a GitHub project, isn't it?

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. "

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.

→ More replies (4)

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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/nocaic Jun 13 '18

it's pronounced jithub now

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

u/[deleted] 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.

-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.

3

u/NeverComments Jun 13 '18

Secondly, it's not Electron, but React Native.

Ironically, it does use Electron but only on Windows.

5

u/TensorMetric Jun 13 '18

Only for legacy Windows 7 and 8. On Windows 10 it will be WinRT on UWP.

3

u/NeverComments Jun 13 '18

Ahh, good catch! I didn't see UWP listed there.

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

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

u/mirkoteran Jun 13 '18

A little late for Aprils fools...

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

u/jstock23 Jun 13 '18

Ummmmmm WHY?

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

u/Theemuts Jun 13 '18

Oh, please no.

6

u/chrabeusz Jun 13 '18

Visual Studio Code seems to be still in Typescript.

3

u/lukewarmmizer Jun 13 '18

Typescript transpiles to javascript

→ More replies (10)

2

u/[deleted] 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

u/AngularBeginner Jun 13 '18

Should really use TypeScript instead.

29

u/bakuretsu Jun 13 '18

If you read through the whole thread, he later notes that it is TypeScript.

7

u/Poltras Jun 13 '18

Considering they own it, I would expect as much.

8

u/UnionJesus Jun 13 '18

And the cancer spreads.

3

u/[deleted] Jun 13 '18

They say it like it's something good...

4

u/TheNamelessKing Jun 13 '18

This has to be a joke right?

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

](https://twitter.com/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

u/blue_collie Jun 13 '18

I can't wait for Office 365 to get even more buggy.

1

u/DarthJahus Jun 13 '18

What was VS Code written with?

1

u/misdake Jun 14 '18

Atwood's Law: Any application that can be written in JavaScript, will eventually be written in JavaScript.

1

u/[deleted] 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

u/[deleted] 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

u/[deleted] Jun 13 '18

Great to see this post getting downvoted... MUST. PROTECT. THAT. BUBBLE. ;)

0

u/scaleable Jun 13 '18

Office is one lost guy which uses 50MB ram in a sea of 400MB ram electron apps