Building Better PowerShell Code Applying Proven Practices One Tip at a Time

Learn to write better PowerShell code via short, example-driven tips. This book covers tips to make your PowerShell scripts faster and easier to read all while following proven best practices. Written by a six-time Microsoft MVP and one of the first Microsoft PowerShell MVPs with over a decade of Po...

Full description

Bibliographic Details
Main Author: Bertram, Adam
Format: eBook
Language:English
Published: Berkeley, CA Apress 2020, 2020
Edition:1st ed. 2020
Subjects:
Online Access:
Collection: Springer eBooks 2005- - Collection details see MPG.ReNa
LEADER 03184nmm a2200265 u 4500
001 EB001904438
003 EBX01000000000000001067344
005 00000000000000.0
007 cr|||||||||||||||||||||
008 201103 ||| eng
020 |a 9781484263884 
100 1 |a Bertram, Adam 
245 0 0 |a Building Better PowerShell Code  |h Elektronische Ressource  |b Applying Proven Practices One Tip at a Time  |c by Adam Bertram 
250 |a 1st ed. 2020 
260 |a Berkeley, CA  |b Apress  |c 2020, 2020 
300 |a XVIII, 146 p. 24 illus  |b online resource 
505 0 |a Chapter 1: Do The Basics -- Chapter 2: Don’t Reinvent the Wheel -- Chapter 3: Use Visual Studio Code -- Chapter 4: Plan Before you Code -- Chapter 5: Create Building Blocks with Functions -- Chapter 6: Parameterize Everything -- Chapter 7: Log Script Activity -- Chapter 8: Build with Manageability in Mind -- Chapter 9: Be Specific -- Chapter 10: Write for the Next Person -- Chapter 11: Handle Errors Gracefully -- Chapter 12: Don’t Skimp on Security -- Chapter 13: Stick to PowerShell -- Chapter 14: Build Tools -- Chapter 15: Return Standardized, Informative Output -- Chapter 16: Build Scripts for Speed -- Chapter 17: Use Version Control -- Chapter 18: Build Tests. -Chapter 19: Miscellaneous Tips -- Chapter 20: Summary 
653 |a Microsoft software 
653 |a Microsoft and .NET. 
653 |a Microsoft .NET Framework 
041 0 7 |a eng  |2 ISO 639-2 
989 |b Springer  |a Springer eBooks 2005- 
856 4 0 |u https://doi.org/10.1007/978-1-4842-6388-4?nosfx=y  |x Verlag  |3 Volltext 
082 0 |a 004.165 
520 |a Learn to write better PowerShell code via short, example-driven tips. This book covers tips to make your PowerShell scripts faster and easier to read all while following proven best practices. Written by a six-time Microsoft MVP and one of the first Microsoft PowerShell MVPs with over a decade of PowerShell experience, Building Better PowerShell Code gives you easily digestible tips you can begin using immediately. The book starts with an overview of some of the most important tips the author can muster which segues into a deeper dive with dozens of examples throughout the book. It takes you through tips such as using community modules, writing better comments, thinking of PowerShell functions as building blocks, and more. You will also see how to use parameters the right way and how to create simple logging code to easily record script activity. You will learn not only how to write better code, but also how to implement some mindset tricks, such as being explicit and specific with code and how to write code that reads well. You’ll get into error handling and also how to make your scripts more secure. Finally, you’ll examine the concept of building PowerShell tools and how to build scripts for speed. Other tips and best practices include: Building Pester tests Improving performance through parallel processing Writing cross-platform scripts Using filtering properly After reading this book and applying these tips, you will have an expert coding mindset and be able to build PowerShell code that’s efficient, readable, and compliant with many best practices.