Skip to content

Tag Archives: api

Enforcing Fluent API adherence using Interfaces in Java

07-Jul-11

This some considerable noise on the internet about Fluent APIs and using them. There was a question on stackoverflow.com about how to enforce calling all the required methods to guarantee you fully materialize an object when using a Builder Pattern with a Fluent API approach. The appropriate way to achieve this is through Interfaces that [...]

Get All Views from All Databases in CouchDB

11-May-10

Here is a little code snippet on how to get a list of all the Views from all the Design Documents from all the Databases in a CouchDB instance with couchdbkit. #!/usr/bin/env python from couchdbkit import * server = Server() dbs = server.all_dbs() for dbname in dbs:     db = server.get_or_create_db(dbname)     result = db.all_docs(startkey=’_design’, endkey=’_design0′)     for [...]