Click here to Skip to main content
15,887,485 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: how to know the job retention capabilities of printer Pin
Ri Qen-Sin28-Feb-08 18:40
Ri Qen-Sin28-Feb-08 18:40 
GeneralInt? What's "int"? Pin
Brady Kelly23-Feb-08 2:23
Brady Kelly23-Feb-08 2:23 
GeneralRe: Int? What's "int"? Pin
PIEBALDconsult23-Feb-08 4:06
mvePIEBALDconsult23-Feb-08 4:06 
JokeRe: Int? What's "int"? Pin
Jason Lepack (LeppyR64)25-Feb-08 9:22
Jason Lepack (LeppyR64)25-Feb-08 9:22 
GeneralRe: Int? What's "int"? Pin
leppie23-Feb-08 22:04
leppie23-Feb-08 22:04 
GeneralRe: Int? What's "int"? PinPopular
PIEBALDconsult24-Feb-08 15:47
mvePIEBALDconsult24-Feb-08 15:47 
GeneralRe: Int? What's "int"? Pin
StM0n25-Feb-08 2:50
StM0n25-Feb-08 2:50 
GeneralKeeping the server busy Pin
Duncan Edwards Jones22-Feb-08 1:19
professionalDuncan Edwards Jones22-Feb-08 1:19 
Extracted from a really slow stored proc:

<br />
SELECT  0 * Sum(IIf([amortisedClosePriceIssueYld]=0 Or [amortisedClosePrice]=0,0,-[bsqflag]*[closedq]*[valpoint]*([amortisedClosePriceIssueYld]-[amortisedtpissueyld]))) AS LocalRealisedAmortIssue<br />
FROM ((((PL1RPLCloseOuts INNER JOIN seclocal AS sec ON PL1RPLCloseOuts.id = sec.id) LEFT JOIN SecTypeValidationRuleslocal AS SecTypeValidationRules ON sec.sectype = SecTypeValidationRules.sectype) INNER JOIN TradeFundlocal AS TradeFund ON PL1RPLCloseOuts.fund = TradeFund.fund) INNER JOIN tradetlocal AS TradeT ON PL1RPLCloseOuts.tt = TradeT.tt) INNER JOIN PL1RplTaxlots ON (PL1RPLCloseOuts.tnum = PL1RplTaxlots.tnum) AND (PL1RPLCloseOuts.tt = PL1RplTaxlots.tt)<br />


Yes indeed - do a huge amount of maths and multiply the resulting figure by zero...oh

'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd

GeneralRe: Keeping the server busy Pin
liquidplasmaflow22-Feb-08 9:13
liquidplasmaflow22-Feb-08 9:13 
GeneralRe: Keeping the server busy Pin
PIEBALDconsult22-Feb-08 10:09
mvePIEBALDconsult22-Feb-08 10:09 
GeneralRe: Keeping the server busy Pin
Bram van Kampen28-Feb-08 11:51
Bram van Kampen28-Feb-08 11:51 
GeneralRe: Keeping the server busy Pin
Robert Royall22-Feb-08 9:53
Robert Royall22-Feb-08 9:53 
GeneralRe: Keeping the server busy Pin
Vasudevan Deepak Kumar25-Feb-08 3:01
Vasudevan Deepak Kumar25-Feb-08 3:01 
GeneralRe: Keeping the server busy Pin
Russell Jones25-Feb-08 7:04
Russell Jones25-Feb-08 7:04 
GeneralRe: Keeping the server busy Pin
PIEBALDconsult28-Feb-08 12:13
mvePIEBALDconsult28-Feb-08 12:13 
GeneralSeems familiar? Pin
gnjunge21-Feb-08 0:37
gnjunge21-Feb-08 0:37 
GeneralRe: Seems familiar? Pin
PIEBALDconsult21-Feb-08 5:35
mvePIEBALDconsult21-Feb-08 5:35 
GeneralRe: Seems familiar? Pin
Dave Kreskowiak21-Feb-08 6:36
mveDave Kreskowiak21-Feb-08 6:36 
GeneralRe: Seems familiar? Pin
PIEBALDconsult21-Feb-08 7:55
mvePIEBALDconsult21-Feb-08 7:55 
GeneralRe: Seems familiar? Pin
gnjunge21-Feb-08 20:08
gnjunge21-Feb-08 20:08 
GeneralRe: Seems familiar? Pin
PIEBALDconsult22-Feb-08 8:16
mvePIEBALDconsult22-Feb-08 8:16 
GeneralRe: Seems familiar? Pin
Guido_d22-Feb-08 2:41
Guido_d22-Feb-08 2:41 
GeneralRe: Seems familiar? Pin
PIEBALDconsult22-Feb-08 7:29
mvePIEBALDconsult22-Feb-08 7:29 
GeneralRe: Seems familiar? Pin
Steve Westbrook7-Mar-08 9:20
Steve Westbrook7-Mar-08 9:20 
GeneralRe: Seems familiar? Pin
Christoph Menge23-Feb-08 13:48
Christoph Menge23-Feb-08 13:48 

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.