Click here to Skip to main content
15,887,027 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: I don't care about your naming convention, just be consistent Pin
OriginalGriff24-Jan-11 2:25
mveOriginalGriff24-Jan-11 2:25 
GeneralRe: I don't care about your naming convention, just be consistent Pin
Jörgen Sigvardsson31-Jan-11 10:23
Jörgen Sigvardsson31-Jan-11 10:23 
GeneralRe: I don't care about your naming convention, just be consistent Pin
BillW3318-Jan-11 4:01
professionalBillW3318-Jan-11 4:01 
GeneralRe: I don't care about your naming convention, just be consistent Pin
Lutosław24-Jan-11 9:30
Lutosław24-Jan-11 9:30 
GeneralRe: I don't care about your naming convention, just be consistent Pin
wizardzz24-Jan-11 9:39
wizardzz24-Jan-11 9:39 
GeneralA foot to my bread and butter... rather no, a reward in disguise of knowledge Pin
HughJarce9915-Jan-11 10:54
HughJarce9915-Jan-11 10:54 
GeneralRe: A foot to my bread and butter... rather no, a reward in disguise of knowledge Pin
Keith Barrow15-Jan-11 11:20
professionalKeith Barrow15-Jan-11 11:20 
GeneralReassuring? PinPopular
Prerak Patel13-Jan-11 20:44
professionalPrerak Patel13-Jan-11 20:44 
If c is blank do nothing, but still if c is blank, output blank array!!WTF | :WTF:

Changing mind while coding!? and it is VBSD'Oh! | :doh:

VB
Function e1(c,outv)
  ReDim outv(anc-1)
  If c="" Then
  Else 
    If c="" Then
      For i=0 To ubound(outv)
        outv(i)=""
      Next
    Else
      x1=split(c,",")
      For i=0 To ubound(x1)
        If i<=ubound(outv) Then outv(i)=x1(i)
      Next
    End If
  End If
End Function


Yes, I made it. Here is my first article. Please vote it if you find it helpful.
Automation tool for web activities[^]

GeneralRe: Reassuring? Pin
Rob Grainger13-Jan-11 22:20
Rob Grainger13-Jan-11 22:20 
GeneralRe: Reassuring? Pin
Jeroen De Dauw14-Jan-11 2:12
Jeroen De Dauw14-Jan-11 2:12 
GeneralRe: Reassuring? Pin
fjdiewornncalwe14-Jan-11 2:14
professionalfjdiewornncalwe14-Jan-11 2:14 
GeneralRe: Reassuring? Pin
Prerak Patel17-Jan-11 0:00
professionalPrerak Patel17-Jan-11 0:00 
GeneralRe: Reassuring? Pin
fjdiewornncalwe18-Jan-11 5:43
professionalfjdiewornncalwe18-Jan-11 5:43 
GeneralRe: Reassuring? Pin
RobCroll16-Jan-11 23:40
RobCroll16-Jan-11 23:40 
GeneralRe: Reassuring? Pin
Prerak Patel16-Jan-11 23:51
professionalPrerak Patel16-Jan-11 23:51 
GeneralRe: Reassuring? Pin
Euhemerus17-Jan-11 8:09
Euhemerus17-Jan-11 8:09 
GeneralGovernment IT Hiring PinPopular
Bsw7912-Jan-11 14:27
Bsw7912-Jan-11 14:27 
GeneralRe: Government IT Hiring Pin
Jeroen De Dauw12-Jan-11 14:49
Jeroen De Dauw12-Jan-11 14:49 
GeneralRe: Government IT Hiring Pin
Paladin200013-Jan-11 3:08
Paladin200013-Jan-11 3:08 
GeneralRe: Government IT Hiring Pin
edmurphy9917-Jan-11 2:57
edmurphy9917-Jan-11 2:57 
GeneralRe: Government IT Hiring Pin
_Erik_13-Jan-11 5:00
_Erik_13-Jan-11 5:00 
GeneralRe: Government IT Hiring Pin
RaviRanjanKr13-Jan-11 5:08
professionalRaviRanjanKr13-Jan-11 5:08 
GeneralRe: Government IT Hiring Pin
BillW3313-Jan-11 6:19
professionalBillW3313-Jan-11 6:19 
GeneralRe: Government IT Hiring Pin
AspDotNetDev13-Jan-11 6:34
protectorAspDotNetDev13-Jan-11 6:34 
GeneralRe: Government IT Hiring Pin
BillW3317-Jan-11 4:59
professionalBillW3317-Jan-11 4:59 

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.