-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
docs/document/Articles/docs/What to Know when Learning a New Language.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# What to Know when Learning a New Language | ||
|
||
## File Types and Configuration Files | ||
|
||
A language might use different extensions to identify the usage of the source. | ||
For example, powershell uses `.ps1` to identify a script and `.psm1` to identify a module file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# Overview | ||
|
||
- Integrated with `.NET` | ||
Reuse almost any type in `.NET`. | ||
- Reuse almost any type in `.NET`. | ||
- Dynamic typing | ||
Powershell adds extra attribute and properties on dotnet types to enhance experience. | ||
- Powershell adds extra attribute and properties on dotnet types to enhance experience. | ||
- Case insensitive | ||
All language syntax, pattern syntax and even strings are case-insensitive. | ||
(There's exception for file system on non-Windows platform) | ||
- All language syntax, pattern syntax and even strings are case-insensitive. (There's exception for file system on non-Windows platform) | ||
- Everything is object, more than plain text in shell. | ||
Powershell formats the object value as a table if the object is not a primitive type. | ||
For primitive type, `Tostring()` will be used instead. | ||
- Powershell formats the object value as a table if the object is not a primitive type. For primitive types, `Tostring()` will be used instead. | ||
- Always handle both array and singular object. | ||
A powershell cmdlet always accepts an array or an single object as input parameter. | ||
And returns the result as an array or an object too. | ||
- A powershell cmdlet always accepts an array or an single object as input parameter. And returns the result as an array or an object too. |