Skip to content

Instantly share code, notes, and snippets.

View jaw6's full-sized avatar

Joshua Wehner jaw6

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jaw6 on github.
  • I am jaw6 (https://keybase.io/jaw6) on keybase.
  • I have a public key ASD2sSDHQ76Z68jopUBIzWDGYM5OCwV0Ns_XRw9K0N6fhgo

To claim this, I am signing this object:

@jaw6
jaw6 / blocks.rb
Created January 14, 2014 03:49
An exercise in using Ruby blocks
require 'minitest/autorun'
class List
include Enumerable
def initialize()
@notes = []
yield @notes if block_given?
end
attr_reader :notes

Okay, here's my thing: what we tend to call "management" in our field is at least several separate skills. Mostly it's at least technical decision leadership, personnel management and project management. Expecting all of these skills to manifest spontaneously (let alone simultaneously) in one person is absurd.

The best orgs I've seen approach something I'd call a "growth mindset" (or maybe "support mindset"). They identify early potential, encourage (and meaningfully subsidize) skill development, and field-test to validate.

If I'm right about any of this (and, of course, I think I am), then the best growth-oriented orgs are making a huge mistake by strictly separating people into buckets labeled "manager" and "coder". If the act(s) of "management" require several separate skills, and growth requires identifying, leveling-up and field-testing these skills, the best orgs would find ways to divide management responsibilities among as many actors as possible.

I think we inherited an unhealthy idea of "manage

python_version = `python --version`
# Python 2.7.1
# => ""
puts python_version
# => nil
➜ java -version | wc
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10-428-11M3811)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01-428, mixed mode)
0 0 0
➜ echo "what" | wc
1 1 5
#encoding: UTF-8
def does this work(input)
puts input
end
does this work 'at all?'
# >> at all?
A linguistics professor was lecturing to his English class one day. "In English," he said, "A double negative forms a positive. In some languages, though, such as Russian, a double negative is still a negative. However, there is no language wherein a double positive can form a negative. "A voice from the back of the room piped up, "Yeah, right."
A linguistics professor was lecturing to his English
class one day. "In English," he said, "A double
negative forms a positive. In some languages,
though, such as Russian, a double negative is still
a negative. However, there is no language wherein a
double positive can form a negative. "A voice from
the back of the room piped up, "Yeah, right. "
#!/usr/bin/env ruby
require 'csv'
def flip; rand(2) == 1; end
headers = ['year', '# male pres', '# female pres']
rows = []
250.times do |j|
years = 2016
men, women = 44, 0