Tdc 2014 - Ruby and Mobile apps - KO!
-
Upload
hanneli-tavante -
Category
Technology
-
view
615 -
download
6
description
Transcript of Tdc 2014 - Ruby and Mobile apps - KO!
![Page 1: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/1.jpg)
Ruby and Mobile appsKO!!!
![Page 2: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/2.jpg)
Hello!Hanneli (a.k.a. @hannelita)!
Software developer in Brazil!
Coffee and Pokémon <3!
![Page 3: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/3.jpg)
What we will seeSoftware development - evolution!
Welcome to mobile world!!
Do we need backend?!
Ruby for mobile apps backend!
Helios environment!
Funny gifs (or not)
![Page 4: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/4.jpg)
Programming
![Page 5: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/5.jpg)
1990 -> 2000
Web
![Page 6: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/6.jpg)
SKILL SET
PHP
Apache
MySQL
![Page 7: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/7.jpg)
EASY!
![Page 8: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/8.jpg)
JDBCHibernate 2
XMLJPA
Hibernate 3.1Annotations
JPA 2EclipseLink
Hibernate 4
ServletJSP
StrutsStruts 2VRaptor
JSF1JSF 2Richfaces
PrimefacesSeam
TomcatJetty
JBossGlassfish
WeblogicWebsphere
EJBWebservices
JMSJAX-RS
Eclipse
IntelliJ IDEANetbeans
![Page 9: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/9.jpg)
Enterprise, huh?
![Page 10: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/10.jpg)
A little MOAR
Oracle
NoSQLRubyRailsSinatra
Postgres
HTML
CSS
JS
jQuery
TDD vimRSpecMongo
CassandraNode.jsMeteor.js Backbone.js
Neo4jRedis
HerokuGit
Torquebox
![Page 11: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/11.jpg)
F*** YEAH
![Page 12: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/12.jpg)
Sou F...
Dig Din
![Page 13: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/13.jpg)
2000 -> Nowadays
Mobile!
![Page 14: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/14.jpg)
Your mobile
Bank account
Personal Trainer
Clock
Photo gallery
Communication
![Page 15: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/15.jpg)
The Apple
![Page 16: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/16.jpg)
The Apple
Hey, sweet, do you have WhatsApp?
![Page 17: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/17.jpg)
iPhone
![Page 18: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/18.jpg)
iPhoneDoes Apple give
money?
DO SOME APPS THEN <3
![Page 19: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/19.jpg)
iOS Development
Objective C
iOS
Xcode
SQLite
Foundation
C
C++
UIKit CoreGraphics
CoreServices
CoreLocation
ARC
![Page 20: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/20.jpg)
iOS Development
![Page 21: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/21.jpg)
iOS Development
[[[[ ]]]]
![Page 22: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/22.jpg)
Life is too short to Objective C
![Page 23: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/23.jpg)
Keep doing Ruby
![Page 24: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/24.jpg)
BUT
The app is now popular
![Page 25: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/25.jpg)
Wow
Client Server
![Page 26: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/26.jpg)
OH NO!
Objective C backend!
![Page 27: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/27.jpg)
SALVATION
![Page 28: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/28.jpg)
Let’s RUBY!
What do you need for backend, sir?
![Page 29: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/29.jpg)
Data Sync
011001
![Page 30: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/30.jpg)
InApp Purchases
![Page 31: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/31.jpg)
Push Notification
![Page 32: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/32.jpg)
Let’s RUBY!
No need to do from zero!
![Page 33: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/33.jpg)
Helios!
Keep lazy for backend!
![Page 34: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/34.jpg)
Helios DefaultsHeroku app
gem install helios
helios new tdc
helios server
http://localhost:5000/admin
![Page 35: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/35.jpg)
Checklist
Data Model Sync!
InApp Purchases!
Push Notifications
![Page 36: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/36.jpg)
Rails - application.rb
config.middleware.use Helios::Application do! service :data, model: 'path/to/DataModel.xcdatamodel'! service :push_notification ! service :in_app_purchase!end!
![Page 37: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/37.jpg)
Data model SyncREST model - from
CoreData
GET /talks
POST /talks
GET /talks/2
PUT /talks/2
DELETE /talks/2
![Page 38: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/38.jpg)
Push Notifications
Orbiter framework Helios
!
!Rack PushNotification
Apple APNS
1. Register for PSN2. Receive
Token
3. App sends token
4. Notifies APNS when something happens
5. APNS Sends the
push
![Page 39: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/39.jpg)
Open Source!
helios rack-push-notification
orbiter houston
AFNetworking
![Page 40: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/40.jpg)
Do I need Backend?
What does your app do?!
Number of users?!
What are your goals?
![Page 41: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/41.jpg)
Do I need Backend?
What does your app do?!
Number of users?!
What are your goals?
![Page 42: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/42.jpg)
Other gems
apn_on_rails!
urbanairship!
push_core
![Page 43: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/43.jpg)
“Jabá”
Rubymotion!
Ruby code ObjectiveC code
![Page 44: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/44.jpg)
Helios
![Page 45: Tdc 2014 - Ruby and Mobile apps - KO!](https://reader031.fdocuments.in/reader031/viewer/2022020217/5461ee0aaf79599e2c8b488e/html5/thumbnails/45.jpg)
Thank you! Questions?
ourdailycodes.com hannelita.com