HNHacker News
TopNewBestAskShowJobs

ssorallen

452 karma · joined February 24, 2011

https://github.com/ssorallen
submissionscomments
ssorallen··on Pinterest lets employees exercise options 7 years after leaving
> Exercise and sale can occur in one fell swoop.

You lose the reduced taxes of long term capital gains if you wait, for whatever reason, to exercise and sell the same day. You have to hold the shares for 1 year + 1 day from the day you exercise for the subsequent sale to be taxed as long term capital gains. For even the top tax bracket, the difference is 20% in taxes.

ssorallen··on Pinterest lets employees exercise options 7 years after leaving
What restrictions do you mean? ISOs are better for the employee because any gain on exercise is not taxed as regular income. If the value is high enough the employee might be subject to alternative minimum tax (AMT), but the possibility of paying no tax is a benefit over NSOs whose gain is taxed as regular income and is subject to tax withholding.
ssorallen··on Pinterest lets employees exercise options 7 years after leaving
They automatically convert from ISOs to NSOs according to Sam Altman's post[1]:

> There are some tricky issues around this—for example, the options will automatically convert from ISOs to NSOs 3 months after employment terminates (if applicable) but it’s still far better than just losing the assets.

[1] http://blog.samaltman.com/employee-equity

ssorallen··on A New Way to Reach Mars Safely, Anytime and on the Cheap
Elon Musk has said from the beginning of SpaceX that trips to Mars would have to return as well. It's not because of the humans but because the cost of producing the space ships will be so large that it's not feasible to shoot them to Mars once and leave them there; they have to be reusable.

> The principle behind all of its vehicles is total re-usability; every single system must be able to be serviced and pressed back into operation. This is to cut down on the already astronomical cost of space flight (pun intended), making it more affordable for private companies to conduct missions into the heavens. The company’s main goal is to eliminate the equipment cost for space travel, leaving fuel as the only financial burden.

http://www.extremetech.com/extreme/122923-spacex-ceo-claims-...

ssorallen··on React v0.12
Their earlier blog post gives reasons for each of the API changes they made:

https://facebook.github.io/react/blog/2014/10/14/introducing...

ssorallen··on Hacker News API
Nicely done! Binding every HN story as an object would have been the simplest approach, that makes sense.

Is the source available somewhere?

ssorallen··on Hacker News API
The Firebase JavaScript library makes make this impressively straightforward to use. I built a clone using React.js and Firebase's library. Because v0 of the API requires a request for each news story, it's not possible to use Firebase's React mixin yet.

https://github.com/ssorallen/hackernews-react

ssorallen··on React v0.11
Our UI for Marathon[1], a framework on top of Apache Mesos, is written in React and uses Backbone models. It uses Require JS for modules and compiling the source into a single file for distribution. The JS root is in the assets directory[2].

There are a few guidelines we have adopted through trial and error so far:

* Use React.addons.classSet[3] liberally. Class name generation becomes simpler for future developers to read.

* Define propTypes[4] for every component. Debugging becomes easier because React gives you informative warnings about mismatched propTypes.

[1] https://github.com/mesosphere/marathon

[2] https://github.com/mesosphere/marathon/tree/master/src/main/...

[3] https://facebook.github.io/react/docs/class-name-manipulatio...

[4] https://facebook.github.io/react/docs/reusable-components.ht...

ssorallen··on Googlebot's recent improvements might revolutionize web development
If you serve a rendered page of HTML with CSS links, browsers can progressively render the page as it is downloaded. Users will notice that on the first page load, particularly on higher latency connections where round trips for resources like JavaScript files are expensive.
ssorallen··on Googlebot's recent improvements might revolutionize web development
The lifting can be heavy for mobile devices with slow CPUs and limited battery life unlike the servers running your site. Also if your server renders the site and some of the pages are public, the server can cache the HTML and let the web server serve cached HTML rather than render the page in the web framework for each request.
ssorallen··on Googlebot's recent improvements might revolutionize web development
> Single page apps are not a new concept, but up until now they were typically a bad solution for public websites that depend on hits from search engines

