personal comments edit

Putting the ball in the back of the net in a competitive game of Soccer is one of the most exhilarating feelings around. Why, I think it can feel as good as … well I won’t go there. Suffice to say, it’s a great feeling, even in a city rec league. As long as there are teammates patting you on the back, refs blowing a whistle and a net to capture the shot, it just feels great.

Scoring two in a game, well, that’s even better.

Missing a third great game-winning opportunity, well that almost makes you forget about the first two in frustration. That’s the nature of sport.

My league team that played so dreadfully last season has bounced back this season and we are riding high on an unbeaten streak. We won our last three or four games in a row until this past sunday when we could only pull out a 2-2 tie, both scored by yours truly. Unfortunately, I had a fantastic opportunity to put the game away off a corner kick. I beat the goalie with my header but a defender standing in the goal headed it out just in time. A great defensive play, much to my dismay.

I attribute my personal improvement to taking the entire weekend off from work, which was a welcome and refreshing break. It’s amazing what a full weekend away from the computer (apart from checking emails and reading blogs which don’t count) can do for a person’s sanity. I recommend it.

Last night after the game, we went out to dinner in K-town for some Soon-Dubu (Korean Spicy Tofu Stew). I love Soon-Dubu. The spicier the better. Unfortunately, it has its downsides the day after. For those of you familiar with Korean food, you know exactly what I’m talking about. Let’s just say spicy going in, spicy going out and leave it at that.

comments edit

UPDATE: They now have a book on!

