Skip to content

Instantly share code, notes, and snippets.

@pseudofunctor
pseudofunctor / System Design.md
Created November 15, 2020 23:52 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
import PropTypes from 'prop-types';
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
type Defined<T> = T extends undefined ? never : T;
/**
* Get the type that represents the props with the defaultProps included.
*
* Alternatively, we could have done something like this:
@pseudofunctor
pseudofunctor / essential-javascript-links.md
Created June 9, 2020 12:27 — forked from rsperberg/essential-javascript-links.md
A fork that adds descriptions to Eric Elliott’s 142 essential JS links