- Optimize for programmer happiness
- Convention over configuration
- The menu is omakase
- No one paradigm
- Exalt beautiful code
- Provide sharp knives
- Value integrated systems
- Stability without Stagnation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@glimmer/component'; | |
export default class extends Component { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// observed popover is interested in changes to `width` and `height` relative to the | |
// page's origin, and normalized by rounding them to the nearest integer. | |
let observedPopover = new RectObserver( | |
popoverElement, | |
{ | |
width: Math.round, | |
height: Math.round | |
}, | |
{ | |
relativeTo: 'origin' // not viewport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
value: 'Hello world', | |
inputted(e) { | |
Ember.set(this, 'value', e.target.value); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// default tagName is 'div' | |
// The problem | |
function createElement(tagName: string): Element { | |
// very broken | |
return document.createElement(tagName || 'div'); | |
} | |
// you might want to use defaults |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { unknown } from 'ts-std'; | |
import { ErrorMessage } from "monad-test"; | |
export type ErrorPath = ReadonlyArray<string>; | |
export interface ErrorMessage { | |
key: string; | |
args: unknown; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import FirebaseAdapter from 'emberfire/adapters/firebase'; | |
export default FirebaseAdapter.extend({ | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
Response to The Birthering of the Democrats
Let us accept from the outset that partisan Democrats and I will never agree on the substance of the particular claims they have made about the election. Let’s simply try to find common ground on what they’re alleging. Conventional post-election debate among Democrats has involved…
Freddie claims that "conventional post-election debate among Democrats" is made up of a number of characteristics. I don't think the debate has been nearly as homogenous as he implies, and the bullets are full of misleading hyperbole that further amps up the emotion of the piece.