Saturday, August 12, 2006

The Construction Worker and The Architect

I just began reading Programming Pearls, a book I bought almost 2 years ago after seeing it on a recommended reading list Microsoft sent me after I'd accepted their job offer.

I've been reading and working through the problems in one chapter every day. It's incredibly engaging and fun - a cross between my old computer science exams in college and a more challenging version of those puzzle books I used to pick up at airport news stands as a kid (ok, I admit.. I still pick them up sometimes).

I feel that I'm at the tail end of a generation of computer programmers who were able to witness a paradigm shift in software programming. The first programming languages I learned were gwbasic/qbasic/Batch programming (cool! I can make a computer do stuff!), followed by Pascal and C (needed to mod my bbs!), C++ (high school AP and college classes), Perl/PHP/bash/tcsh (cool! I can make computers do even more stuff super-quickly and build web-apps!) and finally C# (project work during senior year of college, and Microsoft-land).

The paradigm shift I'm referring to though is mainly tied to the decrease in the amount of knowledge required to make a computer "do stuff". With the introduction of simpler languages like Visual Basic, and frameworks like .NET, 80% of the programming ability that was once required to build and end-to-end solution is no longer necessary (I've used Microsoft-centric examples here, but this is undoubtedly a platform-independent phenomenon that pre-dates both VB and .NET).

Even the most complex of operations continue to become simpler. Let's look at 2 examples I stumbled upon recently...

Example 1: Sorting an Array of User Defined Objects

Let's say you have an array containing username strings. Once upon a time, you, the programmer, would write your own sorting function if you wanted to order these strings. Modern programming frameworks have built-in functions to sort arrays of strings, and you don't need to know a single thing about sorting algorithms.

