July 2018
Beginner
552 pages
13h 18m
English
You should always try to follow common naming conventions, to make longer code easier to understand. By using distinct capitalization for parameters and variables, you can immediately see whether a variable used in a longer piece of code is a parameter, or whether it has been declared somewhere in your code. The following table explains the different capitalization types that are commonly used in PowerShell:
|
CamelCase |
Function parameters, public properties of a PowerShell class, cmdlet nouns |
|
pascalCase |
Variables declared in code, private properties of a PowerShell class |
|
lowercase |
PowerShell operators (-in, -like), language keywords (for, foreach) |
|
UPPERCASE |
Comment-based help parameters (.SYNOPSIS ... |
Read now
Unlock full access