O'Reilly logo

Programming Google Glass by Eric Redmond

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ChittrChattr

Blogging applications are common on the Web, so that’s what we’ll tackle for the broadest reach. We’ll be converting a mini blogging app called ChittrChattr into Glassware. (In classic web-application form, we drop some vowels from the real words to make our app’s name.)

Blogs are relatively easy to model, and we all understand how they work: you log in and make a post to a blog, and users can read those posts. For an extra bit of fun, ChittrChattr includes a follow feature. A user can choose to follow another’s blog and view a listing of all posts made on all blogs she’s chosen to follow.

The model of our blog software is basic, as you can see in Figure 30, The blog model in UML. A user has a blog, and a blog has many posts. A ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required