Facebook App in Scheme Shibuya.Lisp tt#7 2011/10/22

3,404 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
3,404
On SlideShare
0
From Embeds
0
Number of Embeds
1,636
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Facebook App in Scheme Shibuya.Lisp tt#7 2011/10/22

  1. 1. Facebook App in Scheme Higepon shibuya.lisp Tech Talk #72011 10 22
  2. 2. Higepon • @higepon • Mona OS • http://www.monaos.org • Mosh Scheme • http://mosh.monaos.org2011 10 22
  3. 3. Facbook App2011 10 22
  4. 4. Facbook App2011 10 22
  5. 5. http://lovamimi .com/ • Integrated with Facebook • ja/en • PC/iPhone/Android • Written in Scheme2011 10 22
  6. 6. Popular secrets •2011 10 22
  7. 7. Popular secrets •2011 10 22
  8. 8. Popular secrets •2011 10 22
  9. 9. Popular secrets • facebook2011 10 22
  10. 10. Facebook App? • Facebook Graph API • Social Graph Data2011 10 22
  11. 11. Facebook App? • Facebook Graph API • Social Graph Data2011 10 22
  12. 12. 2011 10 22
  13. 13. 2011 10 22
  14. 14. Graph API • Friends • Name, Age, Phone number, Photo, Birthday • Post, Likes, Checkin, Online Presence • Work History, Message • Offline Access, Publish Stream2011 10 22
  15. 15. Wrote in Scheme • • 729 lines • Mosh has facebook/cgi/template library • 4 hours + coke = First version • MySQL / Apache2011 10 22
  16. 16. Advantage of Scheme / Lisp2011 10 22
  17. 17. 2011 10 22
  18. 18. S-Exp • Graph API returns JSON • Not human readable! • From JSON to S-Exp • S-Exp is much easier to read and use2011 10 22
  19. 19. Don’t use S-Exp for • Data Storage • MySQL is much better • Template • Can’t copy and paste • Not everyone can read/write.2011 10 22
  20. 20. Scheme way • (call-with-cgi ...) • (call-with-connection ...) • i18n • (parameterize ([lang ...])2011 10 22
  21. 21. Summary • Write your Facebook App in Scheme! • Use Mosh • facebook/cgi/template libraries2011 10 22

×