Skip to content

Instantly share code, notes, and snippets.

@joshsmith
joshsmith / gist:1431555
Created December 4, 2011 22:53 — forked from Marak/gist:1431484
How should I be doing the callback?
user.save().on('success', function(user) {
callback(null, user);
}).on('failure', function(error) {
callback(user);
});

Usability Checklist

User Experience

  • Personalized features. Currency, language, country specific deals, taxes, or delivery options are changed based on user's location.
  • Registering provides value to users. For example a "Free Trial" button communicates a clear benefit, but a "Register" button doesn't. Unnecessary registration is avoided.
  • Transparent pricing. Prices are clearly displayed. There are no hidden costs or surprises in the terms.
  • Pages don't refresh automatically. Users can get confused if new content is uploaded suddenly, for example on news websites.
  • Sample content. For example there is a sample newsletter next to a newsletter sign up form.

What did I get done yesterday?

  • Code spike for product image cropping
  • Moving reissued-api to codeship
  • Design changes for product editing/uploading

What's left for this week and what's my plan for today?

  • Add a missing image
  • Add processing state for images
@joshsmith
joshsmith / addon.md
Last active March 9, 2017 01:59 — forked from begedin/addon.md

Including the library

Sadly, elements is not a separate library.

It's just a part of the still in development Stripe.js v3, so the only way to include it is to include the whole script in the page somewhere. There is no bower library, no amd/require/commonjs package of any sort.

This is the only way to include it: