PoshCode / PowerShellPracticeAndStyle

The Unofficial PowerShell Best Practices and Style Guide
https://poshcode.gitbooks.io/powershell-practice-and-style
Other
2.24k stars 289 forks source link

Best Practices | 2024 Change suggestions #188

Open asktechsupport opened 3 months ago

asktechsupport commented 3 months ago

Full Change Log here

Building-Reusable-Tools.md

General ideas

Specific tool / rule changes

asktechsupport commented 3 months ago

Building-Reusable-Tools.md

General ideas

Specific tool / rule changes

TOOL-01 Decide whether you're coding a 'tool' or a 'controller' script

TOOL-02 Make your code modular

TOOL-03 Make tools as re-usable as possible

TOOL-04 Use PowerShell standard cmdlet naming

TOOL-05 Use PowerShell standard parameter naming

TOOL-06 Tools should output raw data

TOOL-07 Controllers should typically output formatted data

WAST-01 Don't re-invent the wheel

WAST-02 Report bugs to Microsoft PURE-01 Use native PowerShell where possible

PURE-03 Document why you haven't used PowerShell

PURE-04 Wrap other tools in an advanced function or cmdlet