Click here to Skip to main content
15,891,136 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: Someone knows how fast this code can kill your application? Pin
PIEBALDconsult10-Jun-08 14:08
mvePIEBALDconsult10-Jun-08 14:08 
GeneralRe: Someone knows how fast this code can kill your application? [modified] Pin
Marcello Faga10-Jun-08 22:47
Marcello Faga10-Jun-08 22:47 
GeneralRe: Someone knows how fast this code can kill your application? Pin
OregonGhost11-Jun-08 2:13
OregonGhost11-Jun-08 2:13 
RantRe: Someone knows how fast this code can kill your application? Pin
Nathan Tuggy17-Jun-08 9:43
Nathan Tuggy17-Jun-08 9:43 
GeneralRe: Someone knows how fast this code can kill your application? Pin
PIEBALDconsult11-Jun-08 4:10
mvePIEBALDconsult11-Jun-08 4:10 
GeneralRe: Someone knows how fast this code can kill your application? Pin
Giorgi Dalakishvili11-Jun-08 6:04
mentorGiorgi Dalakishvili11-Jun-08 6:04 
GeneralRe: Someone knows how fast this code can kill your application? Pin
Paul Conrad2-Jul-08 17:49
professionalPaul Conrad2-Jul-08 17:49 
GeneralMust love to run twice Pin
che33589-Jun-08 7:34
che33589-Jun-08 7:34 
The following code I found some developer used very often. I just wonder might he loves to run getStatus twice to make sure his code executed perfect.

if(GetStatus(id) != "")
string status = GetStatus(id);

private string GetStatus(int recordId)
{
string s = "";
//First, use ADO.NET to get the Status of this recordId
//Then, assign the status to a string.
if(//Check to make sure there is data and not DB null)
s = //The data;

//Finally, return the string
return s;
}
GeneralRe: Must love to run twice Pin
CPallini9-Jun-08 8:34
mveCPallini9-Jun-08 8:34 
GeneralRe: Must love to run twice Pin
Vasudevan Deepak Kumar10-Jun-08 2:42
Vasudevan Deepak Kumar10-Jun-08 2:42 
JokeRe: Must love to run twice Pin
PIEBALDconsult10-Jun-08 14:11
mvePIEBALDconsult10-Jun-08 14:11 
GeneralRe: Must love to run twice Pin
Jonathan C Dickinson12-Jun-08 4:39
Jonathan C Dickinson12-Jun-08 4:39 
GeneralUgly or a horror? Pin
Naturality8-Jun-08 14:10
Naturality8-Jun-08 14:10 
GeneralRe: Ugly or a horror? Pin
luckeryin9-Jun-08 3:53
luckeryin9-Jun-08 3:53 
GeneralRe: Ugly or a horror? Pin
amweiss9-Jun-08 7:52
amweiss9-Jun-08 7:52 
GeneralRe: Ugly or a horror? Pin
Naturality9-Jun-08 8:54
Naturality9-Jun-08 8:54 
GeneralRe: Ugly or a horror? Pin
amweiss9-Jun-08 9:02
amweiss9-Jun-08 9:02 
GeneralRe: Ugly or a horror? Pin
Naturality9-Jun-08 9:07
Naturality9-Jun-08 9:07 
GeneralRe: Ugly or a horror? Pin
StevenWalsh10-Jun-08 10:48
StevenWalsh10-Jun-08 10:48 
GeneralRe: Ugly or a horror? Pin
Naturality10-Jun-08 15:13
Naturality10-Jun-08 15:13 
GeneralRe: Ugly or a horror? Pin
Stephen Hewitt10-Jun-08 15:50
Stephen Hewitt10-Jun-08 15:50 
GeneralRe: Ugly or a horror? Pin
Paul Conrad2-Jul-08 17:50
professionalPaul Conrad2-Jul-08 17:50 
GeneralBonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 8:29
sitebuilderAndy Brummer8-Jun-08 8:29 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
PIEBALDconsult8-Jun-08 9:22
mvePIEBALDconsult8-Jun-08 9:22 
GeneralRe: Bonus points to anyone that can figure this one out. Pin
Andy Brummer8-Jun-08 9:36
sitebuilderAndy Brummer8-Jun-08 9:36 

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.