Better HN
topnewbestaskshowjobs
Log inSign up

benjamindc

511 karma · joined Mar 7, 2013 (13y ago) · 38 submissions

UI designer at Stripe.
Submissions

comment 4y ago · link · parent

Thank you, I'm glad you like it! I try to find a good balance between form and function, and create a consistent environment for the customer. The homepage is definitely more "artistic" than the dashboard, for instance, but hopefully they clearly belong to the same brand and give you a similar look and feel.

(For the anecdote and because you mentioned it, it always annoyed me that we had a pretty different visual language at Stripe between the site and the dashboard. I designed Stripe's homepage but not its dashboard, whereas I did both at the same time for Increase. Consistency is really hard to achieve between multiple products as the optimal visual treatment is different for a site and an information-dense UI.)

comment 4y ago · link · parent

Thank you, means a lot :)

comment 8y ago · link · parent

In terms of performance, it outperforms all the animation libraries I’ve tried ( you can compare the stress test linked at the bottom of the page with this version made with GreenSock: http://animateplus.com/examples/stress-test/gsap/ ). In terms of weight and parse time, it’s also the fastest afaict. That being said, it’s not as powerful as GreenSock for example as it mainly focuses on performance and simplicity.

comment 8y ago · link · parent

All the examples use the untranspiled version which is comptabile with the browsers listed here: https://github.com/bendc/animateplus#browser-support

comment 8y ago · link · parent

Spring physics, frame-based callbacks (see the `change()` examples), functions as values for duration, delay and any property you animate, making staggered animations easy to create, etc.

comment 8y ago · link · parent

Cfr. https://github.com/bendc/animateplus#browser-support

7.

2KB JavaScript animation library(github.com ↗)

59 points · by benjamindc · 8y ago · 32 comments

8.

Gain Motion Superpowers with RequestAnimationFrame(medium.com ↗)

1 points · by benjamindc · 9y ago · discuss

9.

Web Components, the React way(medium.com ↗)

1 points · by benjamindc · 9y ago · discuss

10.

Product Design of the Stripe Dashboard for iPhone(medium.com ↗)

84 points · by benjamindc · 11y ago · 11 comments

11.

Exploring the Product Design of the Stripe Dashboard for iPhone(medium.com ↗)

1 points · by benjamindc · 11y ago · discuss

comment 11y ago · link · parent

Yup, you're right!

comment 11y ago · link · parent

Glad you noticed the easter-egg on the logo :p

14.

Stripe: Open Source(stripe.com ↗)

581 points · by benjamindc · 11y ago · 64 comments

comment 11y ago · link · parent

Safari isn't "lagging behind other browsers", it's just implementing different things. In fact, Safari is still the best browser when it comes to everything UI-related (animations, visual effects, …). You might disagree with Apple's priorities, but it doesn't mean other browsers are "better" per se, they're just different.

Safari's release cycle, however, is stupid per se.

16.

Animate Plus: Behind the Scenes (Functional Programming in ES2015)(medium.com ↗)

5 points · by benjamindc · 11y ago · discuss

comment 11y ago · link · parent

Facebook Pop :)

comment 11y ago · link · parent

It's actually an implementation issue and yes, I agree it's unfortunate. The problem is that the video is rotated in 3D in CSS (so we can reuse the same video without the fancy 3D effect on smaller displays since the page is vertically responsive) and unfortunately, the result varies depending on the browser (it looks much better on Safari, for example).

comment 11y ago · link · parent

I've actually created an animation library based on my work for this page: https://github.com/bendc/animateplus

comment 11y ago · link · parent

I find it interesting that, because some design decisions seem odd to you at first sight, you immediately conclude that the reason is a poor understanding of JavaScript. The `toArray` function, for example, is just performance optimization: http://jsperf.com/toarray-slice-call-vs-loop

comment 11y ago · link · parent

It's an IFFE (Immediately-Invoked Function Expression). The goal is to perform the feature test (the availability of Array.from in this case) just once instead of for every function call.

comment 11y ago · link · parent

I guess I should clarify this example. I’m mostly fine with a global * { box-sizing: border-box; }, I’m only opposed to changing the box model randomly. The example illustrates a bad usage where changing the box model to get a full-width element is fundamentally wrong (since it’s the default behavior of block elements anyway).

comment 11y ago · link · parent

You're wrong, the HTML is valid.

comment 11y ago · link · parent

Yup, I guess I should just be a bit less lazy and give a bit more context for each section :)

Some things are just personal preferences and some things are just completely subjective. Overall, though, these advices tend to make front-end code better. The JS part, for example, is largely based on functional programming best practices. Things like immutability, statelessness and the point about JS performance aren't subjective: they'll basically always improve your code's quality.

25.

Some HTML, CSS and ES2015 Best Practices(github.com ↗)

18 points · by benjamindc · 11y ago · 10 comments

comment 11y ago · link · parent

https://stripe.com/bitcoin runs actually super smoothly for me on Firefox 35.

comment 11y ago · link · parent

Thanks! I might actually write a "behind the scenes" post, assuming I find the motivation to do it :p

comment 11y ago · link · parent

Thank you, means a lot :)

comment 11y ago · link · parent

I'm just using a tiny lib that makes things easier: https://github.com/bendc/animate Other than that, it's just vanilla js/css.

comment 11y ago · link · parent

By computing values I meant defining styles based on runtime variables (browser size, localStorage data, …). CSS pre-processors can't do that.
12