Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Crafthouse 002 - Designers Can Code

Simon Rand
November 20, 2012

Crafthouse 002 - Designers Can Code

..and coders can design.

Simon Rand

November 20, 2012
Tweet

More Decks by Simon Rand

Other Decks in Programming

Transcript

  1. I GOT WORSE AT DESIGN I GOT BETTER AT CODE*

    * or my other talk: How Ruby on Rails got me back coding
  2. define([ 'date', 'helpers', 'base/module', 'users/module' ], function(date, helpers, base, user)

    { 'use strict'; var Model = base.Model.extend({ initialize: function() { base.Model.prototype.initialize.call(this); this.set('user', new user.Model()); }, parse: function(response, xhr) { response['event-filters'] = new OptionsCollection(response['event-filters']); response['site-menus'] = new OptionsCollection(response['site-menus']); response['event-filters'].get('event_start_filter').get('options').each(function(option) { var after = Date.parse(option.attributes.criteria.after); var afterIsToday = after.toDateString() == (new Date()).toDateString(); option.attributes.attributes.title = afterIsToday ? 'Today': after.toLocaleDateString(); option.attributes.text = afterIsToday ? 'Today': after.toLocaleDateString(); option.attributes.criteria.after = after.getTime() / 1000; option.attributes.criteria.before = Date.parse(option.attributes.criteria.before).getTime() / 1000; }); return response; }, url: function() { return helpers.urlFor('/application/', { mock: true }); } }); var OptionsCollection = base.Collection.extend({ model: base.Model.extend({ relations: [{ key: 'options', relatedModel: base.Model.extend({}), type: Backbone.HasMany }] }) }); return Model; }); —
  3. WHAT DO YOU WANT TO DO? FETCH DATA FROM A

    DB MAKE SOMETHING MOVE OUTPUT SOMETHING BUILD YOUR DESIGN MAKE SOMETHING FASTER MANIPULATE USER INPUT CREATE SOMETHING YOURSELF
  4. YOU SHOULD BE JEALOUS BUT SO ARE THEY* * possibly

    because they want rid of you, but can’t do without you
  5. BEING ABLE TO UNDERSTAND THEM WILL MAKE THEM LIKE YOU*

    * not guaranteed, and probably only a little bit