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: Setters and Getters evil future Pin
Nagy Vilmos21-Apr-09 10:10
professionalNagy Vilmos21-Apr-09 10:10 
GeneralRe: Setters and Getters evil future Pin
Dan Neely21-Apr-09 10:26
Dan Neely21-Apr-09 10:26 
GeneralRe: Setters and Getters evil future Pin
Jeroen De Dauw28-Apr-09 5:58
Jeroen De Dauw28-Apr-09 5:58 
GeneralNot a coding horror as such, but... Pin
OriginalGriff15-Apr-09 8:43
mveOriginalGriff15-Apr-09 8:43 
GeneralRe: Not a coding horror as such, but... Pin
PIEBALDconsult15-Apr-09 10:02
mvePIEBALDconsult15-Apr-09 10:02 
GeneralRe: Not a coding horror as such, but... Pin
Yusuf15-Apr-09 13:17
Yusuf15-Apr-09 13:17 
GeneralRe: Not a coding horror as such, but... Pin
BillW3323-Apr-09 7:18
professionalBillW3323-Apr-09 7:18 
General5 in a 1 to 10 range Pin
adgonz15-Apr-09 4:41
adgonz15-Apr-09 4:41 
If the worst horror you could find in my company is ranked 10 and a moderate horror is ranked 1, I think I could rank this with 5:

Dim key As String
key= "N"
key= "linatipedi=" + "'" + key+ "'"
Dim rR As DataRow() = t.Select(key)
If rR.Length() = 0 Then
    i = 0
Else
    Try
        For Each r In rR
            i += 1
        Next r
    Catch
        If i = 0 Then
            Return True
        Else
            Return False
        End If
    End Try
End If
If i = 0 Then
    Return True
Else
    Return False
End If

JokeRe: 5 in a 1 to 10 range PinPopular
leppie15-Apr-09 4:46
leppie15-Apr-09 4:46 
GeneralRe: 5 in a 1 to 10 range Pin
Luc 64801115-Apr-09 4:50
Luc 64801115-Apr-09 4:50 
GeneralProof [modified] Pin
leppie15-Apr-09 4:55
leppie15-Apr-09 4:55 
GeneralRe: Proof Pin
0x3c015-Apr-09 5:02
0x3c015-Apr-09 5:02 
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 
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 

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.