Sunday, March 25, 2007

Ten Things You Should Know As A Developer

Andres Taylor gives us his top ten things he's learned about software development.  The list is insightful and definitely worth reading.  Here are my two favorites and my interpretation of them:



  • It all comes down to working software - People pay you for what software does, not how it does it.  No one is paying you to be clever.  They're paying you to get some job accomplished.  Thus, only be clever when you need to be.  This hearkens back to previous discussions on the idea of tradeoffs in software.

  • Your colleagues are your best teachers - In my words, it is better to be a little fish in a big pond than a big fish in a little pond.  One of the things I really enjoy about working at Microsoft is all the smart people I get to work with.  There's always someone who knows more than me on any subject.  We have a culture where people are willing to teach too so there's always something to learn.

Saturday, March 24, 2007

Showstopper!

I just finished reading Showstopper! by G. Pascal Zachary.  It recounts the creation of Windows NT starting with the hiring of Dave Cutler in October 1988 and ending with the shipping of the first version of NT on July 26, 1993.  The book puts a lot in perspective.  NT took nearly 5 years of grueling work.  The book spends a lot of time talking about the impact work on NT had on the personal lives of the team members.  Many didn't see their families much at all for extended periods of time.  It wasn't uncommon for people to pull repeated all-nighters.  We seem to have learned something from this in the past decade.


The book also calls out the contribution of the testing teams.  This is rare in these sort of books.  I've read about the creation of the Mac, the IMP, the XBox, etc. and almost never is testing mentioned.  It's good to read a book which recounts not only the work done by developers but also the heroic efforts of the testers.


If you have an interest in computing history or in the development of large systems, this book is a good one to pick up.  It puts you in the middle of the creation of the OS that runs on so many computers across the world.


I also ran across this interesting paragraph talking about the app-compat work:



The conflict stemmed from the differing priorities of the two sides.  Intent on refining their general model, programmers didn't want to distract themselves by fixing bugs.  Meanwhile, testers wanted to test.  This was a pointless activity when they saw the same bugs week after week. (p. 257)


That sounds a lot like what I was mentioning in my post about single-focus roles.  Each side is so focused on what it is tasked with doing that it doesn't take into account the needs of the other side.

Thursday, March 22, 2007

Some Good Advice for Managers

Some good advice for managers courtesy of the guys at Business Intelligence Lowdown.  They give 73 tips.  Not all of them are eye-opening but I'm sure there are some items here you haven't considered.  A few of my favorites:



  • Do not rake employees over the coals for mistakes that happen inadvertently. Instead, help them understand the error so they don't repeat it.

  • Indifference is as bad, if not worse, than too much interference. Take the right amount of interest in what your employees do.

  • Keep your employees within the loop. Inform them of all decisions that will affect and be affected by their work. Don't treat them as mindless machines that are used only to get the job done.

  • It's hard to swallow pride and admit that you're wrong, especially to your subordinates. Doing so will not only make them admire you more, but also make it easier for them to admit their own mistakes.

And a few they didn't include:



  • Vacations are sacrosanct:  When an employee is on vacation, don't expect them to be doing work.  Encourage them to avoid checking e-mail.  You can survive without them.  I promise.

  • Have your employees' backs:  Shield them from upper management.  Take the heat for them when they make mistakes.  If your employees believe you're on their side, they'll be more willing to do what you want.  If they think you are in the pocket of upper management, they'll think twice before tasking risks for you.

  • Listen:  You're hiring people smarter than you.  Listen to them.  They might be right.

Wednesday, March 21, 2007

Beware of Single Focus Roles

I recently attended a talk advocating combining the management of test development and development.  Some of the reasoning for this was to force the quality decisions to fall onto one person.  This makes a lot of sense.  It is important to understand why.  Many times in large software development projects we compartmentalize the various roles.  This is true not just of test and development but also roles like performance, security, customer service, etc.  This compartmentalization has a direct effect on how people operate.  When someone is responsible for only one aspect of a product, they will often make the right choices for their aspect but the wrong ones for the product overall.

In the traditional software model, test and development are two distinct silos.  The disciplines report to different people and perform different jobs.  This creates tension between the roles.  This tension arises not just because of the variance of roles but also because of the variance of purpose.  Development wants to add features and test wants to constrain them.  To ship a quality product, you need to strike a balance.  Too many features and the quality will be too low.  People won't tolerate it.  Too much quality and there won't be enough features to attract customers.  Imagine a field.  One one side is quality and the other features.  Now imagine a line drawn between them.  To increase quality, you must decrease features.  Each decision is a tradeoff.

