Click here to Skip to main content
15,887,946 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: Beware while using Japanese language Pin
dawmail33329-Sep-10 0:49
dawmail33329-Sep-10 0:49 
GeneralRe: Beware while using Japanese language Pin
Jecc29-Sep-10 3:38
Jecc29-Sep-10 3:38 
GeneralRe: Beware while using Japanese language Pin
dawmail33329-Sep-10 14:01
dawmail33329-Sep-10 14:01 
GeneralRe: Beware while using Japanese language Pin
sucram7-Oct-10 3:53
sucram7-Oct-10 3:53 
GeneralRe: Beware while using Japanese language Pin
Richard A. Dalton30-Sep-10 0:13
Richard A. Dalton30-Sep-10 0:13 
GeneralRe: Beware while using Japanese language Pin
Marc Clifton7-Oct-10 12:52
mvaMarc Clifton7-Oct-10 12:52 
GeneralRe: Beware while using Japanese language Pin
fjdiewornncalwe29-Sep-10 1:14
professionalfjdiewornncalwe29-Sep-10 1:14 
GeneralRe: Beware while using Japanese language Pin
djdanlib29-Sep-10 5:20
djdanlib29-Sep-10 5:20 
That's basically the same thing as VB code that uses ON ERROR RESUME NEXT... *shudder*

Reminds me of a story I heard. This college student asked the instructor why his code didn't pass. As in, he got a failing grade. "But there aren't any errors! It compiles!", he argued! Well, it turned out that he'd commented out every line that caused a compilation error, and this cascaded into him commenting out EVERY LINE of his "code" which wasn't any good anyway. Since it didn't create a compilation error, he figured it was correct and submitted it without TESTING it.

I've seen similar things happen in production code, though... mostly from managerial types who learned a little VB in the 90's and bought a couple custom controls and wrote a quick little hacky tool that worked for them and suddenly other people wanted a copy... then years later it's the standard tool for the company... and ugliness happened when some poor shmuck like myself had to add functionality, fix a bug or port it to a web interface Dead | X|
GeneralRe: Beware while using Japanese language Pin
Vikram A Punathambekar29-Sep-10 4:50
Vikram A Punathambekar29-Sep-10 4:50 
GeneralRe: Beware while using Japanese language Pin
GenJerDan27-Sep-10 9:03
GenJerDan27-Sep-10 9:03 
GeneralRe: Beware while using Japanese language Pin
meaningoflights29-Sep-10 16:23
meaningoflights29-Sep-10 16:23 
GeneralRe: Beware while using Japanese language Pin
Blake Miller27-Sep-10 11:46
Blake Miller27-Sep-10 11:46 
GeneralRe: Beware while using Japanese language PinPopular
Luc Pattyn27-Sep-10 12:09
sitebuilderLuc Pattyn27-Sep-10 12:09 
GeneralRe: Beware while using Japanese language Pin
PIEBALDconsult27-Sep-10 15:19
mvePIEBALDconsult27-Sep-10 15:19 
GeneralRe: Beware while using Japanese language Pin
Peter_in_278027-Sep-10 15:37
professionalPeter_in_278027-Sep-10 15:37 
GeneralRe: Beware while using Japanese language Pin
skcsknathan00129-Sep-10 5:08
skcsknathan00129-Sep-10 5:08 
GeneralWhich one is better [modified] Pin
Khaniya24-Sep-10 20:06
professionalKhaniya24-Sep-10 20:06 
GeneralRe: Which one is better Pin
PIEBALDconsult24-Sep-10 21:41
mvePIEBALDconsult24-Sep-10 21:41 
GeneralRe: Which one is better Pin
DaveAuld25-Sep-10 2:54
professionalDaveAuld25-Sep-10 2:54 
GeneralRe: Which one is better Pin
PIEBALDconsult25-Sep-10 10:23
mvePIEBALDconsult25-Sep-10 10:23 
GeneralRe: Which one is better Pin
Khaniya26-Sep-10 0:27
professionalKhaniya26-Sep-10 0:27 
GeneralRe: Which one is better Pin
DaveAuld26-Sep-10 1:29
professionalDaveAuld26-Sep-10 1:29 
GeneralRe: Which one is better Pin
Richard A. Dalton25-Sep-10 21:59
Richard A. Dalton25-Sep-10 21:59 
GeneralRe: Which one is better Pin
PIEBALDconsult26-Sep-10 4:42
mvePIEBALDconsult26-Sep-10 4:42 
GeneralRe: Which one is better Pin
Electron Shepherd26-Sep-10 11:20
Electron Shepherd26-Sep-10 11:20 

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.