Skip to content

Instantly share code, notes, and snippets.

View ssriera's full-sized avatar

ssriera

View GitHub Profile
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
const {
Component
} = Ember;
export default Component.extend({
classNames: ['alert-container'],
attributeBindings: [
@pixelhandler
pixelhandler / outside-in-tdd-with-ember.md
Last active April 11, 2017 14:30
Outside in TDD with Ember

Outside in TDD with Ember

A “double-loop” TDD process, write a functional test first and then the unit tests.

Although my previous experience had certainly opened my mind to the possible benefits of automated testing, I still dragged my feet at every stage. “I mean, testing in general might be a good idea, but really? All these tests? Some of them seem like a total waste of time… What? Functional tests as well as unit tests? Come on, that’s overdoing it! And this TDD test/minimal-code-change/test cycle? This is just silly! We don’t need all these baby steps! Come on, we can see what the right answer is, why don’t we just skip to the end?”

Believe me, I second-guessed every rule, I suggested every shortcut, I demanded justifications for every seemingly pointless aspect of TDD, and I came out seeing the wisdom of it all. I’ve lost count of the number of times I’ve thought “Thanks, tests”, as a functional test uncovers a regression we would never have predicted, or a unit test saves me from making a rea

This?
@staltz
staltz / introrx.md
Last active December 1, 2025 11:31
The introduction to Reactive Programming you've been missing