Skip to content

Instantly share code, notes, and snippets.

View imcrthy's full-sized avatar

Ivan McCarthy imcrthy

View GitHub Profile

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@imcrthy
imcrthy / try.md
Created December 10, 2016 04:08 — forked from WebReflection/try.md
Move away deoptimized try/catch

Accordingly to this Writing efficient JavaScript post, I wonder if the following utility could anyhow help to improve performance without removing entirely the ability to try/catch

const Try = (fn) => {
  let e, attempt = {
    catch: (fn) => {
      if (e) fn(e);
      return attempt;
 },