Skip to content

Instantly share code, notes, and snippets.

@Jaykul
Jaykul / ErrorHandlingExample.ps1
Last active March 7, 2018 19:19
Try this example, then try changing line 14 to catch [exception]
using namespace System.Management.Automation
& {
[CmdletBinding()]param()
$ErrorActionPreference = "Stop"
try { # Standard practice in every script
Get-Item NoSuchFile
} catch [ItemNotFoundException] {
Write-Warning "File not found, using workaround ... "
@joepie91
joepie91 / getting-started.md
Last active July 7, 2024 02:41
Getting started with Node.js

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Setting expectations

Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.

Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!