Click here to Skip to main content
15,894,017 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: Is this the end of Doctor Who? Pin
Bassam Abdul-Baki17-Jul-17 8:41
professionalBassam Abdul-Baki17-Jul-17 8:41 
GeneralRe: Is this the end of Doctor Who? Pin
TheGreatAndPowerfulOz17-Jul-17 8:31
TheGreatAndPowerfulOz17-Jul-17 8:31 
GeneralRe: Is this the end of Doctor Who? Pin
Bassam Abdul-Baki17-Jul-17 8:42
professionalBassam Abdul-Baki17-Jul-17 8:42 
GeneralRe: Is this the end of Doctor Who? Pin
TheGreatAndPowerfulOz17-Jul-17 8:02
TheGreatAndPowerfulOz17-Jul-17 8:02 
AnswerRe: Is this the end of Doctor Who? Pin
TheGreatAndPowerfulOz17-Jul-17 5:44
TheGreatAndPowerfulOz17-Jul-17 5:44 
AnswerRe: Is this the end of Doctor Who? Pin
Kaladin17-Jul-17 5:48
Kaladin17-Jul-17 5:48 
AnswerRe: Is this the end of Doctor Who? Pin
The pompey17-Jul-17 10:25
The pompey17-Jul-17 10:25 
RantGarbage in, Garbage out Pin
Marc Clifton17-Jul-17 3:11
mvaMarc Clifton17-Jul-17 3:11 
And not because of the garbage in.

So I'm working with someone else's code that calls a web service, and there's a bunch of so-called validations that occur up front to make sure that all the XML Sigh | :sigh: attributes in the call to the method that calls the web service are there and populated.

Thing is:
  1. There's several XML attributes that are not used by the anything, but are required. Chalk that up to some change at some point, but whoever made the change didn't clean up the validation routines.
  2. There's several XML attributes that are required but not tested for in the validation routine. More chalk.
  3. There are several XML attributes that are required only if other elements are missing. But nooo...you have to provide empty values for the attributes, even if they're not required because you're providing other values. For example, there's three options "businessName", "name", and "dbaName" -- now maybe a couple combinations are required in certain circumstances, but it just seems like an elephanting kludge because the incoming data is trashy to begin with.
  4. Defensive programming, like not hardcoding exact casing for attributes, verifying the attribute exists before you do .Value.Length==10 Sigh | :sigh: calls, nope.
Oh well, I suppose I should stop b*tching and just fix the damn code, but I'm definitely suffering from a "this is something a junior programmer should be doing with some guidance." Hmmm...that gives me an idea! Jig | [Dance]

Marc
Latest Article - Create a Dockerized Python Fiddle Web App

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: Garbage in, Garbage out Pin
CodeWraith17-Jul-17 3:18
CodeWraith17-Jul-17 3:18 
GeneralRe: Garbage in, Garbage out Pin
Marc Clifton17-Jul-17 3:26
mvaMarc Clifton17-Jul-17 3:26 
GeneralRe: Garbage in, Garbage out Pin
CodeWraith17-Jul-17 3:37
CodeWraith17-Jul-17 3:37 
GeneralRe: Garbage in, Garbage out Pin
harold aptroot17-Jul-17 3:37
harold aptroot17-Jul-17 3:37 
GeneralRe: Garbage in, Garbage out Pin
Marc Clifton17-Jul-17 3:50
mvaMarc Clifton17-Jul-17 3:50 
GeneralRe: Garbage in, Garbage out Pin
PIEBALDconsult17-Jul-17 6:24
mvePIEBALDconsult17-Jul-17 6:24 
GeneralWSO CCC OTD 2017-07-17 Pin
OriginalGriff16-Jul-17 22:00
mveOriginalGriff16-Jul-17 22:00 
GeneralRe: WSO CCC OTD 2017-07-17 Pin
pkfox17-Jul-17 0:22
professionalpkfox17-Jul-17 0:22 
GeneralRe: WSO CCC OTD 2017-07-17 - we have a winner! Pin
OriginalGriff17-Jul-17 0:33
mveOriginalGriff17-Jul-17 0:33 
GeneralRe: WSO CCC OTD 2017-07-17 - we have a winner! Pin
pkfox17-Jul-17 6:39
professionalpkfox17-Jul-17 6:39 
GeneralMy friends, the scammers, struck again Pin
CodeWraith16-Jul-17 21:54
CodeWraith16-Jul-17 21:54 
GeneralRe: My friends, the scammers, struck again Pin
OriginalGriff16-Jul-17 22:01
mveOriginalGriff16-Jul-17 22:01 
GeneralRe: My friends, the scammers, struck again Pin
CodeWraith16-Jul-17 22:25
CodeWraith16-Jul-17 22:25 
GeneralRe: My friends, the scammers, struck again Pin
OriginalGriff16-Jul-17 22:29
mveOriginalGriff16-Jul-17 22:29 
GeneralRe: My friends, the scammers, struck again Pin
Mycroft Holmes16-Jul-17 22:35
professionalMycroft Holmes16-Jul-17 22:35 
GeneralRe: My friends, the scammers, struck again Pin
W Balboos, GHB17-Jul-17 1:41
W Balboos, GHB17-Jul-17 1:41 
Generalengine stall Pin
V.16-Jul-17 20:45
professionalV.16-Jul-17 20:45 

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.