“[…] The reason I built Handlebars in the
first place wasn't an attempt to create a
"logicless" template engine. I build
Handlebars so that I could start from zero
and build up syntactic structures that would
support data binding from the get-go.”
Yehuda Katz
ember new my-beautiful-app
cd my-beautiful-app
ember install ember-moment
ember generate route index
ember generate component my-stuff
ember test
ember build
ember deploy
ember-cli
A functional relationship is a relationship in
which the value of one variable varies with
changes in the values of a second variable.
Slide 26
Slide 26 text
A relationship is considered functional
when there is respect, accountability and
resilience. A functional relationship offers
an emotionally safe environment for the
people involved and respects privacy of
space.
Slide 27
Slide 27 text
Functional Paradigms
Slide 28
Slide 28 text
"If someone says to you that JavaScript is
a functional language, slap him in the face.”
Garrett Smith
Slide 29
Slide 29 text
• data driven architecture
• immutable data
• pure functions/components
• @@iterator / transducers
• type systems
Slide 30
Slide 30 text
Immutable.js
bower install immutable
Slide 31
Slide 31 text
// app/helpers/get-in.js
import Ember from 'ember';
const { makeBoundHelper } = Ember.HTMLBars;
export default makeBoundHelper(function([scope, path]) {
return scope.getIn(path.split('.'));
});
Transducers are composable algorithmic
transformations. They are independent
from the context of their input and output
sources and specify only the essence of
the transformation in terms of an individual
element.