Click here to Skip to main content
15,888,330 members
Home / Discussions / C#
   

C#

 
GeneralRe: To Throw or Not To Throw Pin
Kevin Marois21-May-13 13:40
professionalKevin Marois21-May-13 13:40 
GeneralRe: To Throw or Not To Throw Pin
SledgeHammer0121-May-13 14:31
SledgeHammer0121-May-13 14:31 
AnswerRe: To Throw or Not To Throw Pin
SoMad21-May-13 13:55
professionalSoMad21-May-13 13:55 
AnswerRe: To Throw or Not To Throw Pin
PIEBALDconsult21-May-13 14:13
mvePIEBALDconsult21-May-13 14:13 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen21-May-13 22:29
professionalEddy Vluggen21-May-13 22:29 
AnswerRe: To Throw or Not To Throw Pin
Dave Kreskowiak21-May-13 14:29
mveDave Kreskowiak21-May-13 14:29 
GeneralRe: To Throw or Not To Throw Pin
PIEBALDconsult21-May-13 14:52
mvePIEBALDconsult21-May-13 14:52 
GeneralRe: To Throw or Not To Throw Pin
Keith Barrow22-May-13 2:20
professionalKeith Barrow22-May-13 2:20 
Dave Kreskowiak wrote:
The problem with this is that, one, Exceptions are a little expensive to throw

This is a bit of a myth.[^] if you run tests with the debugger on you get poor performance, without debugging it is OK.

Otherwise, I agree. We use the exceptions as business logic at work and I don't like it: We've 100s of exception classes (and a deep hierarchy) to handle cases that often should be state within a business object. Not only is there this exception-bloat but it makes stuff harder to trace: I have to work up through the potential call stack to see where something is handled. Not only that we rely on the exception being caught somewhere (if not the user gets an error screen for normal business logic), instead of a more traceable return result (or object state).

I can see where the "exception" camp comes from, but I think they are wrong.
“Education is not the piling on of learning, information, data, facts, skills, or abilities - that's training or instruction - but is rather making visible what is hidden as a seed”
“One of the greatest problems of our time is that many are schooled but few are educated”


Sir Thomas More (1478 – 1535)

GeneralRe: To Throw or Not To Throw Pin
Dave Kreskowiak22-May-13 2:25
mveDave Kreskowiak22-May-13 2:25 
AnswerRe: To Throw or Not To Throw Pin
V.21-May-13 23:38
professionalV.21-May-13 23:38 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 0:30
professionalEddy Vluggen22-May-13 0:30 
GeneralRe: To Throw or Not To Throw Pin
V.22-May-13 0:38
professionalV.22-May-13 0:38 
GeneralRe: To Throw or Not To Throw Pin
Eddy Vluggen22-May-13 6:55
professionalEddy Vluggen22-May-13 6:55 
GeneralRe: To Throw or Not To Throw Pin
jschell22-May-13 8:25
jschell22-May-13 8:25 
AnswerRe: To Throw or Not To Throw Pin
jschell22-May-13 8:47
jschell22-May-13 8:47 
QuestionFaster way of filling a Dataset Pin
MumbleB21-May-13 8:17
MumbleB21-May-13 8:17 
AnswerRe: Faster way of filling a Dataset Pin
Jasmine250121-May-13 9:29
Jasmine250121-May-13 9:29 
AnswerRe: Faster way of filling a Dataset Pin
SledgeHammer0121-May-13 11:30
SledgeHammer0121-May-13 11:30 
GeneralRe: Faster way of filling a Dataset Pin
Eddy Vluggen21-May-13 22:32
professionalEddy Vluggen21-May-13 22:32 
GeneralRe: Faster way of filling a Dataset Pin
SledgeHammer0122-May-13 4:48
SledgeHammer0122-May-13 4:48 
GeneralRe: Faster way of filling a Dataset Pin
Eddy Vluggen22-May-13 5:01
professionalEddy Vluggen22-May-13 5:01 
GeneralRe: Faster way of filling a Dataset Pin
SledgeHammer0122-May-13 6:54
SledgeHammer0122-May-13 6:54 
GeneralRe: Faster way of filling a Dataset Pin
Eddy Vluggen22-May-13 7:15
professionalEddy Vluggen22-May-13 7:15 
GeneralRe: Faster way of filling a Dataset Pin
MumbleB31-May-13 6:46
MumbleB31-May-13 6:46 
AnswerRe: Faster way of filling a Dataset Pin
Pete O'Hanlon21-May-13 23:06
mvePete O'Hanlon21-May-13 23:06 

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.