SilverKey Monitor

A TypeScript Style Guide

published on 2024/10/31
  • Embrace const assertions. ⭣
  • Strive for data immutability (Readonly, ReadonlyArray). ⭣
  • Embrace discriminated unions. ⭣
  • Majority of function arguments should be required (use optional sparingly). ⭣
  • Avoid type assertions. ⭣
  • Strive for functions to be pure, stateless and have single responsibility. ⭣
  • Strong emphasis to keep naming conventions consistent and readable. ⭣
  • Use named exports. ⭣
  • Code is organized and grouped by feature. Collocate code as close as possible to where it's relevant. ⭣

typescript-style-guide


Wasmer 5.0 is out

published on 2024/10/31
  • Experimental support for more backends: V8, Wasmi and WAMR
  • iOS support
  • Leaner codebase
  • Enhanced Performance
  • Upgraded Compilers (now using LLVM 18 and latest Cranelift) Wasmer.io

HTML Form Validation is heavily underused

published on 2024/10/29
Web

Beyond that, there is a bunch of other ways that you can add constraints to your input. Precisely, there are three ways to do it:

  • Using specific type attribute values, such as "email", "number", or "url"
  • Using other input attributes that create constraints, such as "pattern" or "maxlength"
  • Using the setCustomValidity DOM method of the input

Expression Statement


Pollen is a publishing system that helps authors make functional and beautiful digital books

published on 2024/10/28

At the core of Pollen is an argument:

  • Digital books should be the best books we’ve ever had. So far, they’re not even close.
  • Because digital books are software, an author shouldn’t think of a book as merely data. The book is a program.
  • The way we make digital books better than their predecessors is by exploiting this programmability.

That’s what Pollen is for.

Pollen