Developing with PowerShell Classes: Here be Dragons by Brandon Olin

Channel:
Subscribers:
42,100
Published on ● Video Link: https://www.youtube.com/watch?v=tUX6362vu9Q



Duration: 44:40
118 views
3


Developing with PowerShell Classes: Here be Dragons by Brandon Olin

Classes are a powerful capability in PowerShell and are meant to provide a more familiar developing experience to more traditional programmers. You will not experience calm skies and quiet seas though. This talk will show you where the dragons lurk and help you navigate the stormy seas.
Classes were introduced in PowerShell 5 and mainly to aid in writing DSC resources but can be used with non-DSC modules as well. This talk will go over some of the hidden gotchas when developing with classes including:

* Importing issues

* Verbose / Debug oddities

* Sharing classes between modules

I've developed and released a large PowerShell project (PoshBot) that primarily consists of PowerShell classes. While I could have written the module using traditional functions and cmdlets, I wanted an excuse to try classes out on a new project. Using classes was not a smooth experience and I want to share some of my challenges.




Other Videos By Confreaks


2022-01-13PlatyPS: PowerShell Help meets Markdown by Sergei Vorobev
2022-01-13PowerShell Team: Inventory Your Server Environment and Detect Change at Scale by Jenny Hunter
2022-01-13The Build Release Pipeline Model for Mere Mortals by Ryan Coates
2022-01-13PowerShell Team: Orchestrating Tasks across Hybrid Environments using ... by Eamon O'Reilly
2022-01-13Why you should embrace OpenSource. Jenkins-PowerShell-Containers by Gabriel Rojas
2022-01-13PowerShell Team: Managing Server State using Configuration as Code by Michael Greene
2022-01-13Defending against PowerShell attacks - in theory, and in practice by Lee holmes
2022-01-13OpenSSH Internals for PowerShell Pros by Anthony Nocentino
2022-01-13Writing Award Winning PowerShell Functions and Script Modules by Mike Robbins
2022-01-13Time to Use Regular Expressions More, Um, Regularly by Mark Minasi
2022-01-13Developing with PowerShell Classes: Here be Dragons by Brandon Olin
2022-01-13Building PowerShell Applications that Operate on a Planetary Scale by Justin Sider
2022-01-13Become a PowerShell Debugging Ninja by Kirk Munro
2022-01-13DSC vs. "The Others" - A Song of Configuration Management by Missy Januszko
2022-01-13Connecting the Dots with PowerShell by Warren Frame
2022-01-13Building cmdlets for a REST API with PowerShell classes, Azure-based ... by Jeremy Murrah
2022-01-13Deploy Infrastructure As A Service with Azure Resource Manager Templates by Will Anderson
2022-01-13PowerShell Team: PowerShell Core by Joey Aiello
2022-01-13One MOF to rule them all, and in the Azure bind them by Jacob Morrison
2022-01-13Team Leadership Session by Michael Greene & Joey Aiello
2022-01-13A Historical Architectural Tour of PowerShell by Bruce Payette