maintaining-state-in-clojure icon indicating copy to clipboard operation
maintaining-state-in-clojure copied to clipboard

Examples of stateful data in Clojure

Results 6 maintaining-state-in-clojure issues
Sort by recently updated
recently updated
newest added

Advocate for exception-less code as a more FP approach, of all results as data, both success and failures.

A follow-up to the data structure example, but one that is thread-safe.

E.g, using a database connection, in-memory data store with atoms, and then providing access of this data to different parts of the app via components (and their dependencies).

In particular, after the “Once upon a time” section, describe how closures are actually used to maintain state.

Discuss the external API and the internal messaging passing API. Briefly explain the go loop as the engine of state maintenance and analog to closures.