We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Developing with PowerShell Classes: Here be Dragons

00:00

Formal Metadata

Title
Developing with PowerShell Classes: Here be Dragons
Title of Series
Number of Parts
60
Author
License
CC Attribution - ShareAlike 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal and non-commercial purpose as long as the work is attributed to the author in the manner specified by the author or licensor and the work or content is shared also in adapted form only under the conditions of this
Identifiers
Publisher
Release Date
Language
Producer
Production Year2018

Content Metadata

Subject Area
Genre
Abstract
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.
CodeSlide ruleSoftware repositoryMultiplication signInformationLink (knot theory)DemosceneBlock (periodic table)TwitterBitComputer animationLecture/Conference
String (computer science)Range (statistics)Data modelMaxima and minimaBitCategory of beingCodeDefault (computer science)Constructor (object-oriented programming)
Inheritance (object-oriented programming)Flow separationEncapsulation (object-oriented programming)Information overloadSystem administratorTerm (mathematics)CodeCartesian coordinate systemOrder (biology)Instance (computer science)Set (mathematics)Software developerDifferent (Kate Ryan album)Demo (music)Flow separationScripting languageSlide ruleComputer animationLecture/Conference
MIDIHill differential equationConvex hullLink (knot theory)ThumbnailInterior (topology)Atomic nucleusMUDVacuumComputer clusterThomas KuhnDivision (mathematics)Maxima and minimaExecution unitoutputChemical equationLemma (mathematics)Inclusion mapEmpennageDenial-of-service attackRoundingProgrammable read-only memoryInvariant (mathematics)Computer-generated imageryInformationModule (mathematics)Point (geometry)File formatNormal (geometry)Object (grammar)Functional (mathematics)Instance (computer science)Flow separationRaw image formatComputer fileCore dumpSource codeCodeType theoryLine (geometry)Error messageModule (mathematics)Multiplication signComputational complexity theoryComputer animation
Menu (computing)Variable (mathematics)Information and communications technologyLemma (mathematics)Task (computing)Modulo (jargon)EmailLambda calculusInclusion mapExecution unitMultiplicationExecutive information systemChi-squared distributionFunction (mathematics)SummierbarkeitStructural loadModule (mathematics)Convex hullWechselseitige InformationPhysical lawUltraviolet photoelectron spectroscopyInformation managementComputer clusterVacuumComputer fileGamma functionLocal ringFloating pointRule of inferenceSurjective functionMusical ensembleNP-hardModule (mathematics)Order (biology)Virtual machineParsingCategory of beingException handlingMultiplication signSource codeComputer fileSet (mathematics)Software developerComplete metric spaceCore dumpInstance (computer science)ImplementationModule (mathematics)Line (geometry)C sharpScripting languageGraph (mathematics)Abstract syntax treePasswordInheritance (object-oriented programming)Computer animation
VacuumFunction (mathematics)ThumbnailCausalityMusical ensembleComputer wormChi-squared distributionConvex hullDenial-of-service attackNormed vector spaceFibonacci numberEmulationSummierbarkeitHand fanStructural loadModule (mathematics)Inclusion mapExecution unitCloud computingPhysical lawModule (mathematics)Revision controlMessage passingModule (mathematics)Data structureFreewareLatent heatCalculusFunction (mathematics)Functional (mathematics)Demo (music)Instance (computer science)Module (mathematics)Streaming mediaBuffer overflowError messageExpected valueCategory of beingStack (abstract data type)Table (information)CASE <Informatik>Hash functionSoftware bugRight angleDifferent (Kate Ryan album)Keyboard shortcutFood energyComputer animation
Module (mathematics)Compilation albumExecution unitMIDIKeilförmige AnordnungComputer clusterInclusion mapTask (computing)Convex hullGamma functionComputer fileMotion blurMaizeTotal S.A.Hand fanPhysical lawOvalSummierbarkeitConditional-access moduleMenu (computing)Cone penetration testDenial-of-service attackEmailAbstractionChainData typeDialectSimultaneous localization and mappingModule (mathematics)Computer fileMultiplication signOrder (biology)Run time (program lifecycle phase)Flow separationTerm (mathematics)Computer-assisted translationFunction (mathematics)Functional (mathematics)Type theoryAbstractionInstance (computer science)Constructor (object-oriented programming)Task (computing)Software frameworkCASE <Informatik>Binary fileRevision controlScripting language1 (number)Compilation albumException handlingSource codeBuildingSoftware maintenanceBitFormal languageGraph (mathematics)Line (geometry)Vector potentialOcean currentError messageRight angleModule (mathematics)CodeInheritance (object-oriented programming)Computer animation
Game theoryPower (physics)InfinityEmailMaxima and minimaConvex hullExecution unitIntrusion detection systemCategory of beingTwin primeSicComputer wormMathematicsComputer iconDuality (mathematics)Uniform resource nameEquals signRothe-VerfahrenWitt algebraDemo (music)Module (mathematics)Module (mathematics)Computer fileSource codeOrder (biology)Revision controlSoftware frameworkState of matterPasswordMilitary operationError messageMathematicsParameter (computer programming)Category of beingValidity (statistics)String (computer science)Electronic mailing listInstance (computer science)IntegerBitNormal (geometry)Regulärer Ausdruck <Textverarbeitung>Constructor (object-oriented programming)Link (knot theory)QuicksortProjective planeLengthFunctional (mathematics)Type theoryRight angleComputer animation
Coma BerenicesJSONXML
Transcript: English(auto-generated)