Click here to Skip to main content
15,887,596 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: Ever heard of casting? Pin
Avi Berger16-Mar-10 4:38
Avi Berger16-Mar-10 4:38 
GeneralGet the length of the path (not the filename) Pin
Eric Haddan24-Feb-10 8:46
Eric Haddan24-Feb-10 8:46 
JokeRe: Get the length of the path (not the filename) Pin
PIEBALDconsult25-Feb-10 3:48
mvePIEBALDconsult25-Feb-10 3:48 
JokeRe: Get the length of the path (not the filename) Pin
Stanciu Vlad25-Feb-10 21:46
Stanciu Vlad25-Feb-10 21:46 
GeneralRe: Get the length of the path (not the filename) Pin
WiGgLr25-Feb-10 22:23
WiGgLr25-Feb-10 22:23 
GeneralRe: Get the length of the path (not the filename) Pin
PIEBALDconsult26-Feb-10 7:30
mvePIEBALDconsult26-Feb-10 7:30 
GeneralRe: Get the length of the path (not the filename) Pin
Michael J. Eber23-Mar-10 15:16
Michael J. Eber23-Mar-10 15:16 
GeneralPut your right paren in, take your right paren out... Pin
ColinBashBash16-Feb-10 9:27
ColinBashBash16-Feb-10 9:27 
I was asked to check why they're query wasn't working, so I was going to add a column to their table. I started to copy/paste a line... and the parens are just one of the million issues with this "classic" asp code... lovely
VBScript
'Write out the orders found.
Response.Write "<table width=1000 cellspacing=0 cellpadding=0 class=style1><tr>" _
& "<td width=40>" & (rsSearch("WKCTR") & "</td>" _
& "<td width=65>" & (rsSearch("START") & "</td>" _
& "<td width=65>" & (rsSearch("FINISH") & "</td>" _
& "<td width=60>" & (rsSearch("JOBNO") & "</td>" _
& "<td width=55>" & (rsSearch("ORDNO") & "</td>" _
& "<td width=35>" & (rsSearch("OPSEQ") & "</td>" _
& "<td width=55>" & (rsSearch("FITEM") & "</td>" _
& "<td width=215>" & (rsSearch("FDESC") & "</td>" _

& "<td width=45 class=style4>" & (rsSearch("REMAINING") & "</td>" _
& "<td width=45 class=style3>" & (rsSearch("TQCTD") & "</td>" _
& "<td width=45 class=style3>" & (rsSearch("SCRAP") & "</td>" _
& "<td width=45 class=style3>" & (rsSearch("ORTTL") & "</td>" _
& "<td width=45 class=style3>" & (Round(rsSearch("LABTIME")) & "</td>" _
& "<td width=45 class=style3>" & (Round(rsSearch("MACHTIME")) & "</td>" _
& "<td width=15 class=style3>" & (rsSearch("CONDS") & "</td>" _
& "<td width=45 class=style3>" & (rsSearch("CONQT") & "</td>" _
& "<td width=80>" & (rsSearch("OSTAT") & "</td>" _
& "</tr><br></table>")))))))))))))))))

GeneralRe: Put your right paren in, take your right paren out... Pin
ColinBashBash16-Feb-10 9:33
ColinBashBash16-Feb-10 9:33 
GeneralRe: Put your right paren in, take your right paren out... Pin
supercat917-Feb-10 12:01
supercat917-Feb-10 12:01 
GeneralRe: Put your right paren in, take your right paren out... Pin
sergiogarcianinja18-Feb-10 4:59
sergiogarcianinja18-Feb-10 4:59 
GeneralRe: Put your right paren in, take your right paren out... Pin
David Skelly18-Feb-10 5:44
David Skelly18-Feb-10 5:44 
GeneralRe: Put your right paren in, take your right paren out... Pin
Jason Vetter23-Feb-10 12:04
Jason Vetter23-Feb-10 12:04 
GeneralExstream Younit Testing Pin
leppie15-Feb-10 20:06
leppie15-Feb-10 20:06 
GeneralRe: Exstream Younit Testing Pin
Member 35753716-Feb-10 6:24
Member 35753716-Feb-10 6:24 
GeneralRe: Exstream Younit Testing Pin
leppie16-Feb-10 6:31
leppie16-Feb-10 6:31 
GeneralRe: Exstream Younit Testing Pin
Wes Jones16-Feb-10 18:29
Wes Jones16-Feb-10 18:29 
GeneralNow that's a first [modified] Pin
Wes Jones11-Feb-10 11:58
Wes Jones11-Feb-10 11:58 
GeneralRe: Now that's a first Pin
OriginalGriff11-Feb-10 21:44
mveOriginalGriff11-Feb-10 21:44 
GeneralRe: Now that's a first Pin
Wes Jones11-Feb-10 23:33
Wes Jones11-Feb-10 23:33 
GeneralRe: Now that's a first Pin
Chris Maunder13-Feb-10 10:48
cofounderChris Maunder13-Feb-10 10:48 
GeneralRe: Now that's a first Pin
Wes Jones15-Feb-10 7:51
Wes Jones15-Feb-10 7:51 
GeneralRe: Now that's a first Pin
Daniel Grunwald14-Feb-10 22:13
Daniel Grunwald14-Feb-10 22:13 
GeneralRe: Now that's a first Pin
Wes Jones15-Feb-10 7:44
Wes Jones15-Feb-10 7:44 
JokeRe: Now that's a first Pin
Avi Berger17-Feb-10 14:42
Avi Berger17-Feb-10 14:42 

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.