Skip to content

Instantly share code, notes, and snippets.

View justinbmeyer's full-sized avatar

Justin Meyer justinbmeyer

View GitHub Profile
@justinbmeyer
justinbmeyer / canjs-infrastrucutre.md
Last active August 29, 2015 13:56
CanJS Infrastructure Improvements

CanJS makes it easy to make better apps, faster. But, what about making a better CanJS faster?

Two weeks ago, the CanJS core team spent time improving our CanJS dev/test/build/doc infrastructure to make it easier to add new features faster.

Backwards Compatibility

One of the most difficult challenges in making improvements to a library is dealing with breaking changes. We want people using CanJS and to keep using it.

@justinbmeyer
justinbmeyer / mmy.html
Created March 26, 2014 05:04
Make Model Year Example
<div id="demo">
<div id='out'></div>
<script id="app" type="text/stache">
<my-mmy>
{{#if makes.isResolved}}
<select can-value="makeId">
{{^makeId}}
<option>Select a Make</option>
{{/makeId}}
{{#each makes}}
(function(privateThings){
function Private() {
this.data = 'is private';
}
Private.prototype.somePrivateFunction = function() {
this.foo = 'bar';
};
@justinbmeyer
justinbmeyer / rebuild.md
Last active August 29, 2015 14:02
Rebuilding Society
@justinbmeyer
justinbmeyer / service.md
Last active August 29, 2015 14:03
Service Endpoint Example Documentation

Task

A task represents something to do. The task's service can CRUD tasks. Tasks can belong to other tasks and a single owner. Tasks have a belongs to and has many relationship with assignees.

create

Creates a task in the database.

@justinbmeyer
justinbmeyer / understanding.md
Last active August 29, 2015 14:04
Understanding

Ryan, Thanks for your patience. I'm not trying to be willfully ignorant, but I'm still not sure what you are trying to say exactly. Twitter is the worst except for everything that's come before it. Let me try to break down your last tweet:

its not for lib authors who want to depend on other libs that aren't UMD or export to everything, that's my entire point.

What is "its"? I'm assuming you were referring to my previous tweet: "interop is possible for lib authors". So you mean:

Interop is not possible for lib authors who want to depend on other libs that:

  • are not umd, or
  • do not export to everything
@justinbmeyer
justinbmeyer / dot.js
Last active August 29, 2015 14:05
DOT and NEW operator
var Person = function(n) {ame) {
this.name = name;
}
Person.prototype.isPerson = true;
var person = new Person('Smith');
var DOT = function(obj, prop) {
if( obj.hasOwnProperty(prop) ) {
return obj[prop];
@justinbmeyer
justinbmeyer / promise_queue.js
Last active August 29, 2015 14:07
promise_queue.js
var promiseLock = (function(){
return function(func){
};
})();
@justinbmeyer
justinbmeyer / dot.js
Last active August 29, 2015 14:07
DOT code
var Person = function(name) {
this.name = name;
}
Person.prototype.isPerson = true;
var person = new Person('Smith');
DOT(person, 'name'); //person.name
DOT(person, 'isPerson'); //person.isPerson