Better HN
topnewbestaskshowjobs
Log inSign up

SubFuze

23 karma · joined Jun 12, 2012 (14y ago) · 10 submissions

Submissions

comment 7y ago · link · parent

I disagree- the default use case is still to use the components without overriding. Having a well defined mechanism for changing the component allows for consumers of the components to still get the main benefits of the component and the owners/maintainers have better visibility into what (if any) changes may need to be made to the core components.

A concrete example probably does a better job of explaining how this is used: https://medium.com/@dschnr/better-reusable-react-components-...

Referring to the Uber Freight RadioGroup and Tag Edit overrides from that article (not my article to be clear), those are cases where the vast majority of functionality from the original components satisfied the usage requirements, but a small tweak was needed to get the desired outcome. The override pattern is simply a way of building flexibility into the components and acknowledging that the users of the components may want to change them in ways that were not obvious to the component author. Those two examples may be fairly straightforward, but at what point do you stop with exposing the ability to change things? In our prior component library we saw a number of cases where teams wanted the ability to customize things that were more subtle, ie- changing the html element type on a subcomponent for a very specific purpose. This pattern came from observing the usage of our prior internal component library and talking with many of the internal consumers. It's probably not be a fit for everyone, but it works well for us.

comment 7y ago · link · parent

Even though most people's primary interaction with Uber is through the native apps, there's a ton of web applications built here. The opening line of the linked article is: "At Uber, we have hundreds of internal web applications" Additionally, there are a number of customer facing web apps from a web version of the rides app to Uber for Business to Uber Freight.

comment 7y ago · link · parent

A big part of the goal with the overrides mechanism was to provide usable components out of the box that could optionally be modified if something needed to be changed for a given use case.

You can use the components as is, using props if you're ok with the out of the box style/functionality/etc, without ever touching overrides. The overrides provide a standardized interface to changing the component internals across the entire component library.

That approach may be overkill for simple components that are trivally composable (Card for example), but is incredibly powerful for a component like Datepicker where you may want to change styles or functionality of a deeply nested component without exposing a massive top level props interface.

comment 8y ago · link · parent

https://www.nceo.org/articles/stock-options-alternative-mini... does a decent job explaining it. Essentially, you exercise at the price you were granted the options, but if the value has gone up since then, you're taxed (AMT) on the delta between the exercise price and the current value.

comment 9y ago · link · parent

From the article: "The company, which has raised some $15 billion in equity and debt funding, said it still has $7.2 billion of cash left on hand, about the same as it had at the end of last year."

comment 11y ago · link · parent

I use Gear Player which works quite well: http://www.gearmusicplayer.com/

comment 14y ago · link · parent

I made a similar one but instead of waiting 4 seconds, it makes a new request after it sees a new error response: http://pastebin.com/raw.php?i=XWwm8Sdv

comment 14y ago · link · parent

Not only new incognito windows, but you have to close all incognito windows you have open before opening a new one.

comment 14y ago · link · parent

Quick! Someone register http://ihave36dollars.com/

comment 14y ago · link · parent

If you ever really developed a time machine, you could go back in time and either pay off (with money made from placing bets on events you know the outcome of) or in some other way prevent the original filer from submitting his claim.