Live data from Hacker News

Applying programming language research ideas to transform spreadsheets

microsoft.com

61–70 of 129 posts

Re: Applying programming language research ideas to transform spreadsheets

#61
We’re starting to use Airtable in a pretty sophisticated way. It allows you to organize yourselves and be pretty dynamic as you learn and adapt your process. We can then have our engineers come in once the data model is robust but frankly I see our team using the Airtable UI for a long time.

Re: Applying programming language research ideas to transform spreadsheets

#62
post #37

Earlier quoted context omitted.

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've done some pretty mindbending things with VBA on Excel. They work but they are not pretty and not easy to maintain. VBA is technically a "complete" language (I want to say Turing-complete but that is not a meaningful trait), so it is possible to do a lot with it, but one ends up having to re-implement (sometimes badly) stuff found in other languages in order to write the main parts of the code. Part of what makes…

"but I've learned that when dealing with a Microsoft stack, there are advantages to using Microsoft-native languages like C#."

curious. can you elaborate?

Re: Applying programming language research ideas to transform spreadsheets

#63

Earlier quoted context omitted.

I am (as a matter of principle) only working on projects which need to run for 10+ years or cannot be upgraded (firmware for very constrained devices) so yes, software is often far more complicated than it needs to be, but writing it in VBA or JS is not helping imho. Carefully designing, typing and formally proving (parts) is what makes me have applications running on cheap servers with basically 10+ years uptime (be…

I'm fascinated. What sort of software needs to run with ten years uptime? How do you avoid downtime for operating system updates on those cheap servers?

Telco, HVAC, message switches, various embedded systems, alarm systems and so on.

Re: Applying programming language research ideas to transform spreadsheets

#64
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'm a dev on XL at Microsoft and took a trip a few years back to meet some of our advanced users. I was blown away by their 'accidental' CS education through Excel. They built sheets (debuggers) to debug other sheets (programs) on their OS (excel), and did this not even using VBA.

In my own time, I've visited manufacturing plants where I've seen customers send the factory a spreadsheet containing nothing but a VBA project to exercise a (hardware) test jig for quality control.

This just reminded me that when I was young, I couldn't afford VB5/6, so I would program in VBA in the office products.

Re: Applying programming language research ideas to transform spreadsheets

#65

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

Crazy stuff indeed. I saw a type of "click-once", auto-update deployment for vba code at an IBank in 2000 that worked wonderfully. Excel models built by trading desks and investment banking groups themselves are often constructed under a lot of time pressure and one thing about Excel is you can do it wrong and it may still work reasonably well. I have seen some specialty Excel software teams in these environments that refactored those models and made them remarkably robust and coherent. Much of it is just having the time to study alternatives: what part of the model should be on the sheet in formulas, what part in vba, what part in another language via an xll? What questions are the users going to ask and what calculations do they need to be able to see and understand? Where does the flexibility need to be? If a user moves a sheet to another workbook, will the button on it still work? How do you deploy vba code so that if you fix a bug all the models that use that vba code, and all their 'save as' descendants, run the fixed code.

There are clever ways to answer these questions but if you condescend to Excel as a development platform, and believe you can't build anything great with it, you may never brainstorm enough to uncover them.

Re: Applying programming language research ideas to transform spreadsheets

#66
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).

An acquaintance of mine was working on this really cool spreadsheets startup that mashes up R, Python's SciStack, and Excel into a web-based tool. Definitely worth checking out: https://www.alphasheets.com/

Re: Applying programming language research ideas to transform spreadsheets

#67
post #54

Earlier quoted context omitted.

One possibility is this - the people who mess with Excel VBA are generally very smart folk who just never went too techy, but then got really good at Excel and just learned vba as the next logical step. That means the code might not be kosher but it will be thoughtfully written and encompassing all the practical use cases. Contrast that with a 20something can grad who while competent isn't as smart as that non tech g…

I challenge you to make changes to a spreadsheet or VBA program that isn't using modern programming methods like unit testing and version control. They would turn into a huge mess unless the coder is very diligent and understand every part. CS 'indoctrination' is not a failure of education. Surgeons have been 'indoctrinated' to know pre-op procedures.

CS indoctrination is most definitely not a failure of education. Mediocre kids thinking they are writing good code because they've written unit tests is.