This site ( is one of the most interesting, compelling and touching (in that pulling the heart strings kind of way, not in the Michael Jackson sort of way, though there is a bit of that I suppose) website/blog I’ve ever had the pleasure of discovering. I found it via Ian White’s blog. (Apparently he is a geek.)

This is a site where people anonymously send a postcard with a secret. Some are sad, others are anger inducing, and then there are the humorous ones like this one.

comments edit

After reading over my last blog post, I wondered why my posts take such a virulent tone towards Joel Spolsky when I think he’s wrong. Looking around the web, I noticed I am not the only one.

I mean, I’ve never met the guy. He hasn’t killed any puppies that I know of, nor has he insulted my mother. In fact, I am pretty sure he doesn’t even know my mother.

Then I read this snippet of a great comment from Melissa in my blog…

Joel just likes to write with conviction, irrespective of the matter at hand. He probably has strong opinions about light butter/no butter/movie theater butter on his heat-expanded maize kernels, and he could probably write a persuasive as hell argument for his position and the more suggestable among us would immediately agree and get on their knees to show their appreciation for Joel’s relieving them of their obligation to think for themselves.

That’s it! Joel is an authority in topics of software, and like it or not, authority carries with it power, which carries with it responsibility (thanks Uncle Ben). He writes that BDUF is absolutely necessary, and suddenly hundreds of software middle managers across the country are thwarting their teams efforts to engage agile methodologies.

“If Joel says BDUF, then we do BDUF. We’re bringing back Ye olde Waterfall Methodology.

So it’s not that I think he’s wrong, it’s that he is so forcibly and authoritatively wrong. I’d love for him to try and make BDUF work with some of my current clients. A few weeks into it and I’d have to have the straight jacket and padded room reserved (Lord knows I’ve had a stay there).

So that explains my harsh attitude. Well… that and the arrogant tone he takes. That seems to get my dire up. Especially when he put down corporate developers.

In any case, one post mentioned why anyone is still reading Joel. Well as much as I like to get my panties in a bunch when he says something stupid, 99% of his writings are still top notch insightful and worthwhile. In every position I’ve been in, I would circulate links to various articles he has written to help improve software development practices. 99% of the time, he knows his stuff. It’s that 1% of the time I wish he’d just shut up.

[Listening to: Stretch ‘n’ Vern / Get Up! Go Insane! (Fatboy Really Lost It Mix) - Fatboy Slim - Greatest Remixes (7:14)]

comments edit

Gray Hair Well it had to happen sooner or later, my first gray hair. Today, a gray hair, tomorrow I’m shopping for Depends. I need to quit working so much.

comments edit

Now I like to take shots at myself for producing drivel now and then, but today, I’m going to take a shot at someone else’s drivel. I really should be working right now, but I really need to stop a moment to respond to some FUD. Once again, Joel Spolsky sprays more ignorance on his readership with this quote…

I cant tell you how strongly I believe in Big Design Up Front (BDUF), which the proponents of Extreme Programming consider anathema. I have consistently saved time and made better products by using BDUF and Im proud to use it, no matter what the XP fanatics claim. Theyre just wrong on this point and I cant be any clearer than that.

First, as Brad Wilson mentions, Agile does not mean no design.

The primary mantra of agile methodologies is to do only what is necessary, and no more. For a product company like Joel’s FogCreek, a functional spec is absolutely necessary. (As an aside, I’m a fan of his Painless Functional Specifications Series and have used it as a template for functional specs on several projects). They are not treading new ground with their products and the requirements appear to be very stable from release to release. For example, for CoPilot, Joel dictated the requirements which the interns implemented.

However, I’d point out that the spec he published for all to see is a great example of doing what is necessary and no more. Notice he didn’t list out the specific database tables nor class diagrams. This spec is not an example of big design up front. It is a great example of doing just enough design up front as necessary. How very agile of you Joel and you weren’t even trying.

The second fallacy is that Joel takes his narrow product-based experience and applies it to all of software development. When you are the one who gets to define requirements and your project does not explore new ground, Big Design Up Front hands down can work. But try applying that approach to a client project and watch with horror as three months into the project, the client changes his mind on a feature and leaves you with a hunking mass of outdated and useless UML diagrams you spent eighty man-hours producing.

Agile methodologies are designed to manage change. When you don’t have change to worry about, you can resort to BDUF (though even then I’d only do what is necessary). Agile methodologies weren’t designed to handle developing the software for the Space Shuttle. Requirements are fixed and hardly change in such a project.

But most real world projects have a lot of change. Where does that change come from? The client! There are other sources of change during a project’s lifecycle as well, such as new technologies and from new ideas gained during the project, but the majority of it comes from the client changing his or her mind.

Your typical client knows jack shit about how software is really developed. Yet you expect the client to be able to express extremely detailed requirements for what he or she wants? Might as well hand her a keyboard and tell her to write the code for what she wants. Would you try that with a home builder?

“Hey, I’ve written you a list of exactly how I want my house to be. I’ll be back in a month to see the finished product. Can’t wait!”

I sure hope you wouldn’t. Most likely you’d want to check in every now and then and see how things are going. And as you see the house develop, you might change your mind about a few things.

Developing software for a client is very much like that. A client often doesn’t know what she wants until she sees it. As the project unfolds, the client (and development team) learns more and more about the product and starts to realize that some of her initial requirements don’t really make sense, while also recognizing that there are other requirements that she hadn’t thought of, but your demo reminded her.

Try BDUF on a project like that, and you’re setting yourself up for disappointment and failure. That’s where an agile methodology really shines. Divide the project up in iterations, do just enough up front high level design to give the system coherency, and then flesh out the design during each iteration via some up front iteration level design and refactoring. Again, do just enough design as necessary, but no more.

comments edit

Hulk I just hate it when software designed to save you countless hours of development work just don’t work out of the box. Especially when you pay good money for it. I’ve come to expect a few hiccups here and there with open source software. But purchasing an expensive rich editing component from a leading vendor, performing a fresh install, and having buttons popup javascript alert boxes with debug information is inexcusable. Along with some other features just plain not working.

It just makes me angry! And you don’ want to see me when I’m angry! Grrr…

comments edit

Wireless PC Lock I don’t know about you, but running into an unlocked workstation in the office is like finding a voucher for a free airline ticket and hotel stay at Vegas complete with gambling money. In other words, pure fun. (Ok, perhaps I overstated that a bit. I’d much prefer the free stay in Vegas. Anyone? Anyone?)

There are any number of interesting pranks you can pull, but my favorite continues to be to take a screenshot of the user’s desktop, and then move all desktop shortcuts into a backup folder. Also make sure to hide all the taskbars. Then find a decent inconspicuous vantage point and watch as the unsuspecting user flounders with an unresponsive desktop. That’s usually good for a few laughs.

Alternatives include replacing desktop background with embarassing images and changing all the sounds in the systems to embarassing sounds, or simply to sounds for other system functions. The last one is quite subtle, but can be quite confusing as it shows how reliant we can become on sound to navigate a computer.

In any case, in his role as desktop hijinks party pooper, Scott Hanselman has unveiled his latest installment of his “Some Assembly Required” column.

In this installment, he highlights a fine piece of USB hardware, a wireless pc lock, used to automatically lock your machine when you are away. The hardware unfortunately comes with some lame software, so he proceeds to build improved software that can not only lock your machine when you’re away, but set your IM status to away (along with other functions and an extensibility model). That’s pretty sweet and all, but if this catches on, finding unlocked workstations could be a thing of the past (unless you happen to wander into the business or marketing department, the source of all email viruses in any company).

Well, I guess there’ll always the prank of stealing the USB dongle.

Security Question\ I am a little ignorant about how USB works, but one security question this raises is what happens if you walk away, and I put an intermediate USB device between the dongle and the computer, and record the data going back and forth. When the user returns, he or she is quite unlikely to notice if the dongle is in the back of the computer (think corporate workstation). How will this device and software protect against that?

comments edit


Let me know if you like these videos I’m posting or if you’re one video away from cracking my skull with a wet noodle. Cause if you want to crack my skull, you’re really going to have to wait in line.

Meanwhile, watch as this skateboarder skates through a pool full of blue balloons for a neat visual effect.

Update: As Diego points out, I always forget to link. Damn it! Well I linked it now!


comments edit

Man, I’ve been so heads down busy with work lately that I haven’t had time to regale you with the fantastical events that have been going on around here. Tales of wizards, warriors, and actuarials. Seriously, kick-ass actuarials.

Instead, I’ve simply been linking to other people’s mindless drivel, rather than producing my own. However, I did have a moment to breathe today and watch this hilarious video.

Seriously, go check it out. Now! Satisfaction guaranteed or your money back. If I have ever lead you astray with one of these video links, you let me know. But I don’t think I’ve gone wrong yet. Except for maybe that chair sex video. You know, the one that put Paris Hilton out of business. Seriously, furniture fornication was probaby out of line.

comments edit

Ha ha ha! Thanks for publishing this one Robb. If anyone is offended, my finger is pointing at Robb. I’m just the messenger.

A farmer walks into his bedroom where his wife is lying on the bed, reading a book. The farmer picks up a sheep he had brought with him in the room and throws it on the bed.

“That’s the pig I screw when you’re not in the mood,” says the Farmer.

“That’s not a pig, that’s a sheep, “ replies his wife.

“Shut up, “ says the farmer, “I’m not talking to you!”

[Via Sharp as a Marble]

comments edit

Reading this post from Jayson’s blog caught my attention for two reasons. First, his very strong reaction to some code that swallows an exception. Second, the fact that I’ve written such code before.

Here is the code in question.

public bool IsNumeric(string s)








        return false;


    return true;


Jayson’s proposed solution is…

I personally would use double.TryParse() (and downcast accordingly depending on the result) at the very least. At the very most I’d break the string down to a char array, and walk the array calling one of the (very) useful static char.Is<whatever> methods…first non<whatever> value, break out of the loop and return false. I’ve posted before about the speed at which the framework can process char data…it’s very fast and effecient (sic).

For the sake of this discussion, let’s assume the method was intended to be IsInteger(). Using Int.Parse() to test if a string is a number doesn’t make sense since it immediately chokes on 3.14 (get it? Chokes on Pi. Get it? Damn. No sense of humor). If indeed this method was intended to be IsNumeric then I would suggest using double.TryParse and the discussion is finished.

Now in general, I agree with Jayson and often raise fits when I see an exception blindly swallowed. However, when you only deal in absolutes, you start to become a robot (yes, I am resisting the offhand political joke here). For every absolute rule you find in programming (or anywhere for that matter), there is often an example case that is the exception to the rule. As they say, the exception proves the rule.

The problem with simply parsing the string character by character is that it’s quite easy to make a mistake. For example, if you simply called char.IsNumber() on each character, your code would choke on “-123”. That’s certainly an integer.

Also, what happens when you want to extend this to handle hex numbers and thousands separators. For example, this code snippet shows various ways to parse an integer.

Console.WriteLine(int.Parse(“07A”, NumberStyles.HexNumber));

Console.WriteLine(int.Parse(“-1234”, NumberStyles.AllowLeadingSign));

Console.WriteLine(int.Parse(“1,302,312”, NumberStyles.AllowThousands));


This is one of those cases where the API failed us, and was corrected in the upcoming .NET 2.0. In .NET 2.0, this is a moot point. But for those of us using 1.1, I think this is a case where it can be argued that swallowing an exception is a valid workaround for a problem with the API. However, we should swallow the correct exception.

Since there is no int.TryParse() method, I’d still rather rely on the API to do number parsing than rolling my own. It’s not that I don’t think I am capable of it, but I have a much smaller base of testers than the framework team. Here’s how I might rewrite this method.

public bool IsInteger(string s, NumberStyles numberStyles)


    if(s == null)

        throw new ArgumentNullException(“s”, “Sorry, but I don’t do null.”);




        Int32.Parse(s, numberStyles);

        return true;




        //Intentionally Swallowing this.


    return false;


So in 99.9% of the cases, I agree with Jayson that you should generally not swallow exceptions, but there are always the few cases where it might be appropriate. When in doubt, throw it. In the rewrite of this method, notice that I don’t catch ALL exceptions, only the expected one. I wouldn’t want to swallow a ThreadAbortException, OutOfMemoryException, etc…

I would also put a //TODO: in there so that as soon as the polish is put on .NET 2.0, I would rewrite this method immediately to use int.TryParse() and make everybody more comfortable.

This is a case where I do feel uneasy using an exception to control the flow, but that uneasiness is ameliorated in that it is encapsulated in a tight small method. Also, one objection to this post I can anticipate is that it is freakin’ easy to parse an integer, so why not roll your own? While true, the principle remains. What if we were discussing parsing something much more difficult? For exampe, suppose we were instead discussing a method IsGuid(). Now you have to deal with the fact there isn’t even a Guid.Parse() method. You have to pass the string to the constructor of the Guid which will throw an exception if the string is not in a valid format. Yikes! I thought constructors were never supposed to throw exceptions.

In this case, I’d probably prefer not to roll my own Guid parsing algorithm, instead relying on the one provided. Why write code that already exists?

So Jayson, in general you are right, but please don’t beat me to death with a wet noodle if you see something like this in my code. ;)

