6082 comments
2357 subscribers
6221 on Twitter
Subscribe! Feed reader E-mail

Hack Night

A few days ago, I posted a matrix of
great ways to spend time.
Simon liked the idea, so last night, we held a Hack Night – a concentrated pair-programming sprint to make something cool.

We both wanted to play around with the Google Maps API. What better
way to learn how to use it than to prototype a new interface for his
voice messaging system that would allow users to select phone numbers
by drawing polygons?

I’d told him about the point-in-polygon algorithm some time ago.
(Hooray, formal computer science education!) He found a Perl program
that implemented the algorithm, and had also put up a simple
experiment using Google Maps and draggable markers.

While he wrapped up some other stuff, I brought myself up to speed by
quickly flipping through tutorials and mailing list archives. I
must’ve browsed through fifty or a hundred pages – not reading for
full comprehension, just indexing it so that I’d know what was out
there and where to find things.

Along the way, I found several resources that were just what we
needed. Several mailing list posts spoke highly of PostgreSQL’s
geometric operations, which meant that we could replace the Perl
script with a very efficient SQL operation. I also found a user
interface that was exactly like the design Simon wanted to make.

Assembling the pieces was really easy. We ripped out the code we
didn’t need and tweaked the script to do what we wanted. It was a lot
of fun pair-programming with him. I still haven’t gotten the hang of
his keyboard layout, so he did most of the typing. (The keyboard was
straightforward QWERTY, but the Powerbook layout means I hit the
function keys by mistake all the time.) I kept an eye out for little
errors and thought about what to do next. Sometimes I kicked him off
the computer in order to try something out. (When I had to hit
Ctrl-Option-Shift-S to save the file over FTP, I grinned and suggested
that Emacs would be far less RSI-inducing.)

Great results for a two-hour Hack Night. We wrapped up at midnight
because I had breakfast plans, so I couldn’t stay up too late. We
couldn’t help talking about ways to optimize it, though – using a
synthetic integer primary key to speed up joins, denormalizing the
database, etc. It was a lot of fun working on that with him, and I
look forward to other Hack Nights.

So yeah, I’m a geek’s dream. <laugh> And this Hack Night thing?
Well worth repeating. Maybe we can hack on my research prototype next…

On Technorati:

Random Emacs symbol: nobreak-space – Face: Face for displaying nobreak space.

Short URL: http://sachachua.com/blog/p/3995

On This Day...

  • 2012: Business experience report: Filing taxes! — I filed my corporate taxes and HST today, well ahead of the deadlines. The money will earn negligible interest in [...]
  • 2011: Planning an Emacs-based personal wiki – Org? Muse? Hmm… — I miss my Planner wiki! I think it’s time to organize things into a personal wiki again. Blogs are great [...]
  • 2010: Book: Choose to be happily married: How everyday decisions can lead to lasting love — Bonnie Jacobson, PhD., with Alexia Paul 2010 Adams Media, Avon, Massachusetts ISBN 13: 978-1-60550-625-8 The book [...]
  • 2009: Book: Closing the Innovation Gap —   The best talent embodies the five core values and has the right combination of aptitude, skill, judgment, passion, and drive. [...]
  • 2008: Learning languages — My recent trip to Tel Aviv was a good reason to learn a little Hebrew. I listened to the Hebrew [...]
  • 2008: Weekly review: Week ending Nov 2, 2008 — This week was half travel, half catching up. I flew to Tel Aviv for a customer workshop at which I [...]
  • 2006: Learning a foreign language — Another idea for the activity matrix: learning a foreign language. Japanese? Spanish? Maybe Spanish – I know a few people who can [...]
  • 2006: Tweaked blog design — I tweaked my blog design slightly, using a real-life photo instead of my icon and taking a few things off my [...]
  • 2006: In other news… — I’m back on the wagon of tracking every expense. There’s a certain satisfaction in knowing that every cent is accounted for. [...]
  • 2006: Contact report — I started tracking e-mail sent on 2006.09.01 with a nifty piece of Emacs Lisp code I wrote just for the purpose. Now [...]
  • 2006: Microsoft evangelism – tempting! — I had hot chocolate and a terrific conversation with John Oxley, director of community evangelism at Microsoft Canada. He told me about [...]
  • 2005: More about teaching — Teaching is the most humbling of experiences. There is nothing like standing there in front of the students and finding yourself [...]
  • 2005: ACM controversy — For the most part, Ateneo handled their first ACM Intercollegiate Programming Competition wonderfully. But there was one thing that perhaps could have [...]
  • 2003: Oooh, Perl is cool — perl -e 'print "*" x 80 . "\n"' I didn’t know about x number…
  • 2003: Intrams and Pisay Curriculum — This rant’s from Julius B. Legaspi III: Thank you for those who sent their comments so far. Rest assured I will try [...]
  • 2001: Playing with planner (linux, emacs) — Today’s been a busy day. I don’t suppose I can get planner to nicely work with all the rest of [...]

Get the highlights as a PDF!

Stories from my Twenties: Highlights from a Decade of Blogging