Okay, so now let's say you've created an object (i.e. a struct, class) to represent a "user". It contains a username string, and a whole bunch of other information like a full name and email address. In the not so distant past, you, the programmer, would write your own sorting function if you wanted to order these user-defined user objects (because the programming framework did not know how to sort your object (should they be sorted by username, by full name, by email address?). Modern programming frameworks allow you to implement a comparison function (i.e. IComparable.CompareTo(), which will be used by the framework's built-in sorting functions to sort your user-defined object.

Example 2: Multithreaded Windows Forms Programming

It used to be the case that if you wanted to build even the simplest Windows Forms application that did something time-consuming in the background without locking up your UI, you needed to master the art syntax of making asynchronous calls with delegates and callbacks. With the introduction of the new BackgroundWorker component in .NET 2.0, it's pretty easy to build simple multi-threaded WinForms applications.

So, getting back to my point here, 80% of what once required significant programming ability (i.e. ability to devise a sorting algorithm), now requires significant programming framework domain knowledge instead - something which, in my opinion, is much easier to teach and learn (and it is now probably most of what is taught and learned at trade schools and training classes).

So what about the other 20%?

I believe that this is where the true value of a software engineer still lies - along the lines of the Pareto principle - where 80% of value is brought by 20% of resources. Lots of people out there have the knowledge and tools to be a construction worker, but how many can architect a skyscraper?

At The University of Michigan, I spent 4 years studying Computer Science, and learned nothing about Visual Studio, C#, .NET, or many other skills required to function as a Windows software developer today. In their place, I learned about propositional and predicate logic, set theory, function and relations, growth of functions and asymptotic notation, combinatorics and graph theory, discrete probability theory, techniques and algorithm development and effective programming, top-down analysis, structured programming, testing, program correctness, program language syntax and static and runtime semantics, scope, procedure instantiation, recursion, abstract data types, parameter passing methods, structured data types, pointers, linked data structures, stacks, queues, arrays, records, trees, algorithm analysis and O-notation, priority queues, hash tables, binary trees, search trees, balanced trees and graphs, searching and sorting algorithms, recursive algorithms, basic graph algorithms, greedy algorithms, divide and conquer strategy, instructions executed by a processor and how to use these instructions in simple assembly-language programs, stored-program concept, datapath and control for multiple implementations of a processor, performance evaluation, pipelining, caches, virtual memory, input/output, finite automata, regular languages, pushdown automata, context-free languages, Turing machines, recursive languages and functions, computational complexity, database design, integrity, normalization, access methods, query optimization, transaction management and concurrency control and recovery, and much much more.

Getting back to the paradigm shift... I think the short of it is that abstracting out most of the underlying knowledge and ability to engineer great software is a great thing - especially for professionals who view "software engineering" as a means to an end, rather than the end itself.

But for those out there who are looking to engineer truly original, scalable, and otherwise high quality software, Programming Pearls is reminding me so far that a great set of tools, and knowledge about those tools, can't replace an underlying depth and breadth of knowledge and ability of a true computer scientist.

I'd highly recommend every software developer reading this blog check out the book...

The Design of Everyday Things

Let it be known that I am a very gentle book critic. I'm humbled by the wealth of information out there. I expect that I still have a lot to learn from a lot of people on a lot of subjects, and if I can pick up a book and learn even just a few new things, I'm satisfied. If the book is engaging, if I learn many new things, well, that's all bonus. You can see a list of books I've liked on the right-hand side of my blog - most of which I've given positive reviews at some point on this blog.

As gentle of a critic as I generally am, I must say that The Design of Everyday Things (I won't even link to this book's Amazon.com page) was a huge disappointment.

Originally entitled "The Psychology of Everyday Things", it was later renamed to sell more copies. Since the time I picked it up at the book store about a month ago, it also seems to have gotten a Web 2.0-ified new cover...

Old cover


New cover


Author, and "expert" on all things "design"


The way this book read was as follows.. the author seemed to have a huge pet peeve, bordering on obsession, with everyday things that were not designed with their intuitive factor trumping all other factors (physical appeal, price, etc). The chapters are a succession of rants, calling out widely-known problems (VCRs are hard to work, rows of light switches are confusing), and providing less-than-creative-or-optimal solutions (add an on-screen display for the VCR, mount a custom-made switchbox on the wall that looks like the map of a room - right - elegant).

The author rants about a panel of flush cabinets (which, let's say one would open by pushing to pop out or by grasping the bottom and pulling) because there is no visual indicator (i.e. a big bulky handle!) as to how to open them.

I completely agree that things should be intuitive to use. I shouldn't have to learn how to open a cabinet. That said, intuitive shouldn't necessarily trump beauty, cost, or any other factor. I don't mind taking a second to think about how to open my kitchen cabinets for the first time if they are beautiful kitchen cabinets.

Rarely is a good solution "either intuitive or elegant | simple | beautiful | inexpensive".

Unfortunately, I didn't learn anything useful from The Design of Everyday Things. I didn't learn how to design things better - just that "things should be intuitive to use" - duh. I hardly enjoyed reading several hundred pages of rants on the subject. I think the book is marketed extremely well, and that the name is quite deceiving. Most namely, while there is a science to design, the act of designing great things also involves some level of creativity and ingenuity - something I felt was passed over by this book.

Before wrapping up this rant, I'd like to provide an example of an elegant everyday-thing design - the Trofé mug from IKEA (by way of Apartment Therapy LA):


I own 4 of these 50 cent mugs. The small notch at the base allows the water to escape while drying upside down in my dishwasher.

Simple, elegant everyday-thing - one you won't learn how to design by reading a book (or not this book, at least).

Saturday, August 05, 2006

A Gray Twilight

A quote I came across at the beginning of the 5th chapter of Built to Last...

Far better to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory, nor defeat.

Theodore Roosevelt, 1899

When you read this quote, how does it resonate with you?

Have you dared mighty things? Experienced glorious triumphs? Are your winnings checkered by failure? Or... are you living in the gray twilight?

The biggest risk I've taken in my professional life was dropping out after 1 year of college at age 19 to work at a startup in Silicon Valley in 2000 (and in the process, turning down a comparable offer from rising dot com star Excite@Home, which tanked shortly thereafter). The second biggest risk I've taken was later walking away from that job (and my 21-year-old $82,500 salary) to go back and finish school (the startup tanked shortly thereafter).

I went to work on this beautiful Saturday morning. The hallways were silent and dark - far different than the overcrowded EECS computer labs in college or the large, open engineering workspace at the Valley startup. I looked around for someone to get lunch with, and quickly realized it wasn't gonna happen. So I went to the Teriyaki restaurant around the corner, next to the big company that employees 30,000+ locally, and sat in the empty restaurant, eating alone.

The biggest risk I've taken in the last 15 months has been deciding in which funds to invest my 401K. How about you?

Saturday, July 29, 2006

Next Generation Travel Tools


A few relatively recent discoveries in the travel department...

Farecast is a site that predicts future trends in airfare prices. So, let's say for example you know you're flying to Los Angeles in early September for your sister's wedding. Do you buy your ticket now, or do you wait a week or two to see if prices drop? But what if they rise?

Enter Farecast, which will tell you whether to buy or wait based on predictive models. This falls right in line with my thoughts on the power of research noted in my previous blog post - Farecast was pioneered by a professor at the University of Washington, and is clearly the product of significant research efforts. Oh, and before I forget, they have a blog too.

Kayak is another travel site worth a look. They provide a quite simple yet robust interface for searching for flights, and pull their data from a large number of other travel sites. Great one-stop shop for finding great deals.

Perhaps the coolest feature of Kayak is Kayak Buzz, which lets you search by region, month, and price (and a whole lot more), rather than the traditional search by destination city. For example, here are flights in December 2006 to Asia for under $1500. I'm definitely going to use this when planning my next vacation!

People talk about how the web revolutionized certain industries - Orbitz, for example, is notable for revolutionizing the travel industry by elinating most needs for brick and mortal travel agents. It's interesting to see how these next-gen sites are busting out and revolutionizing their predecessors like Orbitz.

Thursday, July 27, 2006

TrueSkill

Haven't been engaged in blogging much lately.. not sure whether it's just a lack of interest, or work exhaustion, or my newfound addiction to Call of Duty 2 capture the flag on Xbox Live.

I've realized lately that my COD 2 games have become quite a bit more fun. Somehow, I've been getting matched up with much better players that are at or around my skill level.

When you play in ranked COD 2 games on Xbox Live, there's a short blurb in the game about playing in ranked matches improving your "TrueSkill" score. Never having heard of it, I did a quick web search, and found a Microsoft Research project page!

Xbox.com says it best:

Half the fun is the game you play.
The other half is who you play with.


Totally 100% true.

I've come to realize that Microsoft Research (MSR) is in many ways one of Microsoft's greatest secret weapons. Trails of their work are found throughout Microsoft products everywhere - from Xbox to Office.

Recently, I've begun chatting with folks over there about incorporating some of their bleeding edge technology into the product I'm working on -- how many companies have such a resource at their disposal? A huge amount of their work is also published publicly on the web. If you've never browsed the MSR site, I'd definitely recommend checking it out - there are thousands and thousands of projects and papers posted just like the TrueSkill one above!

Sunday, July 23, 2006

Another New Experience

Over the weekend I flew up to Orcas Island in a 1981 Cessna Skyhawk with a pilot friend.

I took lots of pictures from the air.

I also took a video of our first take-off, and uploaded it to Google Video:



Link

MySpace is down, play pacman instead...

I went to myspace to read a new message someone sent me.. but it's down..


I think their chill attitude rocks.. "hopefully we'll be back online within the hour. its 6:40pm PST now. wanna place a bet? -Tom"..

Well, it's 9:40pm.. I guess Tom loses.. but at least they let me play pacman while I wait.

Myspace is the most viewed site on the Internet - above Yahoo, Google, and MSN. A whopping 4.46% of all US Internet visits during the first week of this month were to Myspace (according to Hitwise).

And despite that.. they still front the chill attitude - "hey bro, power's out.. play some pacman while we get it working aiiight?"

Wednesday, July 19, 2006

HTC Star Trek Lands


It's been a long time coming... but I'm just finally beginning to see HTC Star Trek phones appearing in coworkers hands and work.

I'd say this is officially the coolest phone to have today in Redmond, WA.

You can read a review here.

It'll still be a little while before the US mobile operators pick these babies up, but if you're itching to be on the cutting edge, you can pick an unlocked Qtek-branded model up here.

Sunday, July 16, 2006

Photo Highlights From Israel - July 2006

Funny billboard ad in New York City

IMG_1938

Microsoft building in Herzliya

IMG_1948

Projector in a fancy restaurant usually for projecting artistic images - but tonight world cup soccer

IMG_1977

Israeli Navy graduation ceremony

IMG_2063

Engrish

IMG_2099

Saint John's church

IMG_2107

Starting young

IMG_2137

Dome of the Rock

IMG_2154

Western Wall

IMG_2159

Inside the Church of the Holy Sepulchre

IMG_2165

The hike down from Masada

IMG_2198

Atop Masada

IMG_2183

Floating in the Dead Sea

IMG_2203

McDonalds at an Oasis in the middle of the desert

IMG_2207

Jeep excursion

IMG_2222

Israel/Jordan border crossing

IMG_2256

Hanging new pictures of the King

IMG_2277

The ancient city of Petra

IMG_2292

Camel drinking Coca Cola and water

IMG_2329

IMG_2332

IMG_2333

Eilat

IMG_2355

IMG_2361

Why aren't we smart enough to do this in the US

IMG_2364

IMG_2365

There's No Place Like Home

After 16 hours cramped up in airplanes, I'm back home from Israel.

At the last minute, I decided to join friends from Los Angeles on an excursion to Masada, the Dead Sea, Petra (an ancient city in Jordan you might recognize from the last Indiana Jones movie), and Eilat. I went about a week without checking email or blogging, and it was great. :-)

Thank you to everyone who sent text messages and emails asking if I was alive and telling me to come home. While the situation is serious and unfortunate, I sometimes feel that the media has a way of turning it into a riveting, entertaining, thriller.

While terrorism, and resulting military response, affects everyone in this world from New York City to London to Madrid to Taba to Bali to Mumbai to Afghanistan, at no time during my trip to Israel could I be found dodging Katyusha rockets in the streets.

But, I appreciate the concern nonetheless. And to those innocent Israelis, Palestinians, and Lebanese who are dodging rockets and bombs or worse, my heart goes out to all of you.

On a much lighter note, I've uploaded all of the photos from my trip. Some highlights to follow in my next entry.

Saturday, July 08, 2006

The Bubble


Saw an awesome movie tonight: The Bubble (imdb)

It was directed by Eytan Fox - same director as Walk on Water and Yossi & Jagger - and shared a few of the same cast members.

It'll likely be a few months before it makes it to the US and other countries, but I highly recommend checking it out if you're interested in Israeli culture/film, or just great foreign film in general.

Wednesday, July 05, 2006

Busy Day

Today I met the Israeli Defense Minister, Chief of Staff, Mayor of Haifa, had lunch with the former Mayor of Tel Aviv, and took 2 trips in a Black Hawk helicopter.

Vacation doesn't get much cooler than this.

Arrived: Tel Aviv!

IMAGE_146.jpgAfter a couple days of traveling, with a day stopover in New York city, finally arrived in Tel Aviv. The city is so amazing, beautiful, and fun - I will upload lots of cool pictures soon.

In New York City, my Dad and I grabbed breakfast at Norma's. They had a $1,000 omelet on the menu, which I found worthy of capturing with my camera phone, but we didn't spring for it (you can see it on their menu here).

I've seen a few new/interesting things so far along the way.

1. The Continental 1st class lounge in Newark is amazing. I'd never been in a 1st class lounge before (I snuck in with my Dad, who is flying 1st). Huge lounge, huge windows, comfy chairs, tables, free phones, places to plug in laptops, bar with free liquor, beer.. quite the way to fly. If I flew more often, I'd consider springing for one of these club memberships.

2. My Dad and I hit a Barnes and Noble (yes, after my last rant about them being overpriced), where I convinced him to pick up a copy of Robert Scoble and Shel Israel's book, Naked Conversations. I tried to convince him to start a blog last summer, but the effort dwindled due to lack of time. I think a blog could have some great effects on his temple in Los Angeles, so I'm going to keep pushing.

3. There are Windows Mobile ads *everywhere*. In Penn Station in NYC, the entire central waiting area was plastered with ads. The W downtown had a big Q ad down the side, and I've seen similar ones here in Israel. Every magazine I've been reading from Business Week to GQ has full page ads for multiple Windows Mobile devices. Between the pure Microsoft Windows Mobile marketing, and the operator-branded device marketing, it's absolutely insane.

Anyhow.. just a few notable things I've come across/thoughts that have been running through my mind.. I think that pictures from my non-camera-phone-camera will be incredibly powerful when I upload them - I'm trying to capture as much of the cool stuff I see as possible. Unfortunately, it's hard to capture the feeling of an hour run along the Mediterranean sea at 6:15am watching the sun come up along the old city of Jaffa. But, I'll share what I can. :)

Peace.

Sunday, July 02, 2006

Time Off

I'm going on vacation for 2 weeks to Tel Aviv.


When I see anything new and exciting, I'll be sure to blog it. I'll also try to upload new photos as often as possible - pictures from my last two trips to Israel are here and here.

I was running low on extra reading material around the house, and picked up a few new books today for my trip: Emotional Intelligence, The Design of Everyday Things, Built to Last, and Purple Cow. I'm also stuffing my messenger bag full of recent issues of Business Week, Fast Company, GQ, and Details that I haven't gotten to yet.

As I was creating the links to books at Amazon in the previous paragraph, I realized that I spent $78.17 on these 4 books at a brick and mortar Barnes and Noble. The Amazon.com total price: $47.22 (or $37.47 for cheaper editions I could've bought online but weren't at B&N).

I guess $40.70 is the price I pay for not thinking to order my books online ahead of time. Of course, I could save even more if I bought them used through Amazon like I used to do in college (the problem with used is that they arrive one by one, and I'm never around to accept deliveries - and no free shipping).

Anyhow, I'm surprised people still keep brick and mortar book stores in business. Oh wait, didn't the Borders in Bellevue just close?

Cya from the road.

Saturday, July 01, 2006

Free Phone Calls From WLLpbVEB


As if traffic wasn't cool enough... from Dare Obasanjo's blog, I noticed there's another new feature of WLLpbVEB*: Free Phone Calls (to businesses).

You simply click on the "Call" link, enter your phone number if it's your first time using the feature, and WLLpbVEB rings both you and the business you're calling.

Of course, since most mobile phones in the US charge the same for incoming and outgoing calls, I'm not exactly getting fired up over the 'free' part. But the convenience of "Click-to-Call", and not having to switch contexts and dial numbers, is pretty neat.

I'd like to see them extend this to dial directly from your computer via Windows Live Messenger VOIP integration. Then I wouldn't have to switch contexts or use mobile phone minutes at all - I could just speak through the built-in microphone in my Thinkpad laptop. Messenger already has the calling feature - unfortunately it isn't free. I'm not sure why I would pay to make calls from Messenger when I already pay to make essentially unlimited calls from my mobile phone... but perhaps I'm just not in the target market?

Switching gears here, this makes so much sense from a business point of view for Microsoft. Microsoft has now inserted itself as a middle man in establishing these calls, connecting consumers with businesses - sort of like Google has successfully been doing with their online advertising services. Similar to what's happened with web advertising, if businesses start to see large numbers of customers funneled through this service, they'll be more likely to advertise on the service.

I think the real question is whether a significant number of users will use WLLpbVEB or the Click-to-Call service. Check out this Business Week article on how very few people actually use Google services other than Search, and ironically here, Maps.

Unfortunately, my first time trying the service connected me with a disconnected Microsoft product support number (the one listed in the image above). Guess it's time to go report a bug. :-)


* WLLpbVEB stands for Windows Live Local powered by Virtual Earth Beta - it just means so much more than something simple like "Google Maps"!