Sander's Weblog

December 30, 2007

Unit Testing Not Necessarily teh suck

Filed under: Apple, Tech — Sander @ 5:09 pm

I finally took time to read Will Shipley’s impassionate 2005 post about unit testing and why he doesn’t do it. He’s of course exaggerating for effect and the post is best taken in together with BBum’s excellent follow-up where he argues that unit testing made a huge amount of sense for his project, but may be less relevant for software that directly interacts with users.

Unit testing serves to define and enforce the interface that a piece of code presents to the outside world, which makes most sense (and makes a whole lot of sense) when the user of the code is itself a program. Hence: libraries, Frameworks (oh wait, they are also teh suck) and the like. Having a comprehensive set of unit tests gives the folks who have to work with your code confidence in its quality, and gives you liberty to change stuff under the hood as you see fit, with no fear (ok, less fear) of breaking the confidence the other folks have.

Unit tests don’t find bugs. They ensure that there is no unpredictable behavior (bugs) in the bits they test, but they are not as good at finding new bugs that you didn’t know were there. That’s still up to other techniques like exploratory testing that Will likes so much better. Perhaps Unit Testing is incorrectly named, and we should be talking about Unit Verification.

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon

December 14, 2007

Stretch Desktop With the fglrx Driver

Filed under: Stuff, Tech — Sander @ 12:33 am

I have a new PC under my desk, and it seems that I now have my X setup the way I want it. The problem was with the dual head support: I wanted one desktop stretched across the two monitors, so I can drag windows across from one monitor to the other.

The default configuration merely mirrored one screen onto two monitors: a waste of desktop real estate. What I had before did put different X displays on the monitors: good but not great because I couldn’t drag across. On my old machine I could use the Xinerama extension to achieve the what I wanted, but turning that on made the driver for the new card (ATI’s proprietary fglrx) crash when the screensaver kicked in.
(more…)

Share this post:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon

Powered by WordPress