News for hackers. Stuff that matters.

benjamindc

Re:Increase: Banking API on Tuesday September 13, 2022 @04:52PM (#32830039)
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.)

Re:Increase: Banking API on Tuesday September 13, 2022 @04:34PM (#32829856)
Thank you, means a lot :)
Re:2KB JavaScript animation library on Sunday December 03, 2017 @12:06PM (#15838394)
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.
Re:2KB JavaScript animation library on Sunday December 03, 2017 @11:56AM (#15838356)
All the examples use the untranspiled version which is comptabile with the browsers listed here: https://github.com/bendc/animateplus#browser-support
Re:2KB JavaScript animation library on Sunday December 03, 2017 @11:52AM (#15838340)
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.
Re:Stripe: Open Source on Thursday September 03, 2015 @05:01PM (#10167511)
Yup, you're right!
Re:Stripe: Open Source on Thursday September 03, 2015 @04:28PM (#10167336)
Glad you noticed the easter-egg on the logo :p
Re:Safari is the new IE on Tuesday June 30, 2015 @09:20AM (#9804959)
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.

Re:Stripe Dashboard for iPhone on Tuesday June 09, 2015 @02:20PM (#9687630)
Facebook Pop :)
Re:Stripe Dashboard for iPhone on Tuesday June 09, 2015 @01:47PM (#9687364)
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).
Re:Stripe Dashboard for iPhone on Tuesday June 09, 2015 @12:58PM (#9687035)
I've actually created an animation library based on my work for this page: https://github.com/bendc/animateplus
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
Re:Some HTML, CSS and ES2015 Best Practices on Wednesday February 25, 2015 @05:34AM (#9106138)
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.
Re:Some HTML, CSS and ES2015 Best Practices on Wednesday February 25, 2015 @05:02AM (#9106073)
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).
Re:Some HTML, CSS and ES2015 Best Practices on Wednesday February 25, 2015 @04:44AM (#9106036)
You're wrong, the HTML is valid.
Re:Some HTML, CSS and ES2015 Best Practices on Wednesday February 25, 2015 @04:33AM (#9106001)
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.

Re:Stripe: Bitcoin on Thursday February 19, 2015 @03:27PM (#9076751)
https://stripe.com/bitcoin runs actually super smoothly for me on Firefox 35.
Re:Stripe: Bitcoin on Thursday February 19, 2015 @03:24PM (#9076735)
Thanks! I might actually write a "behind the scenes" post, assuming I find the motivation to do it :p
Re:Stripe: Bitcoin on Thursday February 19, 2015 @03:23PM (#9076731)
Thank you, means a lot :)
Re:Stripe: Bitcoin on Thursday February 19, 2015 @01:55PM (#9076039)
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.
Re:Write stylesheets in JavaScript on Wednesday February 04, 2015 @02:08AM (#8995689)
By computing values I meant defining styles based on runtime variables (browser size, localStorage data, …). CSS pre-processors can't do that.

Older »