If your users (I'm talking humans, not bots) have to download a mountain of JavaScript and execute it before seeing any content, your site is slower than it could be for everyone. We should stop saying that "single page apps", i.e. sites rendered in JavaScript in a browser, are bad because they can't be scraped by a bot. They are bad for EVERYONE who wants to view the site because of the network and CPU time it takes to download the assets and render the site in the browser.

ssorallen··on Progress Button Styles
I don't do this for when JS is disabled; I do this because networks are unreliable, especially cellular ones. JS on websites is growing in number of files and in number of bytes. If your JS is at the bottom of the page and has to download and execute before the page is usable, users on cellular networks in particular can be looking at an unusable page for a significant number of seconds.
ssorallen··on Update on Julie Horvath's Departure
> Would anyone be on leave? Probably not.

Again, that is speculation. "What ifs" are not useful here.

As "news" outlets, I expect both sites to corroborate stories before posting them. If they don't, they are effectively tabloids. Posting allegations like this is the definition of tabloid journalism.

There are too many people involved in this story for me to believe that zero of them were reachable for comment. TechCrunch only vaguely mentions "awaiting comment from GitHub", which could mean anything.

I do think it is irresponsible to publish such a story without any corroboration because it implicates several people directly and an entire company's work environment with nothing more than one person's word.

The whole story could be true, but the fact is no one knows; TechCrunch and Valley Wag certainly don't.

ssorallen··on Update on Julie Horvath's Departure
Yes. Comments on the original TechCrunch article were equally vindicating even though that article offered no actual evidence. It's unfortunate TechCrunch and Valley Wag posted the story without first corroborating at least some piece of it.

GitHub's response neither confirms nor denies any part of the story. It does say the founder's wife will no longer be allowed in the office, but that is not an admission of wrongdoing nor of her ever having been in the office.

Edit: The only thing this response proves is that GitHub is taking these allegations seriously, which hopefully means there will be more information after they have time to investigate. Try not to jump to the many other conclusions already posted in HN comments.

ssorallen··on Update on Julie Horvath's Departure
> pretty much confirms

The post only states that the founder's wife will no longer be permitted in the office. It neither confirms nor denies anything. This post is cleverly crafted but is not a confirmation of any of Horvath's claims.

ssorallen··on Julie Ann Horvath Describes Sexism and Intimidation Behind Her GitHub Exit
> We are awaiting comment from GitHub regarding these allegations, and GitHub says it is looking into it.

> We are waiting for comment from GitHub about these allegations.

> GitHub says it is investigating the matter: “We’re looking into this.”

This post might be entirely true, but for now it is an expanded personal blog post posing as news. I will hold judgement on both parties until there is evidence, but I doubt most readers skimming headlines will.

It is unfortunate this was posted before TechCrunch or any other "news" site got corroboration from other parties or evidence of any of it. The post offers no evidence outside what was created by Ms. Horvath herself.

ssorallen··on Iconic – An Icon System Designed for the Modern Web
Requiring JavaScript to view icons seems like a major downside compared to competitors that are plain font files like Font Awesome. Now the client has to download and execute the JS before seeing what might be important UI cues.
ssorallen··on Using Bootstrap the Semantic Way
Nicolas Gallagher addresses and deflects this point specifically with real numbers: http://nicolasgallagher.com/about-html-semantics-front-end-a... The link came from an earlier poster. Once you compress the HTML, the savings are insignificant compared to the likely 10s or 100s of kilobytes of images and JavaScript on a modern web page. Given how tiny the savings are, there are other places more worth your time to save bytes.
ssorallen··on Using Bootstrap the Semantic Way
Saying "do everything properly" is an opinion too. Why is semantic markup more "proper" than Bootstrap's <div> and class names? The idea that semantic markup is a beautiful paradise is unsubstantiated. If you want non-humans to understand your markup you can use microformats, http://schema.org/ markup, or another form of microdata. Making "semantic" class names doesn't change how your users or search engines parse your content.
ssorallen··on React, JSX, and CoffeeScript
I still have to do a mental mapping between this and what will ultimately be generated: HTML. Since JSX is XHTML, the mapping is minimal. This also moves in the direction of web components, which is getting a lot of attention from the Chrome team lately.

  <div>
    <RadComponent onClick={this.handleClick} model={this.props.thing} />
  </div>
ssorallen··on React, JSX, and CoffeeScript
Enyo JS (http://enyojs.com/), which powered the later versions of Palm/HP/LG webOS, expresses its components in JSON as well. Having developed both for webOS and now in React/JSX, I can say JSX is the more easily understood of the two. JSX does enforce small oddities like camel case attributes and always-closed tags since it is XML in the end, but it's closer to HTML and that is reason enough for it to win for me.
ssorallen··on React: Finally, a great server/client web stack
Thanks for the demo link; I hadn't heard of HTMLBars.

It makes for a good demo I suppose, but I prefer React in a couple places: there's no separate template, style construction is done with an object and not a string (constructing that style string for HTMLBars seems error prone), and the connection between the values on the Ember object and how they will be used in the DOM is guessed only by naming convention. You could use `this.set('hotdogs', count % 255)` and reference 'hotdogs' in your template in place of 'color'.

ssorallen··on React: Finally, a great server/client web stack
The big difference is that Handlebars always produces strings that your browser has to parse as HTML. Handlebars also doesn't know how to mutate between states, meaning if you add a class 10 levels deep in the template the best you can do is re-render the entire thing.

JSX + React produce functions that return React's representation of the DOM, their "virtual DOM", and React knows how to make small mutations based on state. If a change in state only needs to add a class 10 levels deep in the hierarchy, that is the only change that happens in the real DOM; it doesn't have to re-render the entire template.

ssorallen··on React: Finally, a great server/client web stack
Yes, that's the approach I took in our Marathon project (https://github.com/mesosphere/marathon/tree/master/src/main/...). The view is React, the models are Backbone, and I intend to use Backbone's Router as well. Backbone.View is never used.
ssorallen··on We've Open-sourced Rendr
Indeed it does. Thanks for the heads up, we'll change that.
ssorallen··on Configuring Sublime Text 2
They have a nice guide how to set it up too: http://www.sublimetext.com/docs/2/osx_command_line.html The one-step setup is:

  ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
ssorallen··on Upgrading Airbnb from Rails 2.3 to Rails 3.0
> Why are you blogging about upgrading to Rails 3.0.x when the current stable Rails has been 3.1.x for over 4 months?

Like mentioned in another comment, upgrading from 2.3.x to 3.0.x is a feat in itself. Upgrading from 2.3 to 3.1 might be doable on a smaller project, but with code written in several versions of Rails we decided to go 2.3 > 3.0 > 3.1.

> Also, shouldn't these simple bugs be quickly and fully discovered by automated tests?

There was plenty of HTML inside Ruby statements in our templates that started being escaped. Something like:

<p><% (price > 10) ? '<strong>Expensive!</strong>' : 'Cheap' %></p>

while ugly was not wrong. This is a very simple version of some of the problems we saw, and there were typically several per template. Writing tests that check the HTML output of template files would be unmaintainable.

> If the upgrade is done on a branch, why must the work be completed during the weekend?

To avoid a big merge. We changed a lot of files and didn't want to have to re-check our work after letting Git auto-merge our changes.

← PreviousPage 3 of 3