Comments and Hot Water
“…and they don’t even comment their code…” said Brian as he explained noisily why the project he was code reviewing was poor enough to get someone fired.
“But comments are evil” I said, defending code that was not mine and I had never seen. “Comments are an excuse for writing unreadable code that nobody other than the writer can understand … and they go out-of-date quicker than you can say ‘jack robinson’ so you can’t trust them even if they’re there.”
As the looks of incredulity greeted me from around the office I realised that, perhaps, I hadn’t done enough groundwork before making this statement.
“It’s like those ‘Very Hot Water’ signs you get in office bathrooms” I went on. “The problem is that the water is too bloody hot, ” I aspoused “but instead of fixing the water temperature somebody, almost certainly in a meeting where the guy who controls the water temerature wasn’t present, orders the installation of the evil signs”.
Still ranting on I point out that “the whole purpose of which is to present a defence in the event that someone gets scalded and decides to sue”.
“They actually turn the water temerature up to kill any germs in the pipes” a small voice threw across the room.
But the point still stands. Stop insisting developers write comments and start insisting they write _human_ readable code.
Search
Right Now (ish)
- hmmm, trying to debug (someone else's overly compleicated) code from a long time ago 19 mins ago
- @kiyanwang the office is nice and warm... in reply to kiyanwang 1 hr ago
- lmao: http://www.comparethemeerkat.com/ 19 hrs ago
- More updates...
Categories
- .Net Technical
- Blog on Blog
- commands I have issued
- Enterprise Architecture
- event
- Fiction Book Review
- Food
- Interaction Design
- Internet Social Impact
- Internet Technical
- IP Law
- Library Tech
- Music
- New Toy
- Non-Fiction Book Review
- Other Technical
- Personal
- Random Thought
- Resourcing
- Security And Privacy
- Semantic Web
- Software Business
- Software Engineering
- Talis Technical
- Uncategorized
- Working at Talis
- [grid::blogpaper]
- [grid::fatherhood]
Archive
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- December 2007
- November 2007
- October 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- September 2006
- August 2006
- June 2006
- February 2006
- January 2006
- December 2005
- November 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- December 2003
- November 2003
- August 2003
- July 2003
- June 2003
- May 2003
- March 2003
- January 2003
- May 2002
- March 2002
- August 2001
- May 2001
- April 2001
- January 2001
- December 2000
- November 2000
- December 1999
- November 1999
- July 1999