On Github ghempton / ember-libs-preso
Created by Gordon L. Hempton / @ghempton
Larry Wall, creator of Perl
Libraries enable laziness.
What is the first thing you do when implementing a general feature in a RoR app? Google for a gem. The Ember.js ecosystem is not quite there yet. Google search results in jquery plugins.Any day now developing apps for the browser is going to feel like big boy programming.
— Trek Glowacki (@trek) February 25, 2014Prime candidates for libraries.
CODE: (tag: 1-componentize) Open existing project with contact form input. Demonstrate componentizing label + input.How do you give components to other people?
CODE (tag: 2-librarification) Put code into file in header. Test different methods of packaging * in Ember Namespace * in custom namespace * manually put into app's namespace in app.jsContainer resolution allows for easy customization.
CODE: (tag: 4-customization) Customize the input in the applicationAside: Technique used by Ember-Data and EPF:
App.PostSerializer = DS.RESTSerializer.extend({});
Use a helper instead of component.
CODE: (tag: 5-helperization) move `input-for` component to a helperGet crazy, use a custom type.
CODE: (tag: 6-typification) Create new input container type. Create validators.