SeeminglyScience

517 posts

SeeminglyScience

SeeminglyScience

@SeeminglyScienc

Software Engineer for @PowerShell_Team

Katılım Ocak 2017
116 Takip Edilen665 Takipçiler
Sabitlenmiş Tweet
SeeminglyScience
SeeminglyScience@SeeminglyScienc·
Very excited to announce that I have joined the #PowerShell team at @Microsoft! Looking forward to spending even more time on PowerShell 🎉
English
36
11
426
0
Steve Lee
Steve Lee@Steve_MSFT·
@Slav636 @Alan_Florance @BoreanJordan @nohwnd @SeeminglyScienc We had a very long discussion about this during PSCore6. We considered different options but ultimately it was too big of a breaking change. If you use a List, += will work just fine. The problem is @() and variants create an array and used by many existing scripts
English
1
0
0
65
SeeminglyScience retweetledi
nohwnd
nohwnd@nohwnd·
Performance talks on #powershell will tell you to avoid += on arrays, because it copies the array to a new one every single time. But the reality is much worse. 🧵1/17
English
3
9
43
12.3K
SeeminglyScience retweetledi
Jordan Borean
Jordan Borean@BoreanJordan·
Just finalised what could be my largest contribution to #PowerShell .NET named arguments support github.com/PowerShell/Pow…. Big thanks to @SeeminglyScienc for all this help. This was a fun exercise in learning about the pwsh parser/ast, compiler, and binder all in one!
English
5
7
23
1.6K
SeeminglyScience retweetledi
Rick Claus 🦋 @RegularITguy.com
Because of the progression of his brain cancer, Sean had a minimal details. He's now had a friend significantly expand the details in the writeup of his family's story. I had no idea things had gotten this bad. 🙁 Please share for reach. Consider donating if you can.
Rick Claus 🦋 @RegularITguy.com@RegularITguy

A good friend and member of the #powershell Ecosystem has fallen on hard times. @PowerShellMan (Sean Kearney) has been out of action due to medical issues - now faced with loosing their HOUSE. PLEASE amplify - reach out and support if you can! gofund.me/34f78450

English
0
20
13
7.1K
SeeminglyScience
SeeminglyScience@SeeminglyScienc·
@awakecoding @Steve_MSFT Fair enough, I don't have any input on that side of things. Just to fully clarify, I'm only describing why I don't personally think it makes sense for us to create the equivalent of vscode-powershell for VS. (I get that that was a very small part of what you're talking about)
English
1
0
2
105
Marc-André Moreau
Marc-André Moreau@awakecoding·
@SeeminglyScienc @Steve_MSFT I'm double-checking facts before writing a blog post on how to do all the manual steps required to do local and remote debugging of PowerShell cmdlets in Visual Studio. I don't think it is the PowerShell's team job to improve this, but really the Visual Studio team
English
1
0
0
87
Marc-André Moreau
Marc-André Moreau@awakecoding·
What is the best way to develop, run and debug PowerShell scripts in Visual Studio? It doesn't seem to be a supported project type unless you install third-party extensions (marketplace.visualstudio.com/items?itemName…). Yes, I know about VSCode, but I'm really asking about Visual Studio here
English
3
0
7
3.1K
SeeminglyScience
SeeminglyScience@SeeminglyScienc·
@awakecoding @Steve_MSFT You're not wrong, and I do think we should do better at assisting the "all of a sudden writing binary cmdlets" crowd. That said, I'm not sure that would be sufficient justification for the level of effort involved (and for inevitably dismantling a community project)
English
1
0
0
52
Marc-André Moreau
Marc-André Moreau@awakecoding·
@SeeminglyScienc @Steve_MSFT There's one compelling business case to be made: for all those C# developers out there that barely know PowerShell and get asked to wrap .NET managed (and sometimes unmanaged!) code in PowerShell cmdlets, they're going to want to stick to Visual Studio.
English
2
0
0
90
SeeminglyScience
SeeminglyScience@SeeminglyScienc·
@awakecoding @Steve_MSFT Since there's an existing extension provided by the community, it doesn't make sense for us to put a worse version up just so there's something official. I'm sure we could find the budget to throw up a minimal implementation but not long-term support.
English
1
0
1
37
SeeminglyScience retweetledi
Jordan Borean
Jordan Borean@BoreanJordan·
Would anyone have any clue why calling CreateProcess with CREATE_NEW_CONSOLE would fail with 5 (Access Denied). I've been unable to replicate it myself but I know for sure that on a Server 2016/2019 host through WinRM it will fail with this flag but the same args work without it.
English
1
2
1
770
SeeminglyScience
SeeminglyScience@SeeminglyScienc·
@BoreanJordan @awakecoding @Steve_MSFT Yeah ConPTY is the only way afaik to capture everything *and* not cause behavioral changes. Depending on what features you need it's not exactly as easy as it sounds, definitely possible though
English
1
0
0
103
Jordan Borean
Jordan Borean@BoreanJordan·
@awakecoding @Steve_MSFT @SeeminglyScienc PowerShell by default doesn't redirect exe output unless you try to capture it or redirect it so they write directly to the console. Hence why a ConPTY is really the only sane solution here.
English
1
0
2
105
Marc-André Moreau
Marc-André Moreau@awakecoding·
How would you record ⏺️ and stream a #PowerShell interactive terminal? What are ways to capture the streams from a PowerShell terminal, and what kind of file format could it be exported to in order to allow replaying with proper timing information?
English
4
0
3
1.9K
SeeminglyScience retweetledi
Sydney Smith
Sydney Smith@sydneysmithreal·
We will be having a LIVE PUBLIC BUG BASH July 27th 9am-10am pdt (Seattle time) for PSResourceGet...more info and a Teams join link to follow🐛 🥳 (there will be async instructions provided afterwards for those who aren't able to join live)
English
2
13
17
7.4K