Skip to content

Repository files navigation

Build and run

Run `nix run` to build and generate static files. Output is in directory `out`.

For proper development, we suggest using a development nix shell (flake) via `nix develop`, then running

“` dune exec –watch funarch “`

You can serve the output with a simple webserver, for example with python:

“` cd out nix shell nixpkgs#python3 python3 -m http.server “`

What is a value?

“Something intrinsically valuable.” Values are ends in themselves, whereas a principle is something that we follow because we believe it to lead to something else (some value).

Values are subjective. We value simplicity, insight, and maintainability. We argue for it, but others might disagree, because they’re simply more interested in paying the bills and moving on.

What is a principle?

Principles are more objective. We say that if you’re interested in maintainability, then you should program with immutable values. If you’re interested in correctness, you should have a formalized idea of what it means to be correct, i.e. a model. If you’re interested in maintainability, you should describe your architecture as code.

A principle is something you can assess a new technology or pattern with. E.g. somebody tells you that signals are the new hot shit in frontend architecture. Instead of having to follow your gut, you can assess the value of signals by checking against composability, abstraction, coupling, modelling … principles.

What is a pattern?

See discussion at FUNARCH 2023: https://www.youtube.com/watch?v=mB2ZhK8tB8Y

A few salient points:

  • A pattern cannot be expressed as a library in its entirety. There may be a mechanical part that can live in a library (such as lenses for bidirectional data transformations) but in order to make something a pattern, there has to be a part that cannot.
  • In most instances the part that cannot live in a library is the question of when to employ a pattern or when to refrain from using it.

Releases

Packages

Used by

Contributors

Languages