Skip to content

Instantly share code, notes, and snippets.

@asmallteapot
asmallteapot / gist:2368038
Created April 12, 2012 15:14
Notes from @UncleBobMartin’s Demanding Professionalism talk in Tampa, Florida on 11 April 2012.

Demanding software professionalism

Presented by Bob Martin in Tampa, Florida on 11 April 2012.

Miscellany

“Uranus is not a naked–eye object under any circumstances.”

  • Copernicus’ motivation was religious, not scientific! Galileo looked at the phases of Venus to determine its orbit in relation to Sol.

Bob: How do you become unafraid of your code?

@alandipert
alandipert / rps.clj
Created January 18, 2012 05:33
Rock paper scissor
(def dominates
{:rock :paper
:scissors :rock
:paper :scissors})
(defn winner [p1-choice p2-choice]
(first (keep (comp #{p1-choice p2-choice} dominates) [p1-choice p2-choice])))
;;; vs. the solution from labrepl
;;; https://github.com/relevance/labrepl/blob/master/src/solutions/rock_paper_scissors.clj
@paulirish
paulirish / rAF.js
Last active March 22, 2024 00:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];