Skip to content

colindean/nebby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nebby

Nebby is a domain-specific language for describing surveys.

Nebby provides a quick, Ruby-throated way to construct a survey and present the results in an easy-to-understand and easy-to-share way.

by Colin Dean http://cad.cx

Help fund development: Gittip

Requirements

  • Ruby 1.9+
  • Sinatra
  • MongoDB

Examples

See example.rb.

N.b. that I have yet to actually write any code for processing this example.

Goals

The primary goal is to get this working as a standalone web site. The workflow would be something like this:

  1. gem install bundler duh
  2. gem install nebby duh
  3. nebby init my_survey creates a nebby installation in directory my_survey
  4. edit my_survey.rb to your heart's desire
  5. deploy to heroku or duostack or the like
  6. share link to survey
  7. see results
  8. ???
  9. profit

Eventually, nebby should be useable as a gem with a sinatra or rails application. sinatra integration is foremost, as standalone nebby will use sinatra. rails is secondary because it will need to meet the robust needs of rails clientele.

Long tail features

  • Randomization of recorded answers - optionally omit timestamp of answer
  • Randomization of question order - each new respondent gets a randomized order of questions

Prior Art

Surveyor is an existing gem and has a similar DSL. However, its syntax is more procedural whereas nebby's is more block-oriented in the style of many testing frameworks.

However, it's likely that nebby will draw some semblance of influence from Surveyor. Also, I've never used Surveyor.

About

a domain-specific language for describing surveys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages