The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Exceptions

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Many methods - What's the performance cost?

Posted by Elchanan on May 16, 2000 at 1:25 PM

Many methods - What's the performance cost? (if any):
I'm consider what is better while logging exception,
(1) obj.WarningUniqeConstraint();
(2) obj.Warning("W0043"); // W0043-Warning Uniqe Constraint

The 1st case will cause hundreds of methods but it's nicely
programming, The 2nd case is one method but difficult to developers and maybe future maintain also.

What is better ?!





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us