Wednesday, April 25 2007

A couple of years back I wrote a short piece titled "Edit and Continue - Valuable Tool, or Sloppy Vice?"

I pondered whether some development tools and practices -- such as test-driven development (TDD) and the reduced cost of errors (in both time and personal reputation) -- were actually making us worse developers, paradoxically decreasing productivity and the suitability and correctness of solutions.

That entry was motivated by the outpouring of demands by my peers that a particular tool continue to feature edit-and-continue functionality: what I thought would be an infrequently used frill turned out to be something that many depended upon daily, correcting their flawed code at runtime as a regular part of their process.

Today I came across DevGrind's How not to solve a Sudoku entry -- itself linking to Ravi Mohan's "Leaning from Sodoku Solver" -- where he links to a gent who implemented a thoughtful, sober design carefully, and another who pursued a TDD-approach, building his test harness, and then, it appears, flailing about madly in the hopes that some random keypresses will generate a solution that passes the test.

To demonstrate the value of TDD.

...Today's blast from the past is To GUID or not to GUID in your Database, where I describe the benefits and pratfalls of GUIDs in the database.

   

Reader Comments

Here's another perspective:

http://www.codinghorror.com/blog/archives/000817.html
Colm O'Connor @ 4/26/2007 5:29:08 AM
Jeff fell into the too-common trap of linking to the terribly flawed GUID defense pages --

-that did unrealistic tests where the entire database was cached in memory.

-that contrived ridiculous methods of generating GUIDs, completely eliminating the purpose of the GU in the acronym.

GUIDs definitely have a place, but the cites that Jeff gives to dispel the "myth" of the cost of GUIDs shouldn't convince anyone.
Dennis Forbes @ 4/26/2007 8:02:52 AM

Add Comment

Name *:

Email Address:

(your email address is not displayed)
Website:

Comment *:



About the Author
Dennis Forbes Dennis Forbes is a Toronto-based software architect. While focused primarily on the .NET and SQL Server worlds, Dennis frequently ventures outside of this comfort zone into game development and image processing. He has been published in several industry magazines, has been quoted in the Wall Street Journal and has been interviewed by NPR.

He is a vice president and lead software architect at an innovative New York City hedge fund back-office services firm.

Dennis has been working on solutions for the financial, telecommunications, and power generation markets for over 15 years.





 

Dennis Forbes