Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
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 
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 
V. wrote:
Don't shoot me for giving an honest reply. Smile | :)

(I think hope you didn't mean too)
I never mean to, but interhuman-communication isn't one of my strong points. Then again, the worst that could happen are a few downvotes, and I might learn something Thumbs Up | :thumbsup:

V. wrote:
And thus, no problem?
Nah; just that it's not a heavy operation. Still, you made me curious. Can you give me an example of the problem you're trying to avoid?

V. wrote:
Since your dutch, dat is wel héél kort door de bocht.
"Kort door de bocht" is geen argument; omrijden is nooit een wijs idee. For the English reader; "kort door de bocht" means taking a (inofficial) shortcut; and in coding, KISS is preferred.

V. wrote:
(sorry didn't know the English expression)
A "jump to conclusions-mat". Seen the movie "Office Space"?

V. wrote:
You're comparing integers and exceptions which is like comparing apples with pears.
No, I'm taking a particular use that we have for exceptions, and wondered what alternatives there could be, and whether they're more preferable or not.

I have seen "True, False, EFileNotFound" in code too often. It's easier to create a new Exception, to throw it, and to handle it. Yes, I'd say that such even goes for the validation of a BO. Why? Because it'll be guaranteed in a "correct" state; no illegal values in any properties, as it would throw an exception.

My old PC did around 10k exceptions in a second (throwing and handling). The one at work did around 33k in a second, and the new PC (new means "from the store a week ago") does 48000 exceptions per second.

..and only 192 in debug mode.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

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 
GeneralRe: Faster way of filling a Dataset Pin
MumbleB31-May-13 6:40
MumbleB31-May-13 6:40 
QuestionValidate textbox (characters) Pin
Member 991209121-May-13 7:55
Member 991209121-May-13 7:55 
AnswerRe: Validate textbox (characters) Pin
Richard MacCutchan21-May-13 21:10
mveRichard MacCutchan21-May-13 21:10 
QuestionTrick to Access derived class method from base Pin
dinesh.17krishnan21-May-13 1:42
dinesh.17krishnan21-May-13 1:42 
AnswerRe: Trick to Access derived class method from base Pin
OriginalGriff21-May-13 1:57
mveOriginalGriff21-May-13 1:57 

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.