-
Recent Posts
- Scripting Guys Blog Posts on Using Visual Studio Code for PowerShell Development
- Preview of Module Build and Publish with Visual Studio Code and the PowerShell Extension
- Breakpoint Enhancements in the v0.5.0 PowerShell Extension for Visual Studio Code
- Creating a PowerShell Command that Process Paths using Visual Studio Code
- New Release of PowerShell Extension For Visual Studio Code
Recent Comments
Archives
- February 2017
- March 2016
- February 2016
- December 2015
- September 2015
- August 2015
- July 2015
- May 2015
- April 2015
- January 2015
- November 2014
- October 2014
- July 2014
- April 2014
- October 2013
- September 2013
- July 2013
- May 2013
- April 2013
- January 2013
- September 2012
- July 2012
- April 2012
- March 2012
- January 2012
- December 2011
- October 2011
- September 2011
- March 2011
- September 2010
- July 2010
- May 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- July 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- June 2007
- May 2007
- March 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- September 2005
- August 2005
- June 2005
- March 2005
- January 2005
- December 2004
Categories
- .NET
- .NETCore
- Agilent T&M Toolkit
- Agilent VEE
- Books
- Conference
- CSharp
- Effective PowerShell
- LINQ
- Microsoft
- Monad
- MSBuild
- Music
- PDC
- PowerShell
- PowerShell 2.0
- PowerShell 3.0
- PowerShell 4.0
- PowerShell 5.0
- PowerShellEditorServices
- PSCX
- PSScriptAnalyzer
- Software Architecture
- Software Development
- Uncategorized
- VSCode
- Windows 7
- WinRT
Meta
Monthly Archives: September 2007
Effective PowerShell Item 9: Regular Expressions – One of the Power Tools in PowerShell
Windows PowerShell is based on the .NET Framework. That is, it is built using the .NET Framework and it exposes the .NET Framework to the user. One very nice feature of the .NET Framework is the Regex class in the System.Text.RegularExpressions namespace. … Continue reading
Posted in Effective PowerShell
2 Comments
Effective PowerShell Item 8: Output Cardinality – Scalars, Collections and Empty Sets – Oh My!
In the last post Effective Powershell Item 7: Understanding "Output", we covered a lot about PowerShell output. However there is a bit more you need to understand to use PowerShell effectively. This post concerns the cardinality of PowerShell output. That … Continue reading
Posted in Effective PowerShell
9 Comments
Effective PowerShell Item 7: Understanding “Output”
In shells that you may have used in the past, everything that appears on the stdout and stderr streams is considered "the output". In these other shells you can typically redirect stdout to a file using the redirect operator ‘>’. And … Continue reading
Posted in Effective PowerShell
9 Comments
Effective PowerShell Item 6: Know What Objects Are Flowing Down the Pipe
To use Windows PowerShell pipes effectively, it really helps to know what objects are flowing down the pipe. Sometimes objects get transformed from one type to another. Without the ability to inspect what type is being used at each stage … Continue reading
Posted in Effective PowerShell
1 Comment
Interface Design: Pragmatism vs Dogmatism
Someone pointed out this blog post to me: http://kirillosenkov.blogspot.com/2007/08/choosing-interface-vs-abstract-class.html The following quote concerns me: "An interface should define at most one member." I cringe at hard-and-fast rules like this. I understand the author’s sentiment but I guess I would have … Continue reading
Posted in Software Development
2 Comments
Effective PowerShell Item 5: Use Set-PSDebug -Strict In Your Scripts – Religiously
Windows PowerShell is like most dynamic languages in that it allows you to use a variable without declaring its type and without having assigned to it. This is handy for interactive use, you can do stuff like this: PS C:\Temp> … Continue reading
Posted in Effective PowerShell
5 Comments
Effective PowerShell Item 4: Commenting Out Lines in a Script File
OK the last couple of items have been long. I promise a short one here. Windows PowerShell doesn’t provide multiline comments. Multiline comments come in handy when you need to comment out multiple lines in a script file. However there is a reasonable … Continue reading
Posted in Effective PowerShell
1 Comment
Effective PowerShell Item 3: Know Your Output Formatters
I have mentioned previously that Windows PowerShell serves up .NET objects for most everything. Get-ChildItem (alias Dir) outputs a sequence of System.IO.FileInfo and System.IO.DirectoryInfo objects output. Get-Date outputs a System.DateTime object. Get-Process outputs System.Diagnostics.Process objects and Get-Content outputs System.String objects (or arrays of them based on how … Continue reading
Posted in Effective PowerShell
Leave a comment
Effective PowerShell Item 2: Use the Objects Luke. Use the Objects!
Using Windows PowerShell requires a shift in your mental model for how command line shells deal with information. In most shells like CSH, Korn shell, BASH, etc you deal primarily with information in text form. For instance the output of ls or … Continue reading
Posted in Effective PowerShell
5 Comments
Effective PowerShell Item 1: The Four Cmdlets That are the Keys to Finding Your Way Around PowerShell
I have been a big fan of the Effective series of books over the years from Effective COM to Effective XML. Without trying to be too presumptuous, I thought I would capture some of the tidbits I’ve picked up over the … Continue reading
Posted in Effective PowerShell
2 Comments