Skip to content

Instantly share code, notes, and snippets.

@rvanheest
rvanheest / README.md
Last active August 25, 2017 07:50
A first design for a client library for easy-bag-store

This gist contains a first draft of a client library for easy-bag-store. The design follows the REST API that easy-bag-store exposes itself.

Every call in this client library results in an execute() call that does the actual calling and which returns the Response object containing a reponse code and either a corresponding error message or the resulting object itself.

The following calls can be made with this library:

  • Vault.status() // returns String
  • Vault.listBags(<[]|all|inactive>) // returns Seq[UUID]
  • Vault.bag(<uuid>).list() // returns Seq[Path]
@rvanheest
rvanheest / 0_reuse_code.js
Created July 4, 2016 10:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rvanheest
rvanheest / easy-gists.md
Last active July 4, 2016 10:21 — forked from jo-pol/easy-gists.md
A nursery for DANS-EASY libraries or best practices

Problems with the legacy libraries of EASY

  • Anything was placed in libraries without giving it much thought
  • Few developers knew what was in the library so little was reused
  • A serious library needs thorough tests, a stable API, support multiple use cases and communicated to developers. Hence it quickly takes more time than it saves.

Problems with current copy-paste habits

  • A lot lot of variants of similar code snippets populate the code base
  • Developers may copy any version they happen to find, not the latest and greatest