The Deno Show

Jan. 27, 2021, 2 p.m. (3 years, 2 months ago)
0 Comments

In this episode of Syntax, Scott and Wes bring you the long-awaited Deno show — what it is, what it replaces, how you can use it, and more!

Deque - Sponsor

Deque’s free axe browser extension helps developers instantly catch 50% of accessibility bugs while they code. It’s lightweight, easy-to-use, and has zero false positives. Get started for free at deque.com/axe.

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting Sentry.io and using the coupon code TASTYTREAT during sign up.

Mux - Sponsor

Mux Video is an API-first platform that makes it easy for any developer to build beautiful video. Powered by data and designed by video experts, your video will work perfectly on every device, every time. Mux Video handles storage, encoding, and delivery so you can focus on building your product. Live streaming is just as easy and Mux will scale with you as you grow, whether you’re serving a few dozen streams or a few million. Visit mux.com/syntax.

Show Notes

02:13 - What is it?

  • A secure runtime for JavaScript and TypeScript
  • Built by Ryan Dhal — same guy who initially built Node.js
  • API is JS or TS out of the box

04:55 - Does it replace / what is it in relation to?

  • Node
    • It’s a replacement for Node.js
  • Express
    • Web Server Frameworks like Express will run on Deno, but Express itself won’t currently run because they are build on Node APIs
    • https://github.com/oakserver/oak
  • Serverless
  • React / Vue / Svelte
    • These things are just JavaScript, so they should/will work in Deno. Deno will replace your tooling. More involved things like Next.js that require Node APIs won’t work until.
    • https://alephjs.org/
  • SSR
    • It comes with all browser APIs out of the box!
  • Fetch
    • Window + Add Event listener
  • Webpack / Parcel / Snowpack
    • Deno is a bundler
  • Prettier
    • Deno is a formatter
  • TSC
    • Deno is a TypeScript compiler and runtime
  • ESLint
    • Deno is a linter
  • Jest
    • Deno is a Test Runner
  • NPM
    • Deno is a package manager - it pulls in packages from URLs

14:51 - Modules

  • ES modules from the start
  • Modules are loaded from URLs
  • Why? No package registry to worry about
  • This is how the browser works
  • Import from URL
  • You can also specify it in the json file
  • https://github.com/oakserver/oak/blob/main/deps.ts
  • https://deno.land/
  • Fetch is built in!
    • It’s a browser API, but who cares?!
  • Browser APIs
    • window.add event Listener
    • Deno is event based, like the browser

20:10 - A nice standard library

22:14 - WASM

  • Deno can run WASM with the same APIs that the browsers can
  • Node is doing this too (experimental)

25:06 - Multi-threading with Web Workers

26:13 - Speed

29:44 - Security

33:39 - Run from anywhere

37:43 - Async out of the box

  • Everything is based on async + await / promises right away. No callback APIs, no promise wrapping.
  • Top level await

38:53 - Node Compatibility

  • Node APIs are being filled
  • This means if a browser package ships an ES module of a package, we can just import it

42:21 - What we’ve built

46:54 - Hosting

48:29 - Final thoughts

  • Scott: Now is a great time to learn, but don’t put any crucial work into that space unless you are ready to write everything. Libraries are still being written and evolved. Docs are still sparse. Many things didn’t work on first try. I had to read lots of source.
  • Wes: If You know JS or TS, you are already 90% there.
    • The package ecosystem isn’t there yet
    • Battle-tested

××× SIIIIICK ××× PIIIICKS ×××

Shameless Plugs

Tweet us your tasty treats!

Login to Add New Comment
No comments have been posted yet, be the first one to comment.
Similar Podcasts
What the EU's GDPR Means to Web Developers What the EU's GDPR Means to Web Developers
In this episode we have Andrew Fairlie from Mutual to discuss the new European Union General Data Protection Regulation aka the GDPR. We discuss what the GDPR means specifically to web designers and developers both in terms of the work we do, and the work proposals we draft. We discuss the GDPR fro...
Spelunking into the VueJS Frontend JavaScript Framework Spelunking into the VueJS Frontend JavaScript Framework
On this episode, we talk with special guest Adam Wathan about the VueJS JavaScript framework. We talk about what VueJS is, and how its Laissez-faire approach lets you pick and choose how much of it makes sense to use in a project. We go into why using a framework like VueJS can help you write bette...
JAMstack development, carpe JavaScript! JAMstack development, carpe JavaScript!
On this episode, we’re joined by Paulo Elias from IDEO to discuss JAMstack: Modern web development architecture based on client-side JavaScript, reusable APIs, and prebuilt Markup. Paulo talks about his journey from doing traditional LAMP/LEMP stack work to building things using JavaScript as the h...
Leveraging Laravel for Truly Custom Projects Leveraging Laravel for Truly Custom Projects
In this episode, we talk to Phil Zaengle from Zaengle Corp about leveraging the PHP framework Laravel to build truly custom web applications. We discuss when a CMS like Craft makes sense, and when it makes sense to utilize Laravel in addition to or instead of a CMS. We go on to discuss the importan...
CSS & CMS Musings with Eric Meyer CSS & CMS Musings with Eric Meyer
On this episode we have on the CSS legend Eric Meyer to talk about the early days of CSS, and how it almost died, and also onto where CSS is today. We discuss utility-first CSS, CSS in JavaScript, and talk about the Flexbox and the awesomeness that is CSS Grid. We then also talk about the move of E...
Similar Tutorials
Enable & Write Cron Jobs for Strapi
Enable & Write Cron Jobs for Strapi
A cron job is a useful utility that can be found in any unix-like operating system. It can be used to schedule time-based commands without human intervention. With Strapi, we can use cron jobs to import data or run application tasks automatically. To write cron jobs in Strapi is super...
How to Install Deno on macOS
How to Install Deno on macOS
Deno is a simple, modern and secure runtime for JavaScript and TypeScript, by the creator of Node.js himself, Ryan Dahl. Deno uses the Chrome v8 engine and is built with Rust. The project just reach version 1.0 and got many people in the JavaScript community interested. In this tutori...
How to Build a Movie Database & API with Strapi
How to Build a Movie Database & API with Strapi
Strapi is an awesome headless CMS built with Node.js that can speed up the process of building an API quiet dramatically. It's perfect for people who enjoy the frontend more than the backend, and it allows you to build complex database structures with out writing any code. Magic, if y...