More Related Content
Similar to Facebook App in Scheme Shibuya.Lisp tt#7 2011/10/22
Similar to Facebook App in Scheme Shibuya.Lisp tt#7 2011/10/22(20)
Facebook App in Scheme Shibuya.Lisp tt#7 2011/10/22
- 1. Facebook App
in Scheme
Higepon
shibuya.lisp Tech Talk #7
2011 10 22
- 2. Higepon
• @higepon
• Mona OS
• http://www.monaos.org
• Mosh Scheme
• http://mosh.monaos.org
2011 10 22
- 5. http://lovamimi .com/
• Integrated with Facebook
• ja/en
• PC/iPhone/Android
• Written in Scheme
2011 10 22
- 10. Facebook App?
• Facebook Graph API
• Social Graph Data
2011 10 22
- 11. Facebook App?
• Facebook Graph API
• Social Graph Data
2011 10 22
- 14. Graph API
• Friends
• Name, Age, Phone number, Photo, Birthday
• Post, Likes, Checkin, Online Presence
• Work History, Message
• Offline Access, Publish Stream
2011 10 22
- 15. Wrote in Scheme
•
• 729 lines
• Mosh has facebook/cgi/template library
• 4 hours + coke = First version
• MySQL / Apache
2011 10 22
- 18. S-Exp
• Graph API returns JSON
• Not human readable!
• From JSON to S-Exp
• S-Exp is much easier to read and use
2011 10 22
- 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. Scheme way
• (call-with-cgi ...)
• (call-with-connection ...)
• i18n
• (parameterize ([lang ...])
2011 10 22
- 21. Summary
• Write your Facebook App in Scheme!
• Use Mosh
• facebook/cgi/template libraries
2011 10 22