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

 
GeneralThe result was that people learnt to check for warnings before they checked in their code. Pin
jsc4216-Jan-12 23:01
professionaljsc4216-Jan-12 23:01 
GeneralRe: The result was that people learnt to check for warnings before they checked in their code. Pin
Nagy Vilmos16-Jan-12 23:54
professionalNagy Vilmos16-Jan-12 23:54 
GeneralRe: The result was that people learnt to check for warnings before they checked in their code. Pin
User 274316217-Jan-12 0:55
User 274316217-Jan-12 0:55 
GeneralRe: The result was that people learnt to check for warnings before they checked in their code. Pin
BobJanova17-Jan-12 0:51
BobJanova17-Jan-12 0:51 
GeneralRe: The result was that people learnt to check for warnings before they checked in their code. Pin
YvesDaoust30-Jan-12 0:47
YvesDaoust30-Jan-12 0:47 
GeneralRe: What one Should do if Program warns you about one's uninitialized variable? PinPopular
OriginalGriff12-Jan-12 21:31
mveOriginalGriff12-Jan-12 21:31 
GeneralRe: What one Should do if Program warns you about one's uninitialized variable? Pin
Mohibur Rashid13-Jan-12 5:12
professionalMohibur Rashid13-Jan-12 5:12 
GeneralCode Repeating PinPopular
Mohibur Rashid11-Jan-12 19:17
professionalMohibur Rashid11-Jan-12 19:17 
Take a look at the algorithm
function Process()
{
  if(error!="")
  {
   //   Some HTML code over 1000 lines with javascript
  }
  else if(update!="")
  {
   //   Same like above :o with same f-king javascript
  }
  else 
  {
   // Same 1000 of lines with same javascript. 
  }
}

now my job is to make some change, for new requirements. the file is over 4000 lines. And reading over hour I actually failed to figure out how actually it works. Authority got that reason, I am not good enough. I agreed with them.

Oh the reason to change the code was "Performance and incomplete verification"
GeneralRe: Code Repeating Pin
RobCroll12-Jan-12 0:26
RobCroll12-Jan-12 0:26 
GeneralRe: Code Repeating Pin
Mohibur Rashid12-Jan-12 2:30
professionalMohibur Rashid12-Jan-12 2:30 
GeneralRe: Code Repeating Pin
fjdiewornncalwe12-Jan-12 3:02
professionalfjdiewornncalwe12-Jan-12 3:02 
GeneralRe: Code Repeating Pin
BobJanova12-Jan-12 23:40
BobJanova12-Jan-12 23:40 
GeneralRe: Code Repeating Pin
Nagy Vilmos12-Jan-12 0:58
professionalNagy Vilmos12-Jan-12 0:58 
GeneralRe: Code Repeating Pin
CDP180212-Jan-12 1:46
CDP180212-Jan-12 1:46 
GeneralRe: Code Repeating Pin
Mohibur Rashid12-Jan-12 2:31
professionalMohibur Rashid12-Jan-12 2:31 
GeneralGem... As time goes by.. PinPopular
virang_218-Jan-12 22:29
virang_218-Jan-12 22:29 
GeneralRe: Gem... As time goes by.. PinPopular
CDP18028-Jan-12 22:48
CDP18028-Jan-12 22:48 
GeneralRe: Gem... As time goes by.. PinPopular
Estys8-Jan-12 22:57
Estys8-Jan-12 22:57 
GeneralRe: Gem... As time goes by.. PinPopular
CDP18028-Jan-12 23:02
CDP18028-Jan-12 23:02 
GeneralRe: Gem... As time goes by.. Pin
virang_218-Jan-12 23:08
virang_218-Jan-12 23:08 
GeneralRe: Gem... As time goes by.. Pin
Estys8-Jan-12 23:15
Estys8-Jan-12 23:15 
GeneralRe: Gem... As time goes by.. Pin
CDP18028-Jan-12 23:33
CDP18028-Jan-12 23:33 
GeneralRe: Gem... As time goes by.. Pin
Rajesh Anuhya9-Jan-12 20:17
professionalRajesh Anuhya9-Jan-12 20:17 
GeneralRe: Gem... As time goes by.. Pin
Estys9-Jan-12 21:32
Estys9-Jan-12 21:32 
GeneralRe: Gem... As time goes by.. Pin
PIEBALDconsult10-Jan-12 2:44
mvePIEBALDconsult10-Jan-12 2:44 

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.