66 points · by bubblehack3r · 2y ago · 69 comments
It seems that VBA will continue to exist as the programming front end for MS Office, which is unfortunate. They had announced Python support for Excel a while back and I wish it was better promoted as a viable VBA replacement.
I'd strongly recommend people avoid Python in Excel, it is a Trojan Horse into forcing you to subscribe to access your own spreadsheets.
And now they’re full circle back to mandating the timeshare computing model even though the local CPU has incredible performance.
Maybe they should rename to Centralsoft.
They are trying to push excelscript aka typescript aka office scripts but uptake has been very slow.
They already recommend that new projects use their JS-based Office Scripts instead.
Idiomatic PowerShell embraces the pipeline, though. The number of scripts I've seen in the wood which were haphazardly ported from VBScript or C# showed, however, that people don't care about idiomatic.
PowerShell is cross-platform and works und Ljnux and MacOS as well.
And it's extremely good on itself already, because everything are objects, instead of just strings (bash, etc.). And because it's .NET you can seamlessly write anything you like including kernel calls, etc. without ever needing something like a 3rd party package like you would with e.g., Python.
Disclaimer: work for MS, not on PowerShell or WSL.
1. Typical WSL2 distros require far more disk space.
2. RAM used by WSL2 may not be immediately freed when your script exits.
3. WSL2 distros don't auto-update, so telling someone to install, e.g., Ubuntu via the Microsoft Store is insufficient to ensure a well-maintained WSL2 instance.
4. WSL2 requires enabling Windows hypervisor support, which can be difficult (KVM) or impossible (non-bare metal EC2 instances) in virtualized Windows instances.
While (1) is probably not a big deal and (2) and (3) have reasonable workarounds, (4), where relevant, tends to be a showstopper.
If you write bash to execute on WSL2, you’re just orchestrating the Linux VM (that runs on Hyper-V and is cleverly integrated into Windows and makes you feel like you have a native bash shell). If you want to automate Windows using bash, you need some runtime that translate all Linux-like calls to the Windows COM interface.
You mean like AppleScript?
But the existing implementation of Python means that it's not even close to a viable replacement lmao
The language is very quirky. Simple stuff like using variables is not as intuitive as it should be.
Another issue is encapsulation of logic, it is not straightforward at all. This is my second big issue.
Trying to temporarily disable script policies to run a script is not straightforward either.
If you like to work with real objects, use PowerShell...
Powershell is a mature offering that uses standardized (albeit verbose) naming to allow you to infer what a command should be called Verb-Noun (Get/Set/Start/Stop/etc)-(Process/Service/File/etc).
People are welcome to critique Powershell but more often than not they don't state what the problem actually is.
It's "This gets extra awkward in 3 years, and dissappears some time after that", not "This disappears in 3 months".
This reads mildly accusatory and got a chuckle out of me.
I'm surprised it took them this long!
Ah, that would be Internet Explorer.
I raised the issue that we have about 14 years left of ASP+VBScript literally being able to execute properly and calculate dates (sans any large date additions remaining). Guess it'll be sooner than that based on this post but 14 years is definitely the upper bound if your VBScript code even touches dates.
(Which have been working fine all this time, BTW.)
These pages are actually jscript (a variant of javascript), but we probably need to understand this to mean that’s going away as well.
If they're only killing VBscript and not the wscript.exe/cscript.exe scripting host, then Windows probably will still run the jscript variation of a script.
wscript and cscript since XP days and especially 7 have pretty much always been capable of running either pure ES3 or ES5. I think now we're just going to lose the VB style com objects.
But I really don't think we can count on all the related .dlls/COM objects to keep getting support after what is probably their main interface is killed off.
It just doesn't make sense to kill off just vbscript and not most/all of the other stuff that went along with it. I really doubt it's mainly about the language... I think it's about all that script-host/classic asp/COM stuff.
Edit: It's been since at least 2018?