Click here to Skip to main content
15,887,283 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Converting a string to an int Pin
BobJanova14-Dec-11 3:50
BobJanova14-Dec-11 3:50 
RantDocumentation failure Pin
DerekT-P13-Dec-11 3:17
professionalDerekT-P13-Dec-11 3:17 
GeneralRe: Documentation failure Pin
GibbleCH13-Dec-11 4:29
GibbleCH13-Dec-11 4:29 
GeneralRe: Documentation failure Pin
DerekT-P13-Dec-11 4:52
professionalDerekT-P13-Dec-11 4:52 
GeneralRe: Documentation failure Pin
Nagy Vilmos13-Dec-11 5:27
professionalNagy Vilmos13-Dec-11 5:27 
GeneralRe: Documentation failure Pin
BobJanova13-Dec-11 23:42
BobJanova13-Dec-11 23:42 
GeneralRe: Documentation failure Pin
Nagy Vilmos13-Dec-11 23:54
professionalNagy Vilmos13-Dec-11 23:54 
GeneralRe: Documentation failure Pin
DerekT-P14-Dec-11 3:48
professionalDerekT-P14-Dec-11 3:48 
Absolutely agree with you. However, regardless of the API itself, the documentation was remiss in not specifying what the actual parameters required are. "Test-driven development" does not mean sending data to the API to "see what happens"! Documentation is PART of the deliverables for virtually any project. Whilst we may not like it, documenting our stuff is vital and not only that, but the documentation needs testing too. By that I mean if you follow the documentation, without any pre-existing knowledge, is the outcome correct? Whether the API returns just "Invalid" or "Invalid; should be one of 'xml','redirect' ..." etc doesn't change the fact the documentation is just plain wrong, by omission in this case. The depressing thing is this isn't new or unusual; I blogged about this over 2 years ago http://www.smallofficesolutions.co.uk/wordpress/index.php/2009/05/11/acuracy-is-improtant/[^] and in that case the API itself was returning a message referring to "missing field XmlData" whereas the documentation referred to "xmlData" (and the documentation was right in that instance, the API was wrong!)
GeneralRe: Documentation failure Pin
Sander Rossel20-Dec-11 7:59
professionalSander Rossel20-Dec-11 7:59 
GeneralRe: Documentation failure Pin
BillW3321-Dec-11 3:05
professionalBillW3321-Dec-11 3:05 
GeneralDo you not understand booleans? Pin
alanevans6-Dec-11 1:11
alanevans6-Dec-11 1:11 
GeneralRe: Do you not understand booleans? Pin
CDP18026-Dec-11 1:49
CDP18026-Dec-11 1:49 
GeneralRe: Do you not understand booleans? Pin
harold aptroot6-Dec-11 2:36
harold aptroot6-Dec-11 2:36 
GeneralRe: Do you not understand booleans? Pin
Fabio Franco12-Dec-11 8:05
professionalFabio Franco12-Dec-11 8:05 
GeneralRe: Do you not understand booleans? Pin
mostlyharmless196414-Dec-11 3:15
mostlyharmless196414-Dec-11 3:15 
GeneralRe: Do you not understand booleans? Pin
Fabio Franco14-Dec-11 4:06
professionalFabio Franco14-Dec-11 4:06 
GeneralRe: Do you not understand booleans? Pin
alanevans6-Dec-11 2:58
alanevans6-Dec-11 2:58 
GeneralRe: Do you not understand booleans? Pin
CDP18026-Dec-11 3:26
CDP18026-Dec-11 3:26 
GeneralRe: Do you not understand booleans? Pin
alanevans6-Dec-11 3:54
alanevans6-Dec-11 3:54 
GeneralRe: Do you not understand booleans? Pin
CDP18026-Dec-11 4:16
CDP18026-Dec-11 4:16 
GeneralRe: Do you not understand booleans? Pin
alanevans6-Dec-11 4:55
alanevans6-Dec-11 4:55 
GeneralRe: Do you not understand booleans? Pin
CDP18026-Dec-11 5:29
CDP18026-Dec-11 5:29 
GeneralRe: Do you not understand booleans? Pin
PIEBALDconsult9-Dec-11 1:55
mvePIEBALDconsult9-Dec-11 1:55 
GeneralRe: Do you not understand booleans? Pin
OriginalGriff9-Dec-11 2:50
mveOriginalGriff9-Dec-11 2:50 
GeneralRe: Do you not understand booleans? Pin
BobJanova9-Dec-11 4:15
BobJanova9-Dec-11 4:15 

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.