Security is also an area that is fraught with tradeoffs.  The Windows of old shows what can happen if not enough attention is paid to security.  Trusted Solaris shows what happens if you pay too much.  Not enough attention and the system becomes a haven for viruses, bots, etc.  Too much and the system is years behind, runs slow, and is very hard to use. 

Performance can be similar.  Many changes that increase performance are intrusive.  Making them involves trading stability for performance.  Other times the performance wins are not visible to the end user.  Are they still worth making?  Finally, if you are not allowed to degrade performance, it is very hard to add new features.  Assuming your previous implementation was not poorly designed, it can be nigh unto impossible to add functionality without increasing CPU usage.

In each of these cases--and many others--a person or team tasked with improving only one side of the coin will make decisions that are bad for the product.  Recall that good engineering is about making the right tradeoffs.  To make them, one must consider both what is to be gained and what is to be lost.  When we give someone a role of focusing solely on security or performance or adding features, we skew their decisions.  We implicitly make one side of the coin trump the other.  If a person's review is based only on the performance improvements they made in the product, that person will be disinclined to care about how important the new functionality is.  If they are tasked solely with securing a product, they will tend not to consider the functionality they break when plugging a potential hole.

The right decisions can only be made at the place where a person is accountable for both sides of the tradeoff.  If the different silos (test, dev, security , performance) are too far separated, this place becomes upper management.  This is dangerous because upper management often does not have the time to become involved nor do they have the understanding to make the right decision.  Instead, it is better to drive that responsibility lower in the chain.  Having engineering leads (not dev leads and test leads) as the talk advocated is one way to accomplish this.  One person is responsible for the location of the quality line.  Another way is to increase interaction between silos.  Personal bonds can overcome a lot of process.  Sharing responsibility can work wonders.  Consider dividing the silos into virtual teams that cut horizontally across disciplines.  Make those people responsible as a group for some part of the product.  As is often the case, measuring the right metrics is half of success.

Tuesday, March 20, 2007

Selling Discrete Audio Cards Isn't Easy

EliteBastards has an interesting article speculating about the future of Creative Labs.  Creative was one of the first PC sound add-in boards (AdLib was the first that I recall).  They are certainly the most successful of the PC audio card manufacturers.


The author talks about the threats to Creative caused by the changes to the Vista audio stack, increased competition in the discrete audio board market, and the dominance of motherboard audio.  I think there are really two main factors which make life hard for Creative:



  1. Accelerated gaming audio isn't as necessary as it used to be.  Faster CPUs make it possible to mix dozens of audio channels together without the need for specialized hardware.

  2. The quality of onboard audio is going up.  With the introduction of the HDAudio specification, onboard audio is able to get closer to feature parity with discrete parts.  The new audio fidelity requirements for Windows Logo compliance are driving higher quality audio into the system and helping to remove the quality deficit found in so many last-generation motherboard audio implementations.

That's not to say that Creative is out of it.  They still have a very powerful brand name and some nice hardware in their X-Fi cards.  There are still reasons to own add-in cards.  It's easier to get audio right on a discrete card than on the motherboard with all the signal noise right next to the analog audio traces.  Creative is also the only real game in town for accelerated gaming audio and a lot of games still utilize it.


The article not only talks about the PC sound card market but also gives a decent overview of the changes Vista made to the sound pipeline.

Thursday, March 15, 2007

Interview With Dave Caulton of Zune

Windows Weekly has an interesting interview with Dave Caulton of the Zune team in this week's netcast.  Dave discusses interesting issues like:



  1. The Universal deal

  2. Zune Christmas sales

  3. Is the Zune doing as well as expected?

  4. Zune's wireless capabilities and future

  5. What about Netcasts?

Dave Caulton is well-spoken and answers the questions candidly.  I didn't get the feeling he was trying to spin.  Then again, I'm a Microsoftie too so I'm probably biased.  If you are interested in the Zune, I suggest you give it a listen.

Tuesday, March 13, 2007

Programming Language Hierarchy

My last post made me recall this programming language hierarchy I ran across some time ago.  Read it for the humor, not the accuracy.