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

 
GeneralUnhandled Exceptions in a Bank Application [modified] Pin
Vasudevan Deepak Kumar28-Oct-07 23:53
Vasudevan Deepak Kumar28-Oct-07 23:53 
GeneralRe: Unhandled Exceptions in a Bank Application Pin
N a v a n e e t h29-Oct-07 2:00
N a v a n e e t h29-Oct-07 2:00 
GeneralRe: Unhandled Exceptions in a Bank Application Pin
Vasudevan Deepak Kumar29-Oct-07 3:15
Vasudevan Deepak Kumar29-Oct-07 3:15 
GeneralRe: Unhandled Exceptions in a Bank Application Pin
N a v a n e e t h29-Oct-07 18:32
N a v a n e e t h29-Oct-07 18:32 
GeneralRe: Unhandled Exceptions in a Bank Application Pin
Vasudevan Deepak Kumar30-Oct-07 0:17
Vasudevan Deepak Kumar30-Oct-07 0:17 
GeneralRe: Unhandled Exceptions in a Bank Application Pin
Fatbuddha 129-Oct-07 3:46
Fatbuddha 129-Oct-07 3:46 
GeneralRe: Unhandled Exceptions in a Bank Application Pin
Vasudevan Deepak Kumar30-Oct-07 0:18
Vasudevan Deepak Kumar30-Oct-07 0:18 
GeneralStupidity and Stuburnness [modified] Pin
Xiangyang Liu 刘向阳23-Oct-07 10:51
Xiangyang Liu 刘向阳23-Oct-07 10:51 
One of our ASP.NET web applications is supposed to use a java web service developed by another team. However, the service returns session errors about 50% of the time in development environment (credit to the jave team, at least it is failing at a consistent rate Smile | :) ). But it works fine in formal test and production environments.

Stupidity: As it turns out, when this java web service is called, it makes two calls to another java web service to do the work, and the second java web service is load balanced. The first call establishes a session with the second java web service on one of the two load balanced physical servers, the second call tries to use the established session, but 50% of the time the request landed on a different physical server, hence the session error. In formal test and production environments, back-doors are open to ensure that request to the second java web service is made directly to one physical server and that's why it does not have the session error.

Stuburnness: We requested that if the java web service can't be fixed to work properly, a similar back-door should be open in development environment so that we can get some work done. The answer is NO, instead we get a lecture about design principles, best practices, and beans/factories/containers/layers, etc. In other words, we are not worthy of using the java web service.

To this day, we are disabling the code to call to the java web service in development environment, hoping everything will be fine in formal test and production environments.

-- modified at 10:16 Wednesday 24th October, 2007


GeneralRe: Stupidity and Stuburnness Pin
John R. Shaw23-Oct-07 16:23
John R. Shaw23-Oct-07 16:23 
GeneralRe: Stupidity and Stuburnness Pin
abhishek chouksey24-Oct-07 1:07
abhishek chouksey24-Oct-07 1:07 
GeneralA Well-Documented Piece of....*bleep* Pin
Philip Laureano23-Oct-07 5:03
Philip Laureano23-Oct-07 5:03 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Rob Graham23-Oct-07 9:25
Rob Graham23-Oct-07 9:25 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Robert Royall23-Oct-07 9:41
Robert Royall23-Oct-07 9:41 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Jim Crafton26-Oct-07 14:41
Jim Crafton26-Oct-07 14:41 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Blake Miller31-Oct-07 3:26
Blake Miller31-Oct-07 3:26 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
John R. Shaw23-Oct-07 16:47
John R. Shaw23-Oct-07 16:47 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
dwilliss31-Oct-07 4:31
dwilliss31-Oct-07 4:31 
AnswerRe: PROLOG on LISP Pin
NimitySSJ29-Nov-07 20:47
NimitySSJ29-Nov-07 20:47 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Draugnar31-Oct-07 8:09
Draugnar31-Oct-07 8:09 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Dan Neely31-Oct-07 9:12
Dan Neely31-Oct-07 9:12 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Draugnar31-Oct-07 10:01
Draugnar31-Oct-07 10:01 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Dan Neely31-Oct-07 10:37
Dan Neely31-Oct-07 10:37 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Draugnar31-Oct-07 10:51
Draugnar31-Oct-07 10:51 
GeneralRe: A Well-Documented Piece of....*bleep* Pin
Draugnar31-Oct-07 10:54
Draugnar31-Oct-07 10:54 
GeneralCHOTD [modified] Pin
leppie21-Oct-07 23:22
leppie21-Oct-07 23:22 

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.