comments edit

Oh yeah, this little curse is going around right now as Microsoft recently released some new security updates. I love Robb’s take on the real message underneath the Automatic Update dialog.

Curse you, Bill Gates!

And your stupid “automatic updates” too….

Do it, or

[Via Sharp as a Marble]

comments edit

Shuttle Crew Very early this morning my slumber was disturbed by an extremely lound noise. Like Maverick in Top Gun, those durn shuttle astronauts did a fly by enroute to Edwards, setting off car alarms and howling dogs in the neighborhood. Couldn’t y’all have flown by quietly. There were people sleeping you know. Next thing you know, them punk astronauts will attach a huge bass subwoofer in the back of that thing, spinners, just to let you know what’s up.

All kidding aside, I am glad to hear they made it back safe and sound (a big sound). I wish I would have known they were swinging by. I wonder if I would have been able to see it from here.

comments edit

So you’re ready to bore the world with your stuttering lisp via podcasting. Congratulations! Join the thousands of others podcasting their mind numbing undifferentiated message.

But there is a way to stand out. You need an audio logo. Audio logos arguably have a stronger impact than visual logos. Think of the following companies: NBC, Intel and 20th Century Fox. Can you hear in your head their audio logos? Now that’s impact!

Michael Whalen, an independent film score composer, recently started a podcasting logo division, geared towards the more limited budgets of the typical podcasting outfit.

