Encouraging Female Programmers, Even the Redheads

On my last post, someone named Bob didn’t like that I’d said: “NYU did not have any sort of club for women interested in CS.” Did they have a general CS club? If so, they had a club for women interested in CS. Having special clubs just for women (or just for men) hurts womenContinue reading “Encouraging Female Programmers, Even the Redheads”

The Professor, the Interviewer, and the Coworker

I once interviewed a guy who was pretty good, but not a definite “yes-hire-him-now,” which was what 10gen was looking for. He was a bit careless and indifferent and I’ve noticed that when someone can’t keep their personality quirks down in an interview, they’re not going to suppress them once they’ve been hired. (Which isContinue reading “The Professor, the Interviewer, and the Coworker”

Smart Pointers and Heirloom Underpants

I’ve seen a lot of descriptions of scoped_ptr and unique_ptr, but often they don’t give clear examples of when to use one vs. the other. Hopefully this will clear things up. unique_ptr is like an heirloom ring: you might purchase it, have it all your life, and end up being buried with it. For example,Continue reading “Smart Pointers and Heirloom Underpants”

Labeling Git Branches

I came across git branch descriptions today and it is so freakin useful that I wanted to share. My branches usually look like this: $ git branch add-feature feature-add * implement-foo implement-foo2 temp temp2 It is… not the clearest. Luckily, you can add descriptions to branches: $ git checkout implement-foo2 $ git branch –edit-description —PopsContinue reading “Labeling Git Branches”

It’s turtles all the way down

“Turtles all the way down” is a concept that Java handles very nicely: public class Turtle { Turtle prevTurtle; public Turtle(Turtle prevTurtle) { if (prevTurtle == null) { throw new RuntimeException(“It’s turtles all the way down.”); } this.prevTurtle = prevTurtle; } } (Probably there should be a special FiniteTurtleException, but I wanted to keep theContinue reading “It’s turtles all the way down”