Skip to content

Instantly share code, notes, and snippets.

View rootisenabled's full-sized avatar

Oleksandr Ivanov rootisenabled

View GitHub Profile
@rootisenabled
rootisenabled / System Design.md
Created October 10, 2017 14:33 — 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?
@rootisenabled
rootisenabled / functional-utils.js
Created September 14, 2016 21:15 — forked from bendc/functional-utils.js
A set of pure and immutable ES2015 functions aimed to make functional JavaScript more idiomatic.
// array utils
// =================================================================================================
const combine = (...arrays) => [].concat(...arrays);
const compact = arr => arr.filter(Boolean);
const contains = (() => Array.prototype.includes
? (arr, value) => arr.includes(value)
: (arr, value) => arr.some(el => el === value)