User: anders

Channels

Slipstream

Slipstream provides a data-flow model to simplify development of stateful streaming applications.

distributed systems python

Diataxis

Diátaxis is a way of thinking about and doing documentation.

It prescribes approaches to content, architecture and form that emerge from a systematic approach to understanding the needs of documentation users.

Diátaxis identifies four distinct needs, and four corresponding forms of documentation - tutorials, how-to guides, technical reference and explanation. It places them in a systematic relationship, and proposes that documentation should itself be organised around the structures of those needs.

LilyFoote/django-rusty-templates

Django templates re-implemented in Rust for performance.

django rust

Is trauma associated with plant-based diet choice? - ScienceDirect

Theoretically, plant-based diets may be more common among trauma exposed because those with trauma may have increased empathy.

papers vegan

The Effect of Deactivating Facebook and Instagram on Users’ Emotional State

People who deactivated Facebook for the six weeks before the election reported a 0.060 standard deviation improvement in an index of happiness, depression, and anxiety, relative to controls who deactivated for just the first of those six weeks. People who deactivated Instagram for those six weeks reported a 0.041 standard deviation improvement relative to controls.

papers

humanlayer/12-factor-agents: What are the principles we can use to build LLM-powered software that is actually good enough to put in the hands of production customers?

  • Factor 1: Natural Language to Tool Calls
  • Factor 2: Own your prompts
  • Factor 3: Own your context window
  • Factor 4: Tools are just structured outputs
  • Factor 5: Unify execution state and business state
  • Factor 6: Launch/Pause/Resume with simple APIs
  • Factor 7: Contact humans with tool calls
  • Factor 8: Own your control flow
  • Factor 9: Compact Errors into Context Window
  • Factor 10: Small, Focused Agents
  • Factor 11: Trigger from anywhere, meet users where they are
  • Factor 12: Make your agent a stateless reducer

ai

Gravy Pitcher by Myrtle Pedals

Track featuring the mystery pedal that uses my artwork.

art guitar

How doctors handoff patients (how it applies to incidents) : sre

I-PASS stands for:

  • Illness Severity
  • Patient Summary
  • Action List
  • Situation Awareness & Contingency Planning
  • Synthesis by Receiver

sre

Summary of How I write HTTP services in Go after 13 years:

  • The NewServer constructor - big constructor that takes all dependencies as parameters. returns http.Handler. configures its own muxer and calls out to routes.go. includes setting up middleware, CORS, logging. ** Long argument lists - type safety in arguments.
  • Map the entire API surface in routes.go
  • func main() only calls run() - run() returns an error and accepts OS fundamentals as parameters for easier testing. background context is created in main but all other context handling is done in run. ** Gracefully shutting down - pass context through and check it at each level. ** Controlling the environment - use flags.NewFlagSet inside run. make a replacement os.Getenv for tests and pass that to run (or the real thing for main).
  • Maker funcs return the handler - creates a readable closure for each.
  • Handle decoding/encoding in one place - for JSON/XML encode/decode.
  • Validating data - single method interface with Valid(ctx context.Context) (problems map[string]string)
  • The adapter pattern for middleware - take an http.Handler and return one.
  • Sometimes I return the middleware ** An opportunity to hide the request/response types away - keeps global space clear.
  • Use inline request/response types for additional storytelling in tests
  • sync.Once to defer setup - anything expensive during handler setup, defer to the first time it’s called to improve overall app startup time.
  • Designing for testability ** What is the unit when unit testing? - multiple levels of options from run() down to calling individual handler functions. ** Testing with the run function ** Waiting for readiness - loop on hitting a /healthz endpoint until the server has started.

golang