HNHacker News
TopNewBestAskShowJobs

robrichard

59 karma · joined April 27, 2013

submissionscomments
robrichard··on Researchers invent 100% biodegradable 'barley plastic'
Here in New Jersey, paper bags were banned
robrichard··on California's plastic bag ban is failing
And New Jersey banned paper bags!
robrichard··on Simplify Gmail: Bringing the Simplicity of Google Inbox to Gmail
What I miss most is not the auto-bundling, but writing rules to tag emails with a label and the viewing (and archiving) everything that matched as a bundle.

Seems like all the backend that’s needed is built into gmail, what’s needed on the client is knowing which labels to display as a bundle.

robrichard··on Simplify Gmail: Bringing the Simplicity of Google Inbox to Gmail
Is there any email client that supports bundles like Inbox did?
robrichard··on ISO-8601, YYYY, yyyy, and why your year may be wrong
Formatting dates with a format string is an anti-pattern. Format strings are too easy to get wrong and don't scale when you need to account for different locales. JavaScript's Intl functions do this correctly by providing an api that accepts a locale and options like weekday: narrow|short|long, year: numeric|2-digit, etc.
robrichard··on Chemists discover how blue light speeds blindness
On the AppleTV go to Settings > General > Accessibility > Display Accommodations > Light Sensitivity.

Then you can assign it to the Accessibility Shortcut and turn it on or off by triple pressing the Menu button.

robrichard··on How Facebook's Instagram Acquisition Led to the Open Sourcing of React.js
This was a great podcast! I would love a follow up episode where you get into more details on that and the other topics there weren't time for.
robrichard··on Overview of JavaScript ES6 features
const only guards against changing the reference that it was assigned to. This won't break because info is still assigned to the same array. It doesn't matter that the array was mutated.
robrichard··on What if we had a great standard library in JavaScript?
I think this article ignores that JavaScript's standard library has been growing in pace with new language features. The author mentions underscore as a good place to draw inspiration, but a ton of it's functionality has already been added to the language. forEach, map, reduce, filter, every, some, and others were added in ES5. ES6 brings find, includes, isArray, Object.assign and others. Promises were also added, make a library for them now unnecessary. Many of the current proposals aren't just for syntax additions to language, but to implement more standard library type of stuff (including string padding).
robrichard··on Delivering Octicons with SVG
Does this cause the HTML sent over the wire to be bloated, i.e. the svg for the same icon could be repeated multiple times on the same page?