Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 4.84 KB

may.md

File metadata and controls

72 lines (51 loc) · 4.84 KB

May 2022

The theme is streams this month, but first...

Web Component Strategy: Wrap, don't replace, semantic HTML elements

Functional UI

We still need to fix something in the web architecture claim that "the view is a function of the model", because the view is too easily confused with "the UI" vs. its representation. It is more correct to say that the view depends on a representation which is a function of the model. The following deal with view-as-UI, but raj offers something close to the SAM pattern: side-effects (that is, mutations to the view and possibly other actions) as first-class citizens.

Streams

There are many ways to create stream APIs. Some of these have been listed previously.

Overview

Community

Stream implementations from the community tend to be general purpose or platform-agnostic - "a sequence of values handled lazily" or "A Stream is a reactive data structure, similar to cells in spreadsheet applications.

Platform streams

Platform streams are built specifically to handle network data transfer. They distinguish between stream types as readable, writable, duplex, and transform.

Code playground

  • Rasmus Porsager (2018), flemshttps://github.com/porsager/flems

    Flems is a static web app - no strings attached - browser code playground. It's great for documentation, examples, presentations, issues and what not.

    • unpkg URL example: https://unpkg.com/flems@1.5.10/dist/flems.html
    • hat tip to Fred Daoud (@foxdonut) who uses it on his Meiosis tutorial documentation.

Hugo migration advice

  • cloudfare (2022), cloudfare-docs github issue 3609: migrate to Hugocloudflare/cloudflare-docs#3609
    • Surprisingly great advice on using Hugo shortcodes, etc.