5 ruby gems in 10 minutes - faraday, hashie, twitter, diametric, and adamantium

14
PERSISTENCE, DATA STRUCTURES, AND THESE THINGS THAT LIVE IN APP/MODELS Justin Litchfield @sototallysweet

Upload: justin-litchfield

Post on 29-Jan-2015

106 views

Category:

Technology


4 download

DESCRIPTION

5 Ruby Gems in 10 minutes Presented at Austin.rb Feb 3, 2014. Diametric, Twitter, Hashie, Faraday, and Adamantium were discussed along with their influence on thinking of how we deal with Ruby objects

TRANSCRIPT

Page 1: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

PERSISTENCE, DATA STRUCTURES, AND THESE THINGS THAT LIVE IN APP/MODELSJustin Litchfield @sototallysweet

Page 2: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

PROBLEM SPACE

DB

App1 App2

DB

DataData Data

Page 3: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

PROBLEM SPACE

DB

App1App2

DataData

DB

Persistence As A

Service

App3App4

Page 4: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

DIAMETRIC HTTPS://GITHUB.COM/RELEVANCE/DIAMETRIC

Wrapper/ORM for Datomic

Datomic is a DB that stores “facts” about an entity

Facts have time stamps and other metadata

Page 5: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

DIAMETRIC HTTPS://GITHUB.COM/RELEVANCE/DIAMETRIC

Page 6: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

DATA STRUCTURES IN REAL “LIVE” APPS

Page 7: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

TWITTER GEM HTTPS://GITHUB.COM/SFERIK/TWITTER

Uses lots of other cool gems

Worth reading

Great structure

244 Files (!!!)

Page 8: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

FARADAY HTTPS://GITHUB.COM/LOSTISLAND/FARADAY

Page 9: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

FARADAY HTTPS://GITHUB.COM/LOSTISLAND/FARADAY

Page 10: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

HASHIE HTTPS://GITHUB.COM/INTRIDEA/HASHIE

Can quickly describe data structures

Provides things like validation, type coersion

But it just feels like a hash

Page 11: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

HASHIE HTTPS://GITHUB.COM/INTRIDEA/HASHIE

Page 12: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

HASHIE HTTPS://GITHUB.COM/INTRIDEA/HASHIE

Page 13: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

HASHIE HTTPS://GITHUB.COM/INTRIDEA/HASHIE

Page 14: 5 Ruby Gems in 10 minutes - Faraday, Hashie, Twitter, Diametric, and Adamantium

ADAMANTIUM HTTPS://GITHUB.COM/DKUBB/ADAMANTIUM

“Makes objects immutable in a simple, unobtrusive way”

Performance problems?