The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Quotes From the CAB War Room

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Peter G Provost

Posts: 849
Nickname: pprovost
Registered: Aug, 2003

Peter G Provost is a Solution Architect for Interlink Group in Denver, CO.
Quotes From the CAB War Room Posted: Jul 7, 2005 5:50 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Peter G Provost.
Original Post: Quotes From the CAB War Room
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Peter G Provost
Latest Posts From Peter Provost's Geek Noise

Advertisement

While working in the CAB war room (like the Delta Lounge[1] but bigger), there are a number of utterances that I seem to say all the time…

“Use inheritance to be reused, not to reuse.”

This is a bad mis-quoting from C++ Coding Standards: 101 Rules, Guidelines, and Best Practices. In it, Herb Sutter and Andrei Alexandrescu write, “Public inheritance is substitutability. Inherit, not reuse, but to be reused.” It continually amazes me how often developers will derive from a base class to reuse its functionality when they don’t actually mean for the new class to be substitutable for the other.

Additional reading: The Liskov Substitution Principle

“Nothing is better than deleting code and having your tests still pass.”

Assuming you have a nice test harness with good code coverage, nothing makes me happier than deleting code from the production system and leaving the unit tests working. After all, if the test doesn’t need it to pass, you don’t need it to be there.

Or, maybe you’re missing a test…

 “That class? I deleted it. There weren’t any tests, so I figured someone just forgot to delete it.”

 I did this a lot at the beginning of CAB, when I was still trying to “bend the team to my TDD will”.  In the end it had the desired result, and in fact, may have caused a bit of excess. But better that than no unit tests at all.

[1] Ron Jacobs did a couple of podcasts about The Delta Lounge here and here.

Read: Quotes From the CAB War Room

Topic: Bug System.ComponentModel.BindableSupport.Default? Previous Topic   Next Topic Topic: What's in your manifest file?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use