Building Better Powershell Code: Applying Proven Practices One Tip at a Time
暫譯: 打造更佳的 PowerShell 程式碼:逐步應用經驗法則的實用技巧
Bertram, Adam
- 出版商: Apress
- 出版日期: 2020-10-20
- 售價: $1,575
- 貴賓價: 9.5 折 $1,496
- 語言: 英文
- 頁數: 146
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1484263871
- ISBN-13: 9781484263877
-
相關分類:
Powershell
立即出貨 (庫存=1)
買這商品的人也買了...
-
$1,590$1,511 -
$1,715Introduction to Algorithms, 3/e (Hardcover)
-
$199ZigBee 技術開發 — Z-Stack 協議棧原理及應用
-
$1,617Deep Learning (Hardcover)
-
$520$411 -
$2,010$1,910 -
$403OpenStack 高可用集群 (下冊):部署與運維
-
$1,248Pandas for Everyone: Python Data Analysis (Addison-Wesley Data & Analytics Series)
-
$480$379 -
$650$553 -
$356Python 絕技 : 運用 Python 成為頂級數據工程師
-
$403Python 數據分析 : 基於 Plotly 的動態可視化繪圖
-
$354$336 -
$1,960$1,862 -
$540$459 -
$1,050$998 -
$490$441 -
$594$564 -
$454深度學習圖像識別技術:基於 TensorFlow Object Detection API 和 OpenVINO™ 工具套件
-
$662Google 系統架構解密:構建安全可靠的系統
相關主題
商品描述
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.
What You Will Learn
- Implement error handling
- Create a logging function
- Use regular expressions to search strings Implement parallel processing
Who This Book Is For
PowerShell script developers.商品描述(中文翻譯)
學習透過簡短的範例驅動提示來撰寫更好的 PowerShell 代碼。本書涵蓋了使您的 PowerShell 腳本更快且更易於閱讀的提示,同時遵循經過驗證的最佳實踐。這本書由六次獲得 Microsoft MVP 的作者撰寫,他是第一批 Microsoft PowerShell MVP 之一,擁有超過十年的 PowerShell 經驗,《建立更好的 PowerShell 代碼》提供了易於消化的提示,您可以立即開始使用。
本書首先概述了作者能夠提供的一些最重要的提示,然後深入探討書中的數十個範例。它將帶您了解使用社區模組、撰寫更好的註解、將 PowerShell 函數視為構建塊等提示。您還將看到如何正確使用參數以及如何創建簡單的日誌代碼以輕鬆記錄腳本活動。
您將學習到的不僅是如何撰寫更好的代碼,還有如何實施一些思維方式的技巧,例如在代碼中明確和具體,以及如何撰寫可讀性良好的代碼。您將深入了解錯誤處理以及如何使您的腳本更安全。最後,您將檢視構建 PowerShell 工具的概念以及如何為速度構建腳本。
其他提示和最佳實踐包括:
- 建立 Pester 測試
- 透過並行處理提高性能
- 撰寫跨平台腳本
- 正確使用過濾
在閱讀本書並應用這些提示後,您將擁有專家的編碼思維,能夠構建高效、可讀且符合多項最佳實踐的 PowerShell 代碼。
您將學到的內容:
- 實施錯誤處理
- 創建日誌功能
- 使用正則表達式搜索字串
- 實施並行處理
本書適合對象:
PowerShell 腳本開發人員。
作者簡介
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.
作者簡介(中文翻譯)
亞當·伯特拉姆(Adam Bertram)是一位擁有超過20年經驗的IT專業人士,也是經驗豐富的線上商業專家。他是一名顧問、微軟MVP、部落客、培訓師、出版作者以及多家科技公司的內容行銷專家。