Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev
powershell·PowershellbyGreg Tate

Who are some users that write really awesome PowerShell code?

I've been writing PowerShell code for almost 10 years now, and I love it when I come across someone who uses interesting techniques and patterns that I haven't seen before.

Do any of you have a list of users in the community from which you've taken inspiration in your own code? Who are they? I'd like to follow them :-)

View original on programming.dev
17

6 replies

Nice, thank you! Just what I was looking for. This guy has an incredible GitHub page.

3

I love how James documents his code. He tells a story with his comments:

        #region Create Color Scheme Object
        $newScheme =
            if ($iTermThemeExists)
            {
                # If the theme exists, let them customize it.
                foreach ($k in $PSBoundParameters.Keys) {
                                                    # Any supplied parameter
                    if ($k -ne 'Name' -and          # except name
                        $iTermThemeExists.$k        # that exists in the theme
                    ) {
                        $iTermThemeExists.$k =      # will be overwritten
                            $PSBoundParameters[$k]  # with the supplied parameter.
                    }
                }
                $iTermThemeExists
2

You reached the end

Who are some users that write really awesome PowerShell code? | Spyke