EDIT: Let me explain my thinking a bit more - we can try to categorize software development into two categories:

1. People write messy, unorganized code that is often in the head of just one or a few folks, who are smart but unorganized and often without formal CS training. The code often has almost no tests and doesn't follow any of the standard best practices of software engineering. The code is often impossible to pass down to new people, often ending up forcing the new people to redo a large fraction of the work.

2. People write clean, modular, testable code with good unit and integration tests, a robust build framework, etc. The code is written in a manner thats super easily transferable, most devs don't even have to understand the entire codebase to start meaningfully contributing.

Obviously, the second category is the preferred category. A good SDE with a CS bg should follow (and often do follow) the second method. However, category 2 could, at least from my experience, be split into two sub-categories:

2A. The framework for both the code and the dev ecosystem was laid down by (often just one) really good engineers who think through what the problem really is and make sure that the fundamental structure and architecture of the codebase works towards solving that real world problem. This kind of code is absolute pleasure to work with and extend.

2B. The framework and the majority of the code are written by average engineers; often the first few eng hires in the company put the groundwork and make poor design choices and the engineering team that follows never wants to change anything fundamental because that's "tech debt" which the company can never afford to take a step back and look at. The average engineers have a good heart, but often their test cases never test real-world edge cases, they often don't even remember the architecture of the code they themselves wrote a few months back, and the code breaks all the time. Furthermore, the engineers would generally balk at adding any new feature because the codebase is fundamentally evolved into something that just cannot be extended without significant rework, and often they cant even see how they can rework it to add the required feature. In the end, good SDE practices and testing doesn't do shit if the person who wrote it didn't think hard enough.

Here again, 2A is the preferred method of doing dev, but unfortunately, the thoughtful smart SDEs aren't that many, and would often be found in a well-paid job in a big company. Most regular devs can't step up to that level and the end result is 2B happens.

Now the question is, which is the better of the two evils, if they are the only choices? 1 or 2B? I'd choose 1. My experience has been that while the scrappy code is unmaintenable by anyone new, at the least the guys who wrote it (assuming you can keep them long enough) will at least own up to it and make sure it keeps running, and they can at least try (and practically, generally succeed) to ship a new feature as opposed to the 2B case where often the categorical answer would be no.

Re: Applying programming language research ideas to transform spreadsheets

#68
post #48
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).

Hi — that’s what we’re working on! Retool ( https://tryretool.com ) is similar to Excel, except the cells are themselves React components. And you can refer to other components inside the props for each component. You can pull in data either via SQL, APIs, or any other data source we support. Everything inside Retool is also JavaScript, so it’s pretty hackable. If you’ve got any feedback, please let me know! I’m davi…

I read the domain name as Tyre Tool.

Re: Applying programming language research ideas to transform spreadsheets

#69
post #54

Earlier quoted context omitted.

I challenge you to make changes to a spreadsheet or VBA program that isn't using modern programming methods like unit testing and version control. They would turn into a huge mess unless the coder is very diligent and understand every part. CS 'indoctrination' is not a failure of education. Surgeons have been 'indoctrinated' to know pre-op procedures.

CS indoctrination is most definitely not a failure of education. Mediocre kids thinking they are writing good code because they've written unit tests is. EDIT: Let me explain my thinking a bit more - we can try to categorize software development into two categories: 1. People write messy, unorganized code that is often in the head of just one or a few folks, who are smart but unorganized and often without formal CS t…

http://steve-yegge.blogspot.com/2008/02/portrait-of-n00b.htm... This point reminds me of "Portait of a Noob". For people who understand what the codebase is doing, it's more effective to have as much code on screen as possible. For "noobs", since you don't know what the code does, less code on screen is better. Additionally, these 'noobs' like more meta-program stuff like type declarations (or unit tests) which don't actually contribute to the program itself, but provide a safety barrier to prevent things from going wrong. (Whereas, if you know what the code is doing and it goes wrong, you can just fix it).

It's fair to say "a program not covered by unit tests can still be good enough to get the job done" (& to suggest that this is under-appreciated), but not having sufficient test coverage significantly raises the barrier to entry for those not familiar with the code ("noobs") from contributing.

(EDIT: I wrote my comment before parent's edit)

Post reply on HN