Travis Kimmel talks with Kevin Goldsmith about the correspondence between organizational design and software architecture.
Conway's law, organizational and team structure driving architecture.
"use strict"; | |
const assert = require("../utils/assert.js"); | |
const { Queue } = require("../../lib/queue"); | |
const errors = require("../../lib/errors"); | |
const { QueueItem } = require("../../lib/queueItem"); | |
const logger = { log: (level, data) => {} }; | |
const BBPromise = require("bluebird"); | |
BBPromise.config({ | |
cancellation: true |
view ( count, fps ) = | |
Canvas.toHtml | |
( w, h ) | |
[ Attributes.style "border" "2px solid red" ] | |
[ shapes [ rect ( 0, 0 ) w h ] |> fill Color.white | |
, shapes | |
[ rect ( -100, -150 ) 40 50 | |
, circle ( 100, 100 ) 80 | |
] | |
|> lineWidth 5 |
Travis Kimmel talks with Kevin Goldsmith about the correspondence between organizational design and software architecture.
Conway's law, organizational and team structure driving architecture.
module Examples.AnimatedGrid exposing (main) | |
{- | |
Adaptation from @mattdesl's gist | |
https://gist.github.com/mattdesl/cb27d1285d4ceaa091094bad92ebd7fb | |
-} | |
import AnimationFrame exposing (times) | |
import Html exposing (Html) | |
import Html.Events exposing (onClick) |
Imagine we have data for users of a social network. Users can befriend other users of the network.
We want to implement a feature where a user Alice visiting another user Bob, would see which friends Alice and Bob have in common.
Write a script/function/program in your preferred programming language that takes two user names and gives back a list of the common friends between those users.
[ | |
{ | |
"id": 847, | |
"name": "Summer Donnelly", | |
"friends": [ | |
780, | |
671, | |
516, | |
50, | |
859, |
const profiles = 1000; | |
Array(profiles).fill(null).map((_, i) => { | |
const id = i | |
const name = faker.name.findName() | |
let friends = [] | |
while (friends.length < 200) { | |
const friendId = Math.floor(Math.random()*profiles) | |
if (friendId !== id && !friends.includes(friendId)) friends.push(friendId) | |
} |
qunit-cli-bug => ls | |
node_modules package.json test.js yarn.lock | |
qunit-cli-bug => jq .scripts package.json | |
{ | |
"test": "qunit test.js" | |
} | |
qunit-cli-bug => cat test.js | |
const test = require("./index.js"); | |
QUnit.module("Test"); |
QUnit.test( 'checking bad reference', function ( assert ) { | |
assert.expect(1); | |
return this.referencesGateway.getReference( '#cite_note-bad', this.page ).catch( function ( err ) { | |
assert.ok( err === ReferencesGateway.ERROR_NOT_EXIST, 'When bad id given false returned.' ); | |
return null; | |
} ); | |
} ); |