The Top 10 Considerations When Writing PowerShell Advanced Functions

preview_player
Показать описание
There are lots of things to consider when writing an advanced function in PowerShell depending on what the function will be designed to accomplish, what operating system and PowerShell versions it will be written for, and who will be using it. During this session, PowerShell MVP Mike F Robbins will walk you through the top 10 items that he takes into consideration along with his thought process when creating advanced functions in PowerShell. We’ll briefly discuss comment based help, parameters, parameter validation, pipeline input, and error handling. This will NOT be a deep dive into any one of these topics as the focus of this session will be on writing advanced functions to maximize code reusability by minimizing static values. Prior experience with PowerShell is recommended
Рекомендации по теме
Комментарии
Автор

01:11 - Readability
03:23 - Naming
07:20 - Parameters
10:45 - CmdletBinding
12:45 - Parameter Validation
21:00 - Verbose Output
23:20 - Pipeline Input
29:18 - Error Handling
32:45 - Comment Based Help
36:50 - SupportShouldProcess

dusdnd