this post was submitted on 19 Jun 2023
17 points (100.0% liked)

Powershell

201 readers
1 users here now

PowerShell (POSH) is a a task automation command-line shell and scripting language created by Microsoft. It became part of the FOSS community in 2016 and is now available across Windows, Linux, and macOS

Resources:


Rules:

Self-promotion rules:


founded 1 year ago
MODERATORS
 

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 :-)

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 year ago (1 children)

Przemyslaw Klys (Evotec) does some great work.

[–] [email protected] 3 points 1 year ago

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

[–] [email protected] 4 points 1 year ago
[–] [email protected] 2 points 1 year ago (1 children)

James Brundage's code never fails to impress me. He writes a lot of code that helps you write better PowerShell. Which in turn has a bunch of slick techniques I've never seen elsewhere. https://github.com/StartAutomating

[–] [email protected] 2 points 1 year ago

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
[–] [email protected] 1 points 1 year ago