HN user

joetyson

538 karma

[ my public key: https://keybase.io/joetyson; my proof: https://keybase.io/joetyson/sigs/r80xTlEbV1NTH_pYmokWK219qmAc6R7AkxdwpI5zqRo ]

Posts22
Comments10
View on HN
courtyard.io 1mo ago

From a Slack link to production in under 48 hours: cloning Shopify's "Quick"

joetyson
2pts0
eng.uber.com 6y ago

Open Sourcing Manifold, a Visual Debugging Tool for Machine Learning

joetyson
3pts0
link.medium.com 7y ago

Using Machine Learning to help us communicate better

joetyson
2pts0
www.eff.org 11y ago

Stupid Patent of the Month: Who Wants to Buy Teamwork from Penn State?

joetyson
8pts0
www.isoncampaign.org 12y ago

Schrödinger's Comet

joetyson
2pts0
edudemic.com 14y ago

How to cite a tweet (MLA)

joetyson
15pts3
techcrunch.com 14y ago

Andreessen Horowitz Joins The Start Fund To Seed YC Companies

joetyson
123pts49
mashable.com 14y ago

IPhone App Helps You Discover Upcoming Movies (YCS11)

joetyson
46pts34
mashable.com 14y ago

Facebook To Launch Music Platform With Spotify, MOG & Rdio as Partners

joetyson
6pts0
morepypy.blogspot.com 14y ago

PyPy Status: Wrapping C++ Libraries with Reflection

joetyson
3pts0
flamingcow.dilian.org 14y ago

Database best practices for future scalability

joetyson
9pts0
googleappengine.blogspot.com 15y ago

App Engine 1.5.2 SDK Released

joetyson
7pts0
keepitfresh.frid.ge 15y ago

Fridge is Joining Google+ Team

joetyson
173pts67
chronicle.com 15y ago

Professors Consider Classroom Uses for Google Plus

joetyson
10pts2
flamingcow.dilian.org 15y ago

Converting subselects to joins

joetyson
6pts0
thenextweb.com 15y ago

Google is quietly testing Google+ for Domains

joetyson
95pts29
googleappengine.blogspot.com 15y ago

AppEngine 1.5.1 Release

joetyson
26pts3
www.quora.com 15y ago

Quora Tech Talk - Webnode2 and LiveNode

joetyson
11pts1
social.cs.uiuc.edu 15y ago

YouPivot: Improving Recall with Contextual Search

joetyson
2pts0
groups.google.com 15y ago

A new generation of Google MySQL tools

joetyson
5pts0
itunes.apple.com 15y ago

Google Latitude in the U.S. App Store

joetyson
8pts0
partlysean.com 15y ago

OS X UI with CSS 3

joetyson
2pts0

There isn't really a mapping between backbones models and protorpc. Backbone.js assumes the model layer is RESTful where protorpc assumes you will make method calls, each via a POST call.

I'm interested in what a model layer would look like using protorpc. One idea is to take a similar path of abstraction as the underlying appengine datastore api does: use protocol buffers to express an "entity". So you might have:

    { 
      entity_type: 'Book',
      entity_fields: [ 
        { 
          field_type: int,
          field_name: 'title',
          required: true
        }
      ]
    }
This would be a proto definition called, "Entity". From here you could build procedure calls that send entities for doing common routines, such as updates, or deletes. If you can make a structure like this work, you can build an api with javascript which hides the protobufs from you all together.. When you call Model.get('Book').create({title: 'My book'}), it constructs the Entity protobuf and calls the remote call for creating a new entity.

Just an idea! Also - protorpc is in fresh development, so it's a good idea to join the discussion group and make suggestions: https://groups.google.com/forum/#!forum/google-protorpc-disc...

I don't see it mentioned very often, but google's closure-library has some really phenomenal patterns for building maintainable javascript. Its worth checking out Michael Bolin's book, Closure: The Definitive Guide, which goes in depth of the Component and Control frameworks.

I've been using the library for 2 or 3 years now, and I am always surprised to see it has such a small community.

[dead] 15 years ago

You can also create a 'bind' that returns a function that when called applies the context you desire.

  function bind(fn, selfObj) {
     return function() {
        return fn.apply(selfObj || window);
     };
  }

  callback = bind(function(){ alert(this.hello); }, this);

I don't think the intent is to really be a reference for javascript methods, at least for now. Apple releases "Coding Guidelines" as more of a style guide and suggested patterns.

From the toolkits: "JavaScript toolkits enhance productivity but often carry a significant memory footprint that may slow down your JavaScript application. When using a toolkit, try to reduce the toolkit’s footprint to just the APIs that you use in your application."

This somewhat hints to me that Apple will come out with a framework that allows more modular includes or compiles similar to closures system. This is somewhat a hit to jQuery's "all-in-one" setup.