Skip to content

Instantly share code, notes, and snippets.

@Safiyya
Safiyya / bread-session.md
Created November 6, 2019 17:07
BREAD sessions

BREAD session

The goal of a BREAD session is to:

  • eliminate misunderstandings about the scope of a given feature
  • share knowledge, expertise & pain points
  • provide us (and the business at large) a rough plan for implementation
  • provide us with a sense of the time/energy needed
  • be clear about the dependencies between tasks
  • know which person is accountable for a piece of work
@Safiyya
Safiyya / traverse
Created January 27, 2018 11:18
Traversing a tree asynchronously with Promise
traversePromise(callback: ((n: Node) => Promise<void>)): Array<Promise<void>> {
let queue: Array<Promise<void>> = [];
let recursion = (node: Node) => {
if (node.children) {
node.children.forEach(function (child: Node) {
queue.push(callback.apply(this, [child]));
recursion(child)
});
}