home.social

#yamlislife — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #yamlislife, aggregated by home.social.

fetched live
  1. YAML is /almost/ the perfect programming language. Just needs a bit of indirection

    !ref <reference> in a raw data file is preprocessed to { $ref: "<reference>" } when into storage (our example cheats since the embedded fences don't yet use the same preprocessor). Fetch using `smol-node` automatically resolves the references against the source data, in this case the type dictionary.

    smolchalk.dev

    #yamlislove #yamlislife #smolchalkisfriendy #computingforlittles

  2. This is such a lovely way of injecting a bit of chance into an otherwise dreary YAML

    Conditional value injection, external influence. Who needs control logic when you've got a config file and just enough sugar to make it Turing complete

    #programming #computingforlittles #wanderland #yamlislove #yamlislife