Live data from Hacker News

Applying programming language research ideas to transform spreadsheets

microsoft.com

11–20 of 129 posts

Re: Applying programming language research ideas to transform spreadsheets

#11
post #6

A simple scripting language, like LabView’s C subset, that could take arguments out of cells, and write to cells, would be welcome. VBA has too much gobbledegook for a user like me. Python could also be embedded.

I think LibreOffice uses Python as the scripting language, but you would have to fact check me.

There is a company called DataNitro that sells a Python add-on for Excell which allows you to use Python instead of VBA. It works pretty well, but I no longer use it.

Re: Applying programming language research ideas to transform spreadsheets

#12

Banks do crazy stuff with excel. I embedded a higher order functional language natively in excel 10 years back.... http://cufp.org/2009/fmd-functional-development-excel.html

This is really interesting. I wonder if some people that did this have migrated towards hybrid models? Particularly I'm thinking of something like Jupyter notebooks where charts, tables, and code can live side by side and be iteratively developed in a really tight REPL feedback loop as well.

Re: Applying programming language research ideas to transform spreadsheets

#13
post #2

The ideal spreadsheet should be a mix of Excel, Geogebra, reactive Jupyter Notebook (like ObservableHQ or Vue.js computed properties), programmable in Python, C#, JavaScript and/or other languages with the ability to embed third-party widgets like maps or custom charts. And decent data connectors with SQL-like query syntax (including JOINs).

At that point the line between ideal spreadsheet and ideal dashboard becomes pretty thin which could be interesting.

Re: Applying programming language research ideas to transform spreadsheets

#15
post #3

As a programmer, excel would be so much more useful if it allowed you to do things like filtering and selects using SQL or some other code so you didn't have to rely on the UI so much to do filtering.

Try powerQuery (Microsoft’s addon for just this) - it does it really well

As well as that you can roll your own functions which can be used in cells just like the native ones and call out to other languages and the shell. It really is rather powerful for minimal effort.

However, with great power comes great responsibility ...

Re: Applying programming language research ideas to transform spreadsheets

#16

Banks do crazy stuff with excel. I embedded a higher order functional language natively in excel 10 years back.... http://cufp.org/2009/fmd-functional-development-excel.html

This sounds like a joke, but I actually met a guy in the early 90's who wrote a Quicken/Microsoft Money competitor as a series of VB Excel macros, who then joined in on the Microsoft anti-trust suit, when Microsoft made moves to try and squash him.

Re: Applying programming language research ideas to transform spreadsheets

#17
post #7

Earlier quoted context omitted.

Banks, insurers, accountants; I know a company with 100M euro rev per year that runs entirely on Excel with VBA. Their office car park gate is opened, closed and managed with Excel. It sounds crazy but the CTO is a cofounder and he found it is much cheaper to just do everthing that way. They have been running like that for over 20 years.

It isn't the language for everything, but I've found you can do so much with a spreadsheet and a little VBA. Optimization, graphics, math...whatever. I also figure the company you refer to has some real benefit by focusing on one technology everyone knows. But how and the heck do they manage a gate in a spreadsheet?

I know about it because my friend (son of the ceo) provided the electronics for the gate and he showed me all the software in 1999 because we were pitching a rewrite in ‘web tech’ (my go to was Perl in those times). The gate software wrote to the parallel port via the win32 api to open and close the gate after the day/night watch entered the numberplate and name into the sheet.

Re: Applying programming language research ideas to transform spreadsheets

#19
post #6

A simple scripting language, like LabView’s C subset, that could take arguments out of cells, and write to cells, would be welcome. VBA has too much gobbledegook for a user like me. Python could also be embedded.

Excel support JS these days https://docs.microsoft.com/en-us/office/dev/add-ins/excel/ex...

Re: Applying programming language research ideas to transform spreadsheets

#20
post #7

Banks do crazy stuff with excel. I embedded a higher order functional language natively in excel 10 years back.... http://cufp.org/2009/fmd-functional-development-excel.html

Banks, insurers, accountants; I know a company with 100M euro rev per year that runs entirely on Excel with VBA. Their office car park gate is opened, closed and managed with Excel. It sounds crazy but the CTO is a cofounder and he found it is much cheaper to just do everthing that way. They have been running like that for over 20 years.

I think software is often more complicated then it needs to be. I used to write a lot of vbScript, but now I use Node/JavaScript whenever I need to glue something together. And there are many modules in Node.JS that you can glue together in order to do something useful. I find it even easier then vbScript/Excel/VBA!
Post reply on HN