Click here to Skip to main content
15,895,656 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: Proof Pin
leppie15-Apr-09 5:07
leppie15-Apr-09 5:07 
GeneralRe: Proof Pin
notmasteryet15-Apr-09 15:51
notmasteryet15-Apr-09 15:51 
GeneralRe: Proof Pin
Luc 64801115-Apr-09 5:04
Luc 64801115-Apr-09 5:04 
GeneralRe: Proof Pin
PIEBALDconsult15-Apr-09 5:05
mvePIEBALDconsult15-Apr-09 5:05 
GeneralRe: Proof Pin
dybs16-Apr-09 17:38
dybs16-Apr-09 17:38 
GeneralRe: Proof Pin
Vozzie24-May-09 4:57
Vozzie24-May-09 4:57 
GeneralRe: 5 in a 1 to 10 range Pin
Luc 64801115-Apr-09 4:49
Luc 64801115-Apr-09 4:49 
GeneralRe: 5 in a 1 to 10 range Pin
Ian Shlasko15-Apr-09 5:09
Ian Shlasko15-Apr-09 5:09 
Oh, come on... Even VB can do this in one line plus exception handling...
Try
  Return t.Select("linatipedi='N'").Length = 0 // *resists urge to type two ='s*
Catch
  Return False
End Try

Man, if this is a 5, I'd really hate to see a 10...

Translation: Post one of the 10's! Heheh
GeneralRe: 5 in a 1 to 10 range Pin
adgonz15-Apr-09 23:05
adgonz15-Apr-09 23:05 
GeneralRe: 5 in a 1 to 10 range Pin
Rob Grainger16-Apr-09 22:41
Rob Grainger16-Apr-09 22:41 
GeneralRe: 5 in a 1 to 10 range Pin
Ian Shlasko17-Apr-09 1:44
Ian Shlasko17-Apr-09 1:44 
GeneralMSDN example [modified] (oops, my bad!) Pin
leppie15-Apr-09 0:46
leppie15-Apr-09 0:46 
GeneralRe: MSDN example Pin
OriginalGriff15-Apr-09 1:55
mveOriginalGriff15-Apr-09 1:55 
GeneralRe: MSDN example (plus incorrect spoiler) [modified] Pin
leppie15-Apr-09 2:15
leppie15-Apr-09 2:15 
GeneralRe: MSDN example (plus spoiler) [modified] Pin
Luc 64801115-Apr-09 3:42
Luc 64801115-Apr-09 3:42 
GeneralRe: MSDN example (plus spoiler) Pin
leppie15-Apr-09 4:23
leppie15-Apr-09 4:23 
GeneralRe: MSDN example Pin
0x3c015-Apr-09 3:20
0x3c015-Apr-09 3:20 
GeneralRe: MSDN example Pin
Luc 64801115-Apr-09 3:41
Luc 64801115-Apr-09 3:41 
GeneralRe: MSDN example Pin
0x3c015-Apr-09 3:50
0x3c015-Apr-09 3:50 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:25
leppie15-Apr-09 4:25 
GeneralRe: MSDN example Pin
0x3c015-Apr-09 4:28
0x3c015-Apr-09 4:28 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:31
leppie15-Apr-09 4:31 
GeneralRe: MSDN example Pin
Luc 64801115-Apr-09 4:42
Luc 64801115-Apr-09 4:42 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:45
leppie15-Apr-09 4:45 
GeneralRe: MSDN example Pin
leppie15-Apr-09 4:43
leppie15-Apr-09 4:43 

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.