Click here to Skip to main content
15,893,814 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
PraiseRe: Error handing is taking me more time than the functionality :( Pin
User 1537660031-Oct-21 6:05
User 1537660031-Oct-21 6:05 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 6:11
mvahoney the codewitch31-Oct-21 6:11 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
User 1537660031-Oct-21 6:22
User 1537660031-Oct-21 6:22 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 6:24
mvahoney the codewitch31-Oct-21 6:24 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
Greg Utas31-Oct-21 6:21
professionalGreg Utas31-Oct-21 6:21 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 6:28
mvahoney the codewitch31-Oct-21 6:28 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
Daniel Pfeffer31-Oct-21 6:55
professionalDaniel Pfeffer31-Oct-21 6:55 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 7:16
mvahoney the codewitch31-Oct-21 7:16 
It is, and yet this is particularly troublesome because error handling can typically get away with being "dumb" - basically flag early and often is the best case.

In this case, flagging early and often is the problem. I need to hold off reporting until after I've started matching again so I get the entire set of error characters as a single run. It's the delaying the reporting and then figuring out how far to "reach back" into my capture buffer for the error, as well as anchoring the initial error position so I can report it. It's maddening because i'm running into corner cases, and that screams "anti-pattern" to me, but I don't know if there's a "clean" way to do this.
Real programmers use butterflies

GeneralRe: Error handing is taking me more time than the functionality :( Pin
Gerry Schmitz31-Oct-21 7:43
mveGerry Schmitz31-Oct-21 7:43 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
ElectronProgrammer31-Oct-21 10:10
ElectronProgrammer31-Oct-21 10:10 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 10:59
mvahoney the codewitch31-Oct-21 10:59 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
charlieg31-Oct-21 11:33
charlieg31-Oct-21 11:33 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 12:05
mvahoney the codewitch31-Oct-21 12:05 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
Jon McKee31-Oct-21 11:33
professionalJon McKee31-Oct-21 11:33 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 12:01
mvahoney the codewitch31-Oct-21 12:01 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
Rick York31-Oct-21 18:37
mveRick York31-Oct-21 18:37 
GeneralRe: Error handing is taking me more time than the functionality :( Pin
honey the codewitch31-Oct-21 18:38
mvahoney the codewitch31-Oct-21 18:38 
QuestionMessage Closed Pin
30-Oct-21 17:06
giridhar k 202130-Oct-21 17:06 
AnswerRe: sub string using user input Pin
OriginalGriff30-Oct-21 20:40
mveOriginalGriff30-Oct-21 20:40 
GeneralRe: sub string using user input Pin
Chris C-B30-Oct-21 21:54
Chris C-B30-Oct-21 21:54 
JokeRe: sub string using user input Pin
Nelek30-Oct-21 22:07
protectorNelek30-Oct-21 22:07 
GeneralRe: sub string using user input Pin
OriginalGriff30-Oct-21 22:17
mveOriginalGriff30-Oct-21 22:17 
GeneralRe: sub string using user input Pin
Daniel Pfeffer31-Oct-21 6:56
professionalDaniel Pfeffer31-Oct-21 6:56 
GeneralRe: sub string using user input Pin
honey the codewitch31-Oct-21 7:19
mvahoney the codewitch31-Oct-21 7:19 
GeneralRe: sub string using user input Pin
dandy7231-Oct-21 3:19
dandy7231-Oct-21 3:19 

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.