Click here to Skip to main content
15,911,711 members
Home / Discussions / C#
   

C#

 
GeneralRe: ref string Pin
Daniel Turini30-Apr-03 6:38
Daniel Turini30-Apr-03 6:38 
GeneralRe: ref string Pin
Le centriste30-Apr-03 9:13
Le centriste30-Apr-03 9:13 
GeneralMaking a file writable.. Pin
Le centriste30-Apr-03 5:55
Le centriste30-Apr-03 5:55 
GeneralSolved Pin
Le centriste30-Apr-03 9:14
Le centriste30-Apr-03 9:14 
GeneralRe: Solved Pin
kman29-May-03 9:50
kman29-May-03 9:50 
GeneralSerious MDI frusteration Pin
RB@Emphasys30-Apr-03 5:40
RB@Emphasys30-Apr-03 5:40 
GeneralRe: Serious MDI frusteration Pin
Daniel Turini30-Apr-03 5:48
Daniel Turini30-Apr-03 5:48 
GeneralRe: Serious MDI frusteration Pin
RB@Emphasys30-Apr-03 6:41
RB@Emphasys30-Apr-03 6:41 
GeneralRe: Serious MDI frusteration Pin
RB@Emphasys30-Apr-03 8:04
RB@Emphasys30-Apr-03 8:04 
QuestionGetting version number of browser control process? Pin
LongRange.Shooter30-Apr-03 4:29
LongRange.Shooter30-Apr-03 4:29 
AnswerRe: Getting version number of browser control process? Pin
Stephane Rodriguez.30-Apr-03 4:50
Stephane Rodriguez.30-Apr-03 4:50 
GeneralAsserts vs. ArgumentExceptions Pin
Alvaro Mendez30-Apr-03 4:02
Alvaro Mendez30-Apr-03 4:02 
GeneralRe: Asserts vs. ArgumentExceptions Pin
perlmunger30-Apr-03 4:48
perlmunger30-Apr-03 4:48 
Both of them have their place. In my mind the simplest distinction is that Assertions are used for debugging (for the programmer) and Exceptions are used for graceful error handling (for the end-user). I don't think that a production ready application should ever be causing assertions, though. So, my answer to your question is "use both"--assertions to debug your code and exceptions to handle errors gracefully. Wink | ;-)

-Matt

------------------------------------------

The 3 great virtues of a programmer:
Laziness, Impatience, and Hubris.
--Larry Wall
GeneralRe: Asserts vs. ArgumentExceptions Pin
Alvaro Mendez30-Apr-03 5:32
Alvaro Mendez30-Apr-03 5:32 
GeneralCasting Pin
apollo-house30-Apr-03 3:02
apollo-house30-Apr-03 3:02 
GeneralRe: Casting Pin
Stephane Rodriguez.30-Apr-03 3:34
Stephane Rodriguez.30-Apr-03 3:34 
GeneralRe: Casting Pin
Nathan Blomquist30-Apr-03 7:43
Nathan Blomquist30-Apr-03 7:43 
GeneralCasting Pin
apollo-house30-Apr-03 3:01
apollo-house30-Apr-03 3:01 
GeneralRichTextBox - tab size Pin
Jucovschi Petru30-Apr-03 2:11
Jucovschi Petru30-Apr-03 2:11 
Generaldates in C# Pin
Andy H29-Apr-03 23:26
Andy H29-Apr-03 23:26 
GeneralRe: dates in C# Pin
ChrisDM30-Apr-03 1:02
ChrisDM30-Apr-03 1:02 
GeneralRe: dates in C# Pin
Andy H30-Apr-03 1:22
Andy H30-Apr-03 1:22 
QuestionAnyone interested in high quality gif article? Pin
BigAndy29-Apr-03 22:59
BigAndy29-Apr-03 22:59 
AnswerRe: Anyone interested in high quality gif article? Pin
Uwe Keim30-Apr-03 3:17
sitebuilderUwe Keim30-Apr-03 3:17 
AnswerRe: Anyone interested in high quality gif article? Pin
J. Dunlap30-Apr-03 8:20
J. Dunlap30-Apr-03 8:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.