Thursday, 1 March 2012

The Soul of a New Machine

I just re-read The Soul of a New Machine by Tracy Kidder. Just stellar. If you're interested at all in the history of computing, you really must read this book. It follows a team of engineers designing and building an early 32-bit minicomputer in the late 70's. Kidder was brought in quite early in the development to document the process and he did an exemplary job of it.

If you're too cheap to buy it and your local library doesn't have it, you can borrow my copy. Yeah, that's right. It's now part of my library, it's that good. (I read 20 or 30 novels a year, and they normally go out the door as quickly as they came in.)

Thursday, 2 February 2012

Back to Basics

Back in September, I had some words to say about Java. Now I'm gonna say a few about C++.

While I've never been a big fan of templates, I'll admit that I use the STL from time to time just to get things done. On a recent project, I had a need for string-based maps, and as we all know, C/C++ just barely acknowledges strings as a data type. I used the examples, but was running into all kinds of memory errors. Eventually I came to the conclusion that I just don't have the template-fu to do this properly.

Fuck it, I'm a programmer, I should be able to just make something that works for me. So I did. And while I was at it, I made my map keyable on integers as well (I needed to search via two different criteria, and maintaining two containers is wicked error-prone). I learned a lot about searching, and hashing, and a bunch of other miscellanea that I wouldn't have otherwise had the opportunity to explore.

While I'm the first guy to say, "Look around for a library, somebody's probably already done this" - and they usually have - I'm wise enough (I hope) to know when it's time to roll my own. It's a little extra effort, but sometimes it's the only way to go. If you need a Swiss Army knife, but everybody's making plasma torches, make your own knife.

Tuesday, 3 January 2012

The War on Work

I've been watching Dirty Jobs lately, and if you've never seen it, you should. It's really entertaining, and (arguably) educational. I'd never seen it myself until just a couple of months ago, when I saw the host speaking on TEDtalks and was intrigued. (I only have basic cable, so a lot of things things get past me.) I liked what he had to say, and the premise seemed interesting enough, so I checked it out.

As I've implied, I do find the show incredibly entertaining, and I'd forgotten about what Mike had talked about at TED until just a couple of days ago, when I saw the episode entitled, "Safety Third". It's actually kind of profound, and I found myself nodding all the way through, because I've been around long enough to have done some dirty jobs, and I totally got what he was saying.

My point (and I do have one) is that I agree with what he said in that talk - that we in North America have "declared war on work". A good many of us look down on blue collar workers - or at the very least, we sure don't want to be them, and we probably don't want our children to be them either (stay in school, kids!)

This likely seems odd coming from a programmer who hasn't handled a shovel at work for over 11 years, but do remember that I did once handle a shovel at work, and many other "real" tools besides. Anyhow, the thing that struck me about the talk was that he claimed that all the people he met doing some of the most horrible jobs you can imagine, were among the happiest he's ever met. They whistle while they work.

Do you?

Me neither, or at least not as much as you'd think when you consider the amount of effort we put into getting the jobs we have now. Honestly, in my previous life as a blue-collar type, I was generally happiest when I was actually doing the work. I may not have worked in a sewer or a steel mill, but I've cleaned my fair share of nasty bathrooms, and I've had much worse days fighting with finicky server hardware.

It's really dealing with other people - largely the public, but they ain't the only problem - that drove me into this industry (and I use the term "industry" loosely), because I knew eventually I'd have a job where my exposure to people who piss me off or stress me out would be minimized. It really isn't because I didn't want to wield a shovel anymore, I just got fed up with taking abuse from those who felt I should wield it differently.

I have no idea why this has been getting under my skin, but there it is.