Write-Done

What is this function? Why did I write this? What's it doing? The first part of the series where I dig old PowerShell files out of storage and ask the question: what was I thinking?

This is my first post. I'm leaving it intentionally minimal because I want this blog to be intentionally minimal. No unsplash feature photo or time wasted tweaking with the theme.

Since it's my first post I don't really have anything to write about, so I opened up the messy folder on my laptop full of scripts I made for some specific situation that's never come up since.

I think (hope) a lot of us who write scripts as part of a day job sometimes become singularly focused on making something that doesn't have much utility, will never be used again, and won't ever be seen by anyone else. A waste of time by literally any metric.

A good example of that is Write-Done, I don't remember making this, and when I opened the file for the first time in over a year I wasn't even sure what it did until I ran it.

If you're also wondering what it does, it writes a message and then gradually fills the terminal with dots until just shy of end of the line, then proudly remarks "Done!" in accomplished green text.

The progression of the dots as they move to fill the space between the text and the end of the terminal is oddly satisfying for sure, that feeling comes back to me when I run this.

But why did I even make this? I have zero memory of what this was a part of. It's like scaffolding left behind but no building.

Subscribe for more of this.