An open API service indexing awesome lists of open source software.

https://github.com/dzucconi/immanence

A framework
https://github.com/dzucconi/immanence

Last synced: 7 months ago
JSON representation

A framework

Awesome Lists containing this project

README

          

> [...] when I stub my toe, it is because I do not have the proper set of architectural landing sites in place.
> That is, my architectural body has not assembled enough clues to connect itself properly to its surroundings.
> Sites of reversible destiny are designed to be as complex as our most innate mechanisms of our perception.
> It might take an hour to go from one room to another, and I might live there in a continual state of deja vu as I experience a repetition of slightly differing perceptions.
> Yet, I will be involved in a constant critique of my own experience.
> I will see.
> I will live.
> Perhaps for the first time.
>
> —Arakawa and Madeline Gins

**Immanence** is a "web framework" in Ruby, built on top of Rack. To execute routes it calculates the [Levenshtein distance](http://en.wikipedia.org/wiki/Levenshtein_distance) between incoming requests and routes defined through the DSL then executes the most likely candidate. *Something will always be executed.* Objects are rendered by calling `→` (alias `render`) with the object to be rendered as the argument. Object responses are encoded as JSON. Incoming JSON is automatically parsed and available in as the `input` object.

What does it mean to discard transparent precision in favor of immanent promiscuity?

```ruby
# encoding: UTF-8

class Application < Immanent::Control
route :get, "/fields/:id" do
→ Field.find(params[:id])
end

route :post, "/fields" do
→ Field.create(input)
end
end
```