Mongo db and wee data

Post on 13-Jul-2015

107 views 2 download

Tags:

transcript

MongoDB andWee Data

hacking a workflow

what it’s all about

• MongoDB lets you persist and investigate your application data while getting out of your way

• p.s. BDD

me

• http://bringingfire.com/

• @4BringingFire

• expertise at the intersection of technology, product formulation, and business strategy

stuff I’m into

• products > tech

• UX testing

• iterative, analytics-driven dev

• agility in production

http://www.shopwiki.com

these guys © wired.com

http://penrosejudaica.com

there are barely any actual Big Data projects

what is wee data?

• query performance is not an issue

• in fact it might fit in RAM

• in fact it might fit in 2MB

where mongo fits

• scales down nicely

• access programmatically without SQL

• persists for free

• query later, too

ORMpuh-lease.

http://penrosejudaica.com

Behavior Driven Development

• “Outside-in” approach

• Everything is behavior

• Acceptance-test-driven planning

• Ubiquitous language

Cucumber

Cucumber

Cucumber

Cucumber

rspec

• specification

• object doubles (mocks, fakes, stubs, spies)

• method stubbing

• expectations

Behavior Driven Development

• http://cukes.info/

• http://rspec.info/

Name Materials Price Description

fancy menorah gold, silver 600

plain menorah pewter 150

the Penrose ETL pipeline

ProductSpreadsheets

.csv.csv.csv

CSV files ProductDescriptions

Blah blah blahexquisite

craftsmanship

db.products.aggregate( { $match : { product_type : “menorah” } }, { $group : { _id: “$material”, count:

{ $sum : 1 } } )

Buy AdWords?

Q & A