Behind the PowerShell Pipeline logo

Behind the PowerShell Pipeline

Subscribe
Archives
March 7, 2024

Toolmaking Toolmaking

At first glance, you might think I made a mistake with the title of today's article. But I didn't. I want to continue sharing my process in building an archive searching or summary solution for this newsletter. I expect that when I am finished I will have a set of PowerShell scripts or functions that I can use to generate the archive summary. However, I am finding that I need tools to help me build my tools. This is not that unusual. A carpenter needs a hammer to build a house. A developer needs a text editor to write code. Someone has to create those tools. Typically, a carpenter doesn't make their own hammer. But PowerShell professionals can certainly create the tools they need to make their tools. I thought I'd share my toolmaking toolmaking experiences with this project. ## Email Objects In the last several articles, I've shared code that I'm using to get published email newsletters using the Buttondown API. I've been saving them to an XML file using `Export-Clixml` so that I don't have to keep hitting the API. I can load the XML file and work with the data. Today, I'm going to import that data and save it in a generic list.

$entries = [System.Collections.Generic.List[object]]::new()

Import-Clixml C:\scripts\behind-archive-entries.xml | Sort-Object -Property Published -Descending | Foreach-Object { $entries.Add($_) }
A list is easier to manipulate than a static array. You'll see why shortly.
Get a premium subscription for full article and archive access

At first glance, you might think I made a mistake with the title of today's article. But I didn't. I want to continue sharing my process in building an archive searching or summary solution for this newsletter. I expect that when I am finished I will have a set of PowerShell scripts or functions that I can use to generate the archive summary. However, I am finding that I need tools to help me build my tools.

This is not that unusual. A carpenter needs a hammer to build a house. A developer needs a text editor to write code. Someone has to create those tools. Typically, a carpenter doesn't make their own hammer. But PowerShell professionals can certainly create the tools they need to make their tools.

I thought I'd share my toolmaking toolmaking experiences with this project.

Want to read the full issue?
GitHub Bluesky LinkedIn About Jeff
This email brought to you by Buttondown, the easiest way to start and grow your newsletter.