iPhone on Rails

1,490 views

Published on

A presentation I gave to #phillyrb on Dec 10th, 2008.

Published in: Technology, News & Politics
  • Be the first to comment

iPhone on Rails

  1. 1. iPhone on Rails Buzzwords Are Fun! Trotter Cashion, PhillyOnRails, 2008
  2. 2. What We’re Covering • Theory • Web • Native
  3. 3. <theory> Gotta make some plans!
  4. 4. My Assumptions • You’re a programmer • You like to make money • People know these two things about you • You also like to “do things right” (People may not know this one)
  5. 5. Typical Conversation • Them - “I’ve got this great idea for an iPhone app!” • You - “orly?” • Them - “Yea! It’ll let you see tv listings!” • You - “Umm... I think you have a website idea”
  6. 6. Your desire to make money is now in direct conflict with your desire to do things right
  7. 7. Your Ammo • You know what *should* be native • You kick ass at web stuff
  8. 8. The Big 4 • Photos • Voice • Graphics • Location
  9. 9. The Little 5 • Multi-touch • Accelerometer • Persistence • Networking • Speed
  10. 10. Web Stuff • Easy • You know it already • Broader overall market
  11. 11. Native Stuff • Wicked cool • Hard • Highly energized *paying* market
  12. 12. Common UI Thinking • Table navigation is king • Simple gestures and touches win
  13. 13. Ideal Rails App • RESTful • Clean code
  14. 14. </theory> It’s web time!
  15. 15. <web> All the fluffy stuff
  16. 16. iUI Is Your Friend • Created by Joe Hewitt with help • http://code.google.com/p/iui/ • Javascript and CSS • DSL for iPhone UI development
  17. 17. Demo Time! Showing off the iUI goodness
  18. 18. Doesn’t Apple Have Something?
  19. 19. Dashcode • Heavier • Looks native • MVC architecture • Pretty badass
  20. 20. Demo Time! Showing off Dashcode
  21. 21. </web> That shit was Easy!
  22. 22. <native> Getting Into The Yucky Stuff
  23. 23. Goodbye Cruel Internet Your Native App is nothing (or a really fun game) if it doesn’t interact with others!
  24. 24. How the Natives Live • XCode • Interface Builder • Compiling • Unit testing (I like google’s toolbox)
  25. 25. Major Differences • You must garbage collect • There’s a lot more typing • The frameworks are *huge* and cover *everything* • No irb :-(
  26. 26. Your Best Friend The Navigation Controller
  27. 27. Your Other Friends • NSURLRequest • NSURLConnection • NSHTTPURLResponse • Touchcode - http://code.google.com/p/touchcode/
  28. 28. Demo Time! Going Native!
  29. 29. </native>
  30. 30. Hot Links • http://developer.apple.com/iphone • http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the- iphone/

×