So when the time comes for me to unleash my nasally atonal discordant voice upon the world, it’s heartening to know that my drivel could be accompanied by a kick ass audio logo from someone who’s done work for ABC News, PBS, Apple Computers, etc…

comments edit

Spam Before I mention this, I better knock on wood and cross my fingers so as not to jinx it, but I haven’t had any comment spam for several days. In fact, for the past month, the amount of comment spam on my blog has been greatly reduced. Is rel="nofollow" actually working despite the naysayers? Or have I become such a small fry, that I am not worth the extra CPU cycles and bandwidth to graffiti my site?

Not that I’m complaining, mind you. I love it! I doubt it will last for long, but I can enjoy it while the calm lasts. I just hope it isn’t one of those things where by mentioning it, I bring it on myself.

Whatever the reason, I’ll still be working hard to make sure Subtext is resilient to spam.

personal comments edit


Well I am back home in the good ol’ U.S. of A and strongly feeling the effects of jet lag despite the few coffees I’ve had in a pathetic attempt to stave off the lethargy.

Despite many of the fancy schmancy meals we had (which were all extremely delicious), my favorite meal was when we went out to a gritty smoky Yakitori place in a nook underneath the train tracks in the Ginza district. As you can see in the photo to the right, the place is tucked against the curving wall of the tunnel.

Protect the

This was my father-in-law’s favorite Yakitori place, so we brought along a picture of him taken at this place and sat down to enjoy some beer, sake, and delicious Yakitori. A close family friend surprised us by joining us, a full hour and forty minutes by train from his work place.

I wish I could find a Yakitori place in Los Angeles that was even half as good as this place.

Technorati Tags: japan,tokyo

comments edit

A long time ago, in a galaxy far away, I wrote a really simple little class for converting State Codes to State Names and Vice Versa.

Essentially, this class contained two enums, one for state codes such as AK and CA. Another enum contained state names such as Alaska and California. There were static methods that facilitated converting between the the two as well as string representations.

Simple stuff really, but very helpful if you deal with states all the time. However, just today I received an email from Omer pointing out that I am trusting the order of the two enums values to be aligned to allow conversions between the two. While it happens to work, it creates a dependency on the order of the values that doesn’t need to be there. You never know when we’ll annex Iraq as our 51st state and need to add a value to the enums.

In any case, I took Omar’s Omer’s suggestion to have one of the enums refer to the other. For example, here’s a snippet of the StateCode enum.

public enum StateCode


    /// <summary>Alabama</summary>

    AL = State.Alabama,

    /// <summary>Alaska</summary>

    AK = State.Alaska,

    ///… and so on


Download the revised code here. Thanks Omer!

personal comments edit

In ten minutes we’re getting on the train to go to the Narita airport. I always feel sad when leaving, but excited to get back to work and the exciting opportunities therein. The fact we are flying Singapore airlines is some consolation. They have a fantastic in-flight entertainment system. If only they had wi-fi.

Technorati Tags: japan,tokyo