Click here to Skip to main content
15,899,935 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.

 
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 
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 
With IoT it has been robbing peter to pay paul such that I try to make my code fail, but fail nicely.

I don't have the cycles or the memory to do full error checking in many cases, so what you're left with is a kind of situation where if you can, you want the machine to reboot straight to the landing page after dumping a log. Obviously it shouldn't do that in production but in situations like this it's always a matter of "if someday comes where it does"

I can't harden an IoT device against network attacks for example because i don't have the cycles to do overrun checks and well-formedness checks even on my HTTP headers for example. I parse just enough to make it work, which means a malformed header could easily be eaten by my device.

Such is the lay of the land, and it *is* a different error handling ballgame. It always makes me feel a little dirty.

That's not to say it's like industrial embedded where the opposite is true, and despite working on hardware that is "just good enough" it has to be solid rather than fancy. With IoT, the reverse is typically true.
Real programmers use butterflies

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 
GeneralRe: sub string using user input Pin
Cp-Coder31-Oct-21 2:33
Cp-Coder31-Oct-21 2:33 
GeneralRe: sub string using user input Pin
Gerry Schmitz31-Oct-21 7:38
mveGerry Schmitz31-Oct-21 7:38 
AnswerRe: sub string using user input Pin
Johnny J.30-Oct-21 22:59
professionalJohnny J.30-Oct-21 22:59 
GeneralRe: sub string using user input Pin
OriginalGriff30-Oct-21 23:31
mveOriginalGriff30-Oct-21 23:31 
GeneralRe: sub string using user input Pin
Mike Hankey31-Oct-21 8:03
mveMike Hankey31-Oct-21 8:03 

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.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   479 votes