SeeminglyScience's Avatar

SeeminglyScience

@seeminglyscience.com

Software Engineer for PowerShell at Microsoft

210
Followers
43
Following
8
Posts
06.08.2023
Joined
Posts Following

Latest posts by SeeminglyScience @seeminglyscience.com

Preview
Release v2.4.0 ยท SeeminglyScience/ClassExplorer 2.4.0 - 2025-12-22 Invoke-Member (aka ivm) (#55) Quality of life command that makes interactive invocation of reflection info easier. Tracks source instance No need to save instances to an intermed...

v2.4.0 of #PowerShell module ClassExplorer is released! New commands Invoke-Member and Get-AssemblyLoadContext

github.com/SeeminglySci...

22.12.2025 23:13 ๐Ÿ‘ 10 ๐Ÿ” 7 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Think he just meant he'd give me credit for embarrassing code. Jokes on him though, I'm perfectly capable of embarrassing myself ๐Ÿ™ƒ

25.09.2025 15:44 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
An image showing two ways to create script blocks in PowerShell. One is defined with curly braces and the other is created from a string.

An image showing two ways to create script blocks in PowerShell. One is defined with curly braces and the other is created from a string.

Do you know what bound and unbound script blocks are in PowerShell?

I did not know but they are sometimes talked about in GitHub issues or in the community.

If you are interested, check out my blog post from the past:
mdgrs.hashnode.dev/scriptblock-...

29.04.2025 13:11 ๐Ÿ‘ 15 ๐Ÿ” 6 ๐Ÿ’ฌ 3 ๐Ÿ“Œ 2

Use `Span<>`. Not in the cards though (outside of implicit conversion for method arguments)

22.04.2025 05:00 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I'm definitely not suggesting the proliferation of the style choice, but I would also strongly recommend against someone removing said aliases in their profile.

15.01.2025 05:27 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

So I mention it only because it is much harder to completely write off when a decent chunk of folks do it regardless of what any one individual thinks. You can use github code search to gauge usage of each

path:*.ps1 /\|\s*where [{a-zA-Z\-]/
path:*.ps1 /\|\s*where-object [{a-zA-Z\-]/

15.01.2025 05:24 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 3 ๐Ÿ“Œ 0

While I personally agree, `where` and `foreach` specifically are not as unanimous in the community. There's a not insignificant group of folks who believe they should be treated more like keywords, and using the full command name is less readable.

(Again, not me, just saying it's not as clear cut)

15.01.2025 02:43 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

ehhhh I don't know how much I endorse IDispatch, but IUnknown is neat

14.01.2025 18:04 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

One of these days you will see the glory of vtables. When you do, you'll finally feel complete and know true serenity. Through vtables, all things are possible (or maybe just virtual dispatch)

14.01.2025 16:25 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0
Preview
January 16th 2025 Community Call ยท PowerShell PowerShell ยท Discussion #24768 Agenda AI Shell Preview @StevenBucher98

The #PowerShell and #openSSH community call is this Thursday 9:30am PST! Add any topics you'd liked covered in this discussion github.com/PowerShell/P...

13.01.2025 21:50 ๐Ÿ‘ 10 ๐Ÿ” 9 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

If your #PowerShell module loads dlls that are widely used by other modules, it's a good practice to implement ALC (Assembly Load Context) so that the right version of dlls are always loaded.

Here is how I learned about PowerShell ALC:

13.01.2025 07:22 ๐Ÿ‘ 12 ๐Ÿ” 4 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0