Slide 1

Slide 1 text

HOOD.IE KarlsruheJS 2014 HOOD.IE

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

It all started with an app

Slide 5

Slide 5 text

•backbone
 (before it was cool) •localStoage •appCache Manifest
 (works offline) •simple Rails backend •made in 2010 minutes.io

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

CouchConf SF & Berlin •I showed my CouchDB setup •Everyone loved it, nobody could help, really •And there was Jan. He loved it big time, invited me to CouchDB User Group in Berlin, I gave a talk, we decided 


Slide 12

Slide 12 text

And there was CANG

Slide 13

Slide 13 text

CANG •“CouchApp Next Generation” •stupid name on purpose™ •2.1 tier

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

2.1 Tier •everything is async •everything is JSON •every operation is a background task

Slide 16

Slide 16 text

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

It was all a Dream(code)

Slide 21

Slide 21 text

hoodie.account.signUp(username, password) hoodie.account.resetPassword(username) hoodie.store.add('todo', properties) hoodie.store.findAll('todo') hoodie.store('todo').on('change', handleChange) hoodie.email.send({ to: '[email protected]', subject: 'From Hoodie With <3', html: htmlText, text: text, attachments: [hoodie.convert(document.body).to('letter.pdf')] }) hoodie.purchase(productId).via('paypal')

Slide 22

Slide 22 text

Dream Driven Development •dream up the most beautiful API you can. Dream big. •Get excited. A lot. •Build it backwards •Repeat.

Slide 23

Slide 23 text

Hoodie is an API first.
 It’s a promise. Everything else can change or is replaceable. 
 
 The API is all that matters.

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Hoodie is Offline First by default. •hoodie.isConnected() •hoodie.store.hasLocalChanges() •hoodie.on(‘disconnect’, showOfflineUi) •hoodie.on(‘reconnect’, hideOfflineUi)

Slide 39

Slide 39 text

Offline first the good parts

Slide 40

Slide 40 text

Offline first, the good Let people use your app, without any sign up
 ☛ Conversation rates you didn’t even
 dare to dream of. It’s crazy fast
 ☛ zero latency It works offline
 ☛ because, why not?

Slide 41

Slide 41 text

Offline first the interesting parts

Slide 42

Slide 42 text

Offline, the “interesting” parts new app states ☛ signed in but not authenticated ☛ local changes that have not yet been synched 
 new UX challenges ☛ tell the user he’s offline or not? ☛ To show or not to show that there are local changes? ☛ How to make user aware of unsynced changes?

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

Hoodie is not… … the new jQuery. Hoodie has not opinion on the frontend. It does not interact with the DOM at all. Hoodie <3 jQuery. They a great companions.

Slide 45

Slide 45 text

Hoodie is not… … the new Backbone/Angular/Ember/you name it. Hoodie starts where Frontend MVC/MVVM Frameworks end. Hoodie <3 all of them. They are great companions.

Slide 46

Slide 46 text

Hoodie is not… •… a Meteor competitor. •Meteor exposes very low level backend capacities everywhere •Hoodie encapsulates all backend operations to hide away its complexity, instead of exposing it

Slide 47

Slide 47 text

Hoodie is not… an All-In-One solution. It’s a very tiny core with a great plugin architecture. Example plugins can expose APIs like hoodie.email.send(emailProperties).then(showSentMessage) hoodie.purchase( productId ).with(‘paypal’) hoodie.convert(document.body).to(‘report.pdf’) hoodie.call(phoneNumber).then(showCallUi, hideCallUi) hoodie.translate(text).to(‘fr’)

Slide 48

Slide 48 text

The Hoodie Architecture

Slide 49

Slide 49 text

State of the Hoodie •developer preview •great time to build first apps •we have Hoodie apps in production today •1.0 due in 2014:
 sharing, payments, hosting/setup, PouchDB, conflicts, migrations, documentation, HoodieLaunchParty!!!!

Slide 50

Slide 50 text

The Hoodie Future •Super simple One-click setup, both locally & online •One-click Setup package for Hoodie Hosters (think Wordpress) •always open-source, always bootstrapped, always not-for-profit, always independent (includes us) •We are here to stay, you can trust and build on Hoodie for the long term •We wish we could move faster, but we will never compromise our vision •You can helps us <3

Slide 51

Slide 51 text

Please help us make •give it a try, you will be amazed •Pleas ask questions
 (@HoodieHQ, #hoodie, github.com/hoodiehq/discussion/issues) •Please report bugs •Contribute: espy.github.io/ubersicht/#hoodiehq •Spread the word: Tutorials, Sceencasts, Talks, Meetups/UserGroups <3 •Sponsor Hoodie
 (exclusive weekly sponsoring incl. commit signatures) •Hire Us team@thehoodiefirm.com
 (all income goes towards Hoodie Development)

Slide 52

Slide 52 text

Thank you! and special thanks to