Click here to Skip to main content
15,918,193 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: Outrageous error messages Pin
BSelznick6-Mar-07 15:13
BSelznick6-Mar-07 15:13 
GeneralRe: Outrageous error messages [modified] Pin
Roger Bamforth7-Mar-07 5:53
Roger Bamforth7-Mar-07 5:53 
GeneralRe: Outrageous error messages Pin
BSelznick7-Mar-07 6:53
BSelznick7-Mar-07 6:53 
General"Edit Thing Error" Pin
Anna-Jayne Metcalfe8-Mar-07 4:08
Anna-Jayne Metcalfe8-Mar-07 4:08 
GeneralRe: "Edit Thing Error" Pin
Erik Burger9-Mar-07 1:13
Erik Burger9-Mar-07 1:13 
GeneralRemember - this is supposed to be C#... Pin
6o'clock5-Mar-07 21:52
6o'clock5-Mar-07 21:52 
GeneralRe: Remember - this is supposed to be C#... Pin
jhwurmbach8-Mar-07 4:42
jhwurmbach8-Mar-07 4:42 
GeneralRe: Remember - this is supposed to be C#... Pin
Erik Burger9-Mar-07 1:10
Erik Burger9-Mar-07 1:10 
My colleague and I had an interesting discussion about this. According to us, there are two types of programmers out there. The first type thinks 'This is such a common thing to do, someone MUST have included it' and therefor ends up using the PadString method. The second type just churns away without seconds thoughts and ends up with the originally posted code.

The funny thing is that 9 out of 10 times people tend to refactor these snippits into a utilities class, calling the method 'PadString' Cool | :cool:
GeneralWe always use "i" as a loop counter... Pin
Hal Angseesing5-Mar-07 21:29
professionalHal Angseesing5-Mar-07 21:29 
GeneralRe: We always use "i" as a loop counter... Pin
BSelznick6-Mar-07 15:19
BSelznick6-Mar-07 15:19 
GeneralRe: We always use "i" as a loop counter... Pin
Ted Ferenc6-Mar-07 21:32
Ted Ferenc6-Mar-07 21:32 
GeneralRe: We always use "i" as a loop counter... Pin
Duncan Edwards Jones7-Mar-07 1:10
professionalDuncan Edwards Jones7-Mar-07 1:10 
GeneralRe: We always use "i" as a loop counter... Pin
John R. Shaw9-Mar-07 11:30
John R. Shaw9-Mar-07 11:30 
GeneralInfinite for loops Pin
Jesse Krebs5-Mar-07 21:00
Jesse Krebs5-Mar-07 21:00 
GeneralRe: Infinite for loops Pin
Mike Dimmick6-Mar-07 3:48
Mike Dimmick6-Mar-07 3:48 
GeneralRe: Infinite for loops Pin
RodgerB6-Mar-07 9:42
RodgerB6-Mar-07 9:42 
GeneralRe: Infinite for loops Pin
jhwurmbach8-Mar-07 4:56
jhwurmbach8-Mar-07 4:56 
GeneralRe: Infinite for loops Pin
RodgerB8-Mar-07 7:17
RodgerB8-Mar-07 7:17 
GeneralRe: Infinite for loops Pin
John R. Shaw9-Mar-07 12:29
John R. Shaw9-Mar-07 12:29 
GeneralDatabase rats nest Pin
Steve Fillingham5-Mar-07 19:26
Steve Fillingham5-Mar-07 19:26 
GeneralRe: Database rats nest Pin
Dirk Gutsche5-Mar-07 21:59
Dirk Gutsche5-Mar-07 21:59 
GeneralRe: Database rats nest Pin
Bradml6-Mar-07 0:53
Bradml6-Mar-07 0:53 
GeneralRe: Database rats nest Pin
Steve Fillingham6-Mar-07 19:32
Steve Fillingham6-Mar-07 19:32 
Generalif something then... nothing Pin
Fernando A. Gomez F.5-Mar-07 13:27
Fernando A. Gomez F.5-Mar-07 13:27 
GeneralRe: if something then... nothing Pin
John R. Shaw9-Mar-07 12:38
John R. Shaw9-Mar-07 12:38 

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.