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

 
GeneralHow many things are wrong with this code? [modified] Pin
Leisuresuit Larry15-Nov-07 9:35
Leisuresuit Larry15-Nov-07 9:35 
GeneralRe: How many things are wrong with this code? Pin
Pete O'Hanlon15-Nov-07 10:07
mvePete O'Hanlon15-Nov-07 10:07 
GeneralRe: How many things are wrong with this code? Pin
Vasudevan Deepak Kumar15-Nov-07 21:34
Vasudevan Deepak Kumar15-Nov-07 21:34 
GeneralRe: How many things are wrong with this code? Pin
Cristian Amarie16-Nov-07 21:50
Cristian Amarie16-Nov-07 21:50 
GeneralMicrosofts crippled Java Pin
jhwurmbach19-Nov-07 1:55
jhwurmbach19-Nov-07 1:55 
GeneralRe: How many things are wrong with this code? Pin
DavidNohejl15-Nov-07 12:22
DavidNohejl15-Nov-07 12:22 
GeneralRe: How many things are wrong with this code? Pin
Luc Pattyn15-Nov-07 13:01
sitebuilderLuc Pattyn15-Nov-07 13:01 
Generalcan somebody explain the logic of this? [modified] Pin
Dogan Akhan12-Nov-07 22:19
Dogan Akhan12-Nov-07 22:19 
I found some meaningless code in my project. do you have any idea about its logic?

protected void Page_Load(object sender, EventArgs e)<br />
   {<br />
       string sHafta = string.Empty;<br />
       try<br />
       {<br />
           sHafta = ddlHafta.SelectedValue;<br />
       }<br />
       catch (Exception)<br />
       {<br />
           sHafta = "0";<br />
       }<br />
   }


note that sHafta is a local variable Smile | :)


-- modified at 5:27 Tuesday 13th November, 2007
AnswerRe: can somebody explain the logic of this? Pin
Baconbutty12-Nov-07 22:29
Baconbutty12-Nov-07 22:29 
GeneralRe: can somebody explain the logic of this? Pin
NormDroid13-Nov-07 9:09
professionalNormDroid13-Nov-07 9:09 
AnswerRe: can somebody explain the logic of this? Pin
leppie12-Nov-07 22:57
leppie12-Nov-07 22:57 
AnswerRe: can somebody explain the logic of this? Pin
Shpendh12-Nov-07 23:19
Shpendh12-Nov-07 23:19 
GeneralRe: can somebody explain the logic of this? Pin
Paddy Boyd13-Nov-07 1:15
Paddy Boyd13-Nov-07 1:15 
GeneralRe: can somebody explain the logic of this? Pin
KarstenK14-Nov-07 21:41
mveKarstenK14-Nov-07 21:41 
GeneralI'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:07
mvePete O'Hanlon12-Nov-07 2:07 
GeneralRe: I'm speechless about this piece of code. Pin
Chris Meech12-Nov-07 2:31
Chris Meech12-Nov-07 2:31 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:33
mvePete O'Hanlon12-Nov-07 2:33 
GeneralRe: I'm speechless about this piece of code. Pin
Chris Meech12-Nov-07 2:43
Chris Meech12-Nov-07 2:43 
GeneralRe: I'm speechless about this piece of code. Pin
Ri Qen-Sin12-Nov-07 15:20
Ri Qen-Sin12-Nov-07 15:20 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 21:50
mvePete O'Hanlon12-Nov-07 21:50 
GeneralRe: I'm speechless about this piece of code. Pin
Vasudevan Deepak Kumar13-Nov-07 2:02
Vasudevan Deepak Kumar13-Nov-07 2:02 
GeneralRe: I'm speechless about this piece of code. Pin
Paddy Boyd12-Nov-07 2:39
Paddy Boyd12-Nov-07 2:39 
GeneralRe:STACK OVERFLOW Pin
Chris Meech12-Nov-07 2:44
Chris Meech12-Nov-07 2:44 
GeneralRe:STACK OVERFLOW Pin
leppie12-Nov-07 3:22
leppie12-Nov-07 3:22 
GeneralRe: I'm speechless about this piece of code. Pin
Pete O'Hanlon12-Nov-07 2:56
mvePete O'Hanlon12-Nov-07 2:56 

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.