Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developer Happiness & MongoDB

Developer Happiness & MongoDB

Given at MongoDC on June 26, 2012.

Luigi Ray-Montanez

June 26, 2012
Tweet

More Decks by Luigi Ray-Montanez

Other Decks in Programming

Transcript

  1. “Happiness has a cascading e!ect. Happy programmers do the right

    thing. They write simple, readable code. They take clean, expressive, elegant approaches. They have fun.” -- gettingreal.37signals.com
  2. { 'title': 'The NoSQL Shootout', 'published_at': '2012-06-26T09:15:00', 'content': 'Lorem ipsum...',

    'author': { 'id': '47cc67093475061e3d95369d', 'name': 'Luigi Montanez' }, 'tags': ['nosql', 'mongodb', 'redis', 'couchdb'], 'comments': [ { 'name': 'Jon Snow', 'email': '[email protected]', 'comment': 'Lorem ipsum...' }, ... ], 'recommended': [ { 'title': 'Meditations on MongoDB', 'path': '/2012/02/meditations-on-mongodb' }, ... ] }
  3. // JavaScript console db.blog_posts.find( { tags: 'mongodb' } ); #

    Ruby driver blog_posts.find( { 'tags' => 'mongodb'} ) // PHP driver $blog_posts->find( array( 'tags' => 'mongodb' ) );