Details

Building Better PowerShell Code


Building Better PowerShell Code

Applying Proven Practices One Tip at a Time

von: Adam Bertram

56,99 €

Verlag: Apress
Format: PDF
Veröffentl.: 19.10.2020
ISBN/EAN: 9781484263884
Sprache: englisch

Dieses eBook enthält ein Wasserzeichen.

Beschreibungen

<p>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.&nbsp;</p>

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. &nbsp;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.&nbsp;<p></p>

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.&nbsp;<p></p>

<p>Other tips and best practices include:&nbsp;</p>

<ul> <li>Building Pester tests</li> <li>Improving performance through parallel processing </li> <li>Writing cross-platform scripts</li> <li>Using filtering properly&nbsp;</li></ul> <p>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.&nbsp;</p>

<p><b>What You Will Learn</b></p>

<ul> <li>Implement error handling</li> <li>Create a logging function</li> <li>Use regular expressions to search strings</li> Implement parallel processing </ul> <p><b>Who This Book Is For</b><br> <br> PowerShell script developers.</p><br><br>
<p>Chapter 1: Do The Basics.- Chapter 2: Don’t Reinvent the Wheel.- Chapter 3:&nbsp;Use Visual Studio Code.- Chapter 4:&nbsp;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:&nbsp;Use Version Control.- Chapter 18: Build Tests. -Chapter 19: Miscellaneous Tips.- Chapter 20: Summary.</p><p></p>
Adam Bertram is a 20+ year veteran of IT and an experienced online business professional. He’s a consultant, Microsoft MVP, blogger, trainer, published author and content marketer for multiple technology companies.
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.&nbsp;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.&nbsp;&nbsp;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.&nbsp;<p></p>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.&nbsp;<p></p>Other tips and best practices include:&nbsp;<p></p><ul><li>Building Pester tests</li><li>Improving performance through parallel processing</li><li>Writing cross-platform scripts</li><li>Using filtering properly&nbsp;</li></ul><p>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.&nbsp;</p>
Discusses building better PowerShell code using best practices Covers dozens of different tips and tricks to write better PowerShell code Written by a six-time MVP

Diese Produkte könnten Sie auch interessieren:

Quantifiers in Action
Quantifiers in Action
von: Antonio Badia
PDF ebook
96,29 €
Managing and Mining Uncertain Data
Managing and Mining Uncertain Data
von: Charu C. Aggarwal
PDF ebook
96,29 €