Live data from Hacker News

Excel Adds JavaScript and Power BI Support

dev.office.com

21–30 of 108 posts

Re: Excel Adds JavaScript and Power BI Support

#21

VBA wasn’t bad enough, now millions of analysts will have to contend with spreadsheet spaghetti and JavaScript.

I'm thinking of all the places where I've seen Excel used in operations. Often it's the only software the company uses. Now we're going to get people who've done a little javascript in college using it to elaborate the Spreadsheet That Runs Our Business. In all likelihood, the resulting chimera will make an impenetrable tangle of VBA and Javascript.

Re: Excel Adds JavaScript and Power BI Support

#22

VBA wasn’t bad enough, now millions of analysts will have to contend with spreadsheet spaghetti and JavaScript.

I'm thinking of all the places where I've seen Excel used in operations. Often it's the only software the company uses. Now we're going to get people who've done a little javascript in college using it to elaborate the Spreadsheet That Runs Our Business. In all likelihood, the resulting chimera will make an impenetrable tangle of VBA and Javascript.

And if that works for the business... then where's the problem?

Re: Excel Adds JavaScript and Power BI Support

#23
My first question is will we be able to use wasm instead of javascript? That would open excel not only to javascript (which people may or may not like) but pretty much to any other language as long as someone builds a wasm runtime/compiler to (which seems to be on the radar of lots of people, starting with the .net team). Would also make more sense to me from a performance point of view.

Re: Excel Adds JavaScript and Power BI Support

#25
post #22

Earlier quoted context omitted.

I'm thinking of all the places where I've seen Excel used in operations. Often it's the only software the company uses. Now we're going to get people who've done a little javascript in college using it to elaborate the Spreadsheet That Runs Our Business. In all likelihood, the resulting chimera will make an impenetrable tangle of VBA and Javascript.

And if that works for the business... then where's the problem?

Well, on the one hand, it's not a problem. It's pure elitism to insist that laypeople learn Real Programming and make their spreadsheets the Right Way. Excel + JS is going to be an empowering tool. But on the other hand, it's going to be a nightmare to maintain when you layer it on top of VBA macros, and some poor soul is going to end up responsible for making it continue to limp along. Nobody will understand how it works, it will take hours to calculate, and it will become a drag on the business. I mean, we're there already with macros alone. Imagine if Javascript and VBA macros are allowed to coexist in the same system. It's going to happen, it's going to be somebody's problem, and I feel sorry for them.

Re: Excel Adds JavaScript and Power BI Support

#26
post #2

But no Python support as they promised. So sad.

> There are many useful function types developers can enable with Machine Learning, such as:

> Any custom Python code, like a function to analyze text in cells.

Sounds like you'll probably be able to hack Excel into running whatever Python code you want using the Azure ML integrations. I guess it'll be Javascript the people currently writing VBA are pushed toward though.

Re: Excel Adds JavaScript and Power BI Support

#27
post #23

My first question is will we be able to use wasm instead of javascript? That would open excel not only to javascript (which people may or may not like) but pretty much to any other language as long as someone builds a wasm runtime/compiler to (which seems to be on the radar of lots of people, starting with the .net team). Would also make more sense to me from a performance point of view.

It's already done; compile to wasm, then compile that to JavaScript using wasm2asm :)

More realistically, many languages can already be compiled to JS, you might not need wasm.

Re: Excel Adds JavaScript and Power BI Support

#28
post #3

> Office developers have been wanting to write JavaScript custom functions for many reasons, such as: > • Calculate math operations, like whether a number is prime. It saddens me that this is a thing we want Javascript for. So anyway, now we have XLL, COM, VBA, and Javascript. All of them different but overlapping ways to extend what Excel can do. Am I missing any?

VSTO

Re: Excel Adds JavaScript and Power BI Support

#29
post #24

Yikes, I hope people won't be doing any financial calculations in Excel JS. But I know they will.

They will use what choice microsoft gives them. Unfortunately that choice seems to be between a 20 year old language (VB6) and javascript...

VBScript is not VB6

Re: Excel Adds JavaScript and Power BI Support

#30
post #24

Earlier quoted context omitted.

They will use what choice microsoft gives them. Unfortunately that choice seems to be between a 20 year old language (VB6) and javascript...

VBScript is not VB6

VBScript isn't a scripting language of Excel. VBA is VB6 embedded in Office.

https://en.wikipedia.org/wiki/Visual_Basic_for_Applications

Post reply on HN