https://timothya.com/blog/git-stack/
Generic script that works when there are no conflicts
#!/usr/bin/env bash
git checkout --detach master
BOUNDARY="origin/master"
https://timothya.com/blog/git-stack/
Generic script that works when there are no conflicts
#!/usr/bin/env bash
git checkout --detach master
BOUNDARY="origin/master"
https://www.youtube.com/watch?v=4N2ywun-wTE
1. Clear boundaries & responsibilities (what's platform vs feature team)
const swap = (a, b, arr) => { | |
const temp = arr[a]; | |
arr[a] = arr[b]; | |
arr[b] = temp; | |
}; | |
// heaps algorithm | |
const getCombinations = (inputArr) => { | |
const heaps = (result, arr, n) => { |
from the book "A Philosophy of Software Design"
High complexity code causes change amplification, high cognitive load, and more unknown unknowns, when working with a codebase. These are costly and plunge engineers into a kind of sadistic coding hell.
Complexity is caused by dependencies and obscurity. Code is obscure when information required to work with the code is not provided.
Complexity is most often incremental, it sneaks up on the best of us.
{ | |
"editor.fontSize": 16, | |
"editor.tabSize": 2, | |
"editor.renderWhitespace": "boundary", | |
"editor.minimap.enabled": false, | |
"editor.cursorStyle": "block", | |
"editor.snippetSuggestions": "top", | |
"editor.renderIndentGuides": true, | |
"editor.cursorBlinking": "smooth", | |
"editor.insertSpaces": true, |
<!doctype html> | |
<html> | |
<head> | |
<title>unpkg-demos :: global-react</title> | |
</head> | |
<body> | |
<div id="app"></div> | |
<script src="https://unpkg.com/react@16.0.0-beta.2/umd/react.production.min.js" | |
integrity="sha384-lJJbYsDe7wDuOttI/MIHfj68o3fVZOhJDxEn0cTPbDq5mkzjF1p+AFEp3r/HpUnt" |
const customers = [{ | |
name: 'Billy', | |
age: 32, | |
averageOrderValue: '$34.38' | |
}, { | |
name: 'Mike', | |
age: 23, | |
averageOrderValue: '$300.38' | |
}, { | |
name: 'Zac', |
const inputs = Array.from(document.querySelectorAll('input')); | |
inputs.forEach(input => input.addEventListener('click', handleClick)); | |
function clickBetween(first, last) { | |
const direction = first < last ? 1 : -1; | |
let index = first; | |
while (index !== last) { | |
index += direction; | |
inputs[index].checked = true; |
// ## Array Cardio Day 2 | |
const people = [ | |
{ name: 'Wes', year: 1988 }, | |
{ name: 'Kait', year: 1986 }, | |
{ name: 'Irv', year: 1970 }, | |
{ name: 'Lux', year: 2015 } | |
]; | |
const comments = [ |