THE BLOG / 299 ARTICLES

Software engineering.
Notes from the work.

Engineering, building products, and learning along the way.
The full archive, with room to explore.

Topic

299 articles · Showing 291–295

  • Engineering

    Spread Syntax

    Like the finest wines and cheeses, TypeScript’s tuples pair beautifully with JavaScript’s spread syntax. This is most useful for function calls that use…

    2 min read ↗
  • Engineering

    Tuples in TypeScript

    So far we’ve looked at arrays with all elements of the same type. But, as we know, JavaScript arrays are flexible and can have elements of different types.…

    2 min read ↗
  • Engineering

    Array Type Inference

    TypeScript can infer variable types from initial values and return statements. Even still, we may not know exactly what type inference to expect when dealing with arrays

    1 min read ↗
  • Engineering

    Generate TOTP

    This is a npm package for time-based One-time Password is a computer algorithm that generates a one-time password which uses the current time as a source of…

    2 min read ↗
  • Engineering

    Sleep function

    when you need to delay some code async await before running.

    1 min read ↗