Our intellectual powers are rather geared to master static relations and ... our powers to visualize processes evolving in time are relatively poorly developed. For that reason we should do (as wise programmers aware of our limitations) our utmost to shorten the conceptual gap between the static program and the dynamic process, to make the correspondence between the program (spread out in text space) and the process (spread out in time) as trivial as possible.
> --- Dijkstra (1968) "A Case against the GO TO Statement" cited in: Bill Curtis (1981) Tutorial, human factors in software development. p. 109.
View dijkstra.md
View mute.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
suggest_who_to_follow | |
suggest_recap | |
suggest_recycled_tweet | |
suggest_recycled_tweet_inline | |
suggest_activity_tweet | |
suggest_pyle_tweet | |
suggest_ranked_timeline_tweet |
View thanos.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const buttonHtml = ` | |
<a id="thanos" class="btn btn-primary float-right" role="button" | |
style="margin-left:38px"> | |
Decimate issues | |
</a>`; | |
var css = '#thanos:hover{ background-image: linear-gradient(-180deg,#6d3678,#693270 90%) }'; | |
var style = document.createElement('style'); |
View Presenter.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import { globalHistory } from "@reach/router" | |
import Zoom from "./Zoom" | |
import Slide from "./Slide" | |
import Pre from "./Pre" | |
import Clock from "./Clock" | |
// based on https://github.com/streamich/react-use/blob/master/src/useSpring.ts | |
import { SpringSystem } from "rebound" | |
import { useState, useEffect } from "react" |
View didact-fiber.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Effect tags | |
const PLACEMENT = 1; | |
const DELETION = 2; | |
const UPDATE = 3; | |
function arrify(val) { | |
return val == null ? [] : Array.isArray(val) ? val : [val]; | |
} | |
function reconcileChildrenArray(wipFiber, newChildElements) { |
View __.babelrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": ["@babel/preset-react", "@babel/preset-env"] | |
} |
View App.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class App extends React.Component { | |
state = { | |
selectedStock: null | |
}; | |
render() { | |
const { stocks } = this.props; | |
const { selectedStock } = this.state; | |
return ( | |
<React.Suspense fallback={<div>Loading...</div>}> | |
<StockTable |
View App.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const stockChartPromise = import("./StockChart"); | |
const StockChart = React.lazy(() => stockChartPromise); |
View __.babelrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": ["@babel/preset-react", "@babel/preset-env"] | |
} |
View App.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import StockTable from "./StockTable"; | |
import StockChart from "./StockChart"; | |
class App extends React.Component { | |
state = { | |
selectedStock: null | |
}; | |
render() { |