Click here to Skip to main content
13,199,852 members (65,677 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
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
memberTheGreatAndPowerfulOz17-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
memberTheGreatAndPowerfulOz17-Jul-17 8:02 
AnswerRe: Is this the end of Doctor Who? Pin
TheGreatAndPowerfulOz17-Jul-17 5:44
memberTheGreatAndPowerfulOz17-Jul-17 5:44 
AnswerRe: Is this the end of Doctor Who? Pin
Kaladin17-Jul-17 5:48
memberKaladin17-Jul-17 5:48 
AnswerRe: Is this the end of Doctor Who? Pin
Pom Pey17-Jul-17 10:25
memberPom Pey17-Jul-17 10:25 
RantGarbage in, Garbage out Pin
Marc Clifton17-Jul-17 3:11
protectorMarc 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
memberCodeWraith17-Jul-17 3:18 
GeneralRe: Garbage in, Garbage out Pin
Marc Clifton17-Jul-17 3:26
protectorMarc Clifton17-Jul-17 3:26 
GeneralRe: Garbage in, Garbage out Pin
CodeWraith17-Jul-17 3:37
memberCodeWraith17-Jul-17 3:37 
GeneralRe: Garbage in, Garbage out Pin
harold aptroot17-Jul-17 3:37
memberharold aptroot17-Jul-17 3:37 
GeneralRe: Garbage in, Garbage out Pin
Marc Clifton17-Jul-17 3:50
protectorMarc Clifton17-Jul-17 3:50 
GeneralRe: Garbage in, Garbage out Pin
PIEBALDconsult17-Jul-17 6:24
protectorPIEBALDconsult17-Jul-17 6:24 
GeneralWSO CCC OTD 2017-07-17 Pin
OriginalGriff16-Jul-17 22:00
protectorOriginalGriff16-Jul-17 22:00 
GeneralRe: WSO CCC OTD 2017-07-17 Pin
pkfox17-Jul-17 0:22
memberpkfox17-Jul-17 0:22 
GeneralRe: WSO CCC OTD 2017-07-17 - we have a winner! Pin
OriginalGriff17-Jul-17 0:33
protectorOriginalGriff17-Jul-17 0:33 
GeneralRe: WSO CCC OTD 2017-07-17 - we have a winner! Pin
pkfox17-Jul-17 6:39
memberpkfox17-Jul-17 6:39 
GeneralMy friends, the scammers, struck again Pin
CodeWraith16-Jul-17 21:54
memberCodeWraith16-Jul-17 21:54 
GeneralRe: My friends, the scammers, struck again Pin
OriginalGriff16-Jul-17 22:01
protectorOriginalGriff16-Jul-17 22:01 
GeneralRe: My friends, the scammers, struck again Pin
CodeWraith16-Jul-17 22:25
memberCodeWraith16-Jul-17 22:25 
GeneralRe: My friends, the scammers, struck again Pin
OriginalGriff16-Jul-17 22:29
protectorOriginalGriff16-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 Balboos17-Jul-17 1:41
memberW Balboos17-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.


Advertise | Privacy |
Web03 | 2.8.171020.1 | Last Updated 22 Oct 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid