From e7ed2e1c9bb11ff1500d1cb31e413c5b956abb4d Mon Sep 17 00:00:00 2001 From: sharpchen Date: Tue, 26 Nov 2024 00:19:06 +0800 Subject: [PATCH] main --- .../What to Know when Learning a New Language.md | 6 ++++++ docs/document/Powershell/docs/1.Overview.md | 13 +++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 docs/document/Articles/docs/What to Know when Learning a New Language.md diff --git a/docs/document/Articles/docs/What to Know when Learning a New Language.md b/docs/document/Articles/docs/What to Know when Learning a New Language.md new file mode 100644 index 00000000..c542beb6 --- /dev/null +++ b/docs/document/Articles/docs/What to Know when Learning a New Language.md @@ -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. diff --git a/docs/document/Powershell/docs/1.Overview.md b/docs/document/Powershell/docs/1.Overview.md index 223d3a3c..ca1a8346 100644 --- a/docs/document/Powershell/docs/1.Overview.md +++ b/docs/document/Powershell/docs/1.Overview.md @@ -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.