Best of DenoOctober 2024

  1. 1
    Video
    Avatar of beyondfireshipBeyond Fireship·1y

    JavaScript performance is weird... Write scientifically faster code with benchmarking

    Learn how to scientifically measure JavaScript performance using the Deno runtime's benchmarking tool. Discover the fastest ways to loop over arrays, optimize array includes operations with Set, and compare various sorting algorithms like bubble sort, quick sort, and merge sort. This methodical approach helps avoid premature optimization and ensures robust code performance.

  2. 2
    Article
    Avatar of nodejsdevelopersNode.js developers·1y

    How are you all feeling about sharing Bun and Deno updates here too?

    A discussion is raised about whether updates on Deno and Bun, which are server-side JavaScript runtimes similar to Node.js and aim for npm-like compatibility, should be shared in a Node.js developers group. Members are asked if they agree or if they'd prefer the focus to remain exclusively on Node.js.

  3. 3
    Article
    Avatar of cloudflareCloudflare·1y

    The story of web framework Hono, from the creator of Hono

    Hono is a fast, lightweight web framework that works across various JavaScript environments, including Cloudflare Workers, Deno, Bun, and Node.js. It uses a Trie tree-based router and adheres to Web Standards, ensuring a 'write once, run anywhere' experience. Hono simplifies development with concise syntax, built-in middleware, strong type system, and server-side JSX support. It also has features for authentication, context model for state management, and robust testing capabilities. Recent updates include static site generation, client components, and file-based routing, allowing full-stack application development.

  4. 4
    Video
    Avatar of denoDeno·2y

    Programming should be simple

    Programming should be simple. Ryan Dahl, the creator of Node.js, critiques the complexity of modern Node.js setups, highlighting cumbersome processes like configuring TypeScript. He introduces Deno, a new platform that prioritizes simplicity, integrating TypeScript support out-of-the-box, providing all-in-one tooling, and ensuring security by default, while maintaining compatibility with existing npm packages.

  5. 5
    Video
    Avatar of denoDeno·1y

    Deploy a Next.js app to Deno Deploy

  6. 6
    Article
    Avatar of denoDeno·1y

    How to convert CommonJS to ESM

    ECMAScript modules (ESM) are the modern standard for writing JavaScript, supporting features like async loading and better compatibility. This post guides you through updating the syntax of a legacy CommonJS project to ESM, including changes in import/export statements and package.json configurations. Removing 'use strict' and using shims for globals like __dirname and __filename are also discussed. Tools like VSCode and various npm packages can assist in the transition. Adopting ESM can alleviate compatibility issues and streamline development.

  7. 7
    Article
    Avatar of denoDeno·1y

    Build an Astro site with Deno

    Learn how to build a content-centric website using the modern web framework Astro and the runtime environment Deno. The guide covers setting up an Astro project with Deno, including running commands, creating data, setting up server-side rendering (SSR), and more. This tutorial emphasizes the advantages of using Deno 2, particularly its compatibility with Node/npm and its built-in package management.