Comment

Comment by substation13

Defunctionalisation.

Instead of writing code that does what you want to do, have it return a description of what you want to do.

Then write an simple executor for such descriptions.

Why do this? Well it allows you to manipulate, test, store and inspect the description.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton