Essays
These are full-blown essays, papers, and articles.
Presentations
Slideshows and presentation materials from conferences.
Interviews and Panels
Reprints of non-game-specific interviews, and transcripts of panels and roundtables.
Snippets
Excerpts from blog, newsgroup, and forum posts.
Laws
The "Laws of Online World Design" in various forms.
Timeline
A timeline of developments in online worlds.
A Theory of Fun for Game Design
My book on why games matter and what fun is.
Insubstantial Pageants
A book I started and never finished outlining the basics of online world design.
Links
Links to resources on online world design.
All contents of this site are
© Copyright 1998-2010
Raphael Koster.
All rights reserved.
The views expressed here are my own, and not necessarily endorsed by any former or current employer.
Date: October 26, 2023 Subject: Analysis and Solution Strategy for the "PowerShell 3 Cmdlets" Challenge
Some developers write PowerShell like C#: powershell 3 cmdlets hackerrank solution
$result = New-Object System.Collections.ArrayList
for ($i=0;$i -lt $arr.Length;$i++)
if ($arr[$i] % 2 -eq 0) $result.Add($arr[$i])
But PowerShell shines with cmdlets:
$result = $arr | Where-Object $_ % 2 -eq 0
The latter is:
Sort, Select, GroupHackerRank judges don't care about micro-optimizations; they care about correctness. Cmdlet pipelines reduce bugs. Report: PowerShell 3 Cmdlets - HackerRank Solution Analysis
Select-Object ProcessName, Id, @Name="WorkingSet_MB"; Expression= ... ProcessName and Id as-is.WorkingSet_MB:
WorkingSet (bytes) by 1 MB to convert to MB.[math]::Round() rounds to 2 decimal places.Get-Command)If the challenge asks, "Which cmdlet is used to [do action]?", you need to search the system. But PowerShell shines with cmdlets : $result =
Get-Command -Verb <Verb> or Get-Command -Noun <Noun>Get-Command -Noun Process
# Output suggests: Get-Process, Stop-Process, etc.