Deno First Look

Burke Holland

Burke Holland

Microsoft
3 hours, 50 minutes CC
Deno First Look

Course Description

Take a first look at Deno, the new command-line runtime for JavaScript. It takes a fundamentally different approach to run JavaScript on the server based on the lessons learned from Node.js. Things like being secure by default, being built on TypeScript, as well as a fresh take on managing dependencies and shipping your apps. Deno is a JavaScript environment rethought from the ground up!

This course and others like it are available as part of our Frontend Masters video subscription.

Preview
Close

Course Details

Published: March 16, 2021

Learn Straight from the Experts Who Shape the Modern Web

Your Path to Senior Developer and Beyond
  • 200+ In-depth courses
  • 18 Learning Paths
  • Industry Leading Experts
  • Live Interactive Workshops
Get Unlimited Access Now

Table of Contents

Introduction

Section Duration: 53 minutes

Setup

Section Duration: 46 minutes
  • Installing Deno & Deno Basics
    Burke installs Deno, briefly demonstrates running JavaScript in the Deno REPL, and discusses the native bindings of Deno being rooted in Rust. The performance of Deno and other environments is also briefly looked at.
  • Deno Tooling
    Burke introduces the Deno tooling extension and walks through how to enable it even though Deno isn't enabled in the global user settings in VS code.
  • Your First Program
    Burke live codes a "Hello World" project using TypeScript and JavaScript and walks through the file structure that Deno pulls from the local machine. Deno will execute TypeScript and JavaScript, though most examples involving Deno are written in TypeScript.
  • Remote Scripts & Deno Object
    Burke discusses executing remote scripts using a URL in Deno and looks into operations found on the Deno object. The Deno object replacements for commonly used Node concepts including args, env, and _dirname are also covered in this segment.
  • CLI Options
    Burke talks about some interesting arguments that can be passed to the Deno CLI including a built-in formatting tool and explains how to pass in arguments to the Deno CLI to avoid errors. Deno commonly uses the built-in watcher using --unstable and --watch. Passing in watcher flags incorrectly will cause errors.
  • Debugging
    Burke discusses multiple methods of debugging in Deno including using --inspect, Edge and Chrome browser dev tools, and VS Code. Deno can have a debugger attached in VS code with a configured launch.json file.

Thinking Like a Browser

Section Duration: 32 minutes

Server Side Features

Section Duration: 1 hour, 37 minutes

Wrapping Up

Section Duration: 1 minute

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now