logo
logo
x
바코드검색
BOOKPRICE.co.kr
책, 도서 가격비교 사이트
바코드검색

인기 검색어

실시간 검색어

검색가능 서점

도서목록 제공

Building Better Powershell Code: Applying Proven Practices One Tip at a Time

Building Better Powershell Code: Applying Proven Practices One Tip at a Time (Paperback)

Adam Bertram (지은이)
Apress
82,150원

일반도서

검색중
서점 할인가 할인률 배송비 혜택/추가 실질최저가 구매하기
67,360원 -18% 0원
3,370원
63,990원 >
yes24 로딩중
교보문고 로딩중
notice_icon 검색 결과 내에 다른 책이 포함되어 있을 수 있습니다.

중고도서

검색중
서점 유형 등록개수 최저가 구매하기
로딩중

eBook

검색중
서점 정가 할인가 마일리지 실질최저가 구매하기
로딩중

책 이미지

Building Better Powershell Code: Applying Proven Practices One Tip at a Time
eBook 미리보기

책 정보

· 제목 : Building Better Powershell Code: Applying Proven Practices One Tip at a Time (Paperback) 
· 분류 : 외국도서 > 컴퓨터 > 프로그래밍 > 마이크로소프트 프로그래밍
· ISBN : 9781484263877
· 쪽수 : 146쪽
· 출판일 : 2020-10-20

목차

Introduction

Chapter 1. Do The Basics

Plan Before you Code

Don’t Reinvent the Wheel

Build Functions as Building Blocks

Build Re-usable Tools

Don’t Focus Purely on Performance

Build Pester tests

Implement Error handling

Build Manageable Code

Don’t Skimp on Security

Log Script Activity

Parameterize Everything

Limit Script and Function Input

Maintain Coding Standards

Code in Context

Return Informative Output

Understand Your Code

Use Version Control

Write for Cross Platform

Write for the Next Person

Use a Code Editor

Chapter 2. Don’t Reinvent the Wheel

Use Community Modules

Leverage Others’ work

Chapter 3: Use Visual Studio Code

PowerShell Integrated Scripting Environment

Using Visual studio over PowerShell ISE

Chapter 4. Plan Before you Code

Write Comments Before Coding

Use your Code as a Todo List

Chapter 5. Create Building Blocks with Functions

Write Functions with One, Single Goal

Build Functions with Pipeline Support

Save Commonly-Used, Interactive Functions to Your Profile

Chapter 6. Parameterize Everything

Don’t Hardcode. Always Use Parameters

Use Parameter Sets When All Parameters Should Not be Used at Once

Use a PSCredential Object Rather than a Separate Username and Password

Chapter 7. Log Script Activity

Use a Logging Function

Clean up Verbose Messages

Chapter 8. Build with Manageability in Mind

DRY: Don’t Repeat Yourself

Don’t Store Configuration Items in Code

Always Remove Dead Code

Chapter 9. Be Specific

Use Strict Mode

Don’t Ignore Errors

Validate Input Parameters

Explicitly Define Parameter Types

Enforce Mandatory Parameters

Use the #requires Statement .

Chapter 10. Write for the Next Person

Give your Variables Meaningful Names

String Substitution

Don’t use Aliases in a Script

Put functions in Alphabetical Order in a Module

Explain Regular Expressions with Comments

Write Comment-Based Help

Weigh the Difference Between Performance and Readability

Chapter 11. Handle Errors Gracefully

Force Hard-Terminating Errors

Avoid Using $?

Copy $Error[0] to your Own Variable

Chapter 12. Don’t Skimp on Security

Sign Scripts

Use Scriptblock Logging

Never Store Sensitive Information in Clear Text in Code

Don’t use Invoke-Expression

Use PowerShell Constrained Language Mode

Chapter 13. Stick to PowerShell

Use Native PowerShell Where Possible

Use PowerShell standard cmdlet naming

Chapter 14. Build Tools

Code for Portablity

Wrap Command-Line Utilities in Functions .

Force Functions to Return Common Object Types

Ensure Module Functions Cover all the Verbs

Chapter 15. Return Standardized, Informative Output

Use Progress Bars Wisely

Leave the Format Cmdlets to the Console

Use Write-Verbose

Use Write-Information

Ensure a Command Returns One Type of Object

Only Return Necessary Information to the Pipeline

Chapter 16. Build Scripts for Speed

Use an ArrayList or GenericList .NET Class when Elements Need to be Added to an Array

Use a Regular Expression to Search Multiple String Values

Don’t use Write-Host in Bulk

Don’t use the Pipeline

Use the .foreach() and .where() Methods .

Use Parallel Processing .

Use the .NET StreamReader Class When Reading Large Text Files 

Chapter 17: Use Version Control

Create repositories based on a purpose

Commit Code changes based on small goals

Create a branch based on the future

Chapter 18. Build Tests

Learn the Pester Basics

Leverage Infrastructure Tests

Automate Pester Tests

Use PSScriptAnalyzer

Chapter 19. Miscellaneous Tips

Write for Cross Platform .

Don’t Query the Win32_Product CIM Class

Create a Shortcut to run PowerShell as Administrator . .

Store ‘Formatable’ Strings for Use Later

Use Out-GridView for GUI-based Sorting and Filtering

Don’t Make Automation Scripts Interactive

Chapter 20. Summary


이 포스팅은 쿠팡 파트너스 활동의 일환으로,
이에 따른 일정액의 수수료를 제공받습니다.
이 포스팅은 제휴마케팅이 포함된 광고로 커미션을 지급 받습니다.
도서 DB 제공 : 알라딘 서점(www.aladin.co.kr)
최근 본 책