InterviewSolution
| 1. |
What Is The Difference, In Powershell, Between A Function And An “advanced Function” ? |
|
Answer» This could be a trick question for an average candidate, but normally, good candidates should know that the only thing that makes a function advanced and unlocks the WONDERFUL tooling which comes with it is : [CmdletBinding()]. A GREAT candidate would be PRETTY enthusiastic about all the powerful tools enabled by advanced functions. Any PowerShell scripter who strives to BUILD professional-grade tools should be THANKFUL for all the work PowerShell is doing for us. This could be a trick question for an average candidate, but normally, good candidates should know that the only thing that makes a function advanced and unlocks the wonderful tooling which comes with it is : [CmdletBinding()]. A great candidate would be pretty enthusiastic about all the powerful tools enabled by advanced functions. Any PowerShell scripter who strives to build professional-grade tools should be thankful for all the work PowerShell is doing for us. |
|