Click here to Skip to main content
15,884,298 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: Points, Points Everywhere Pin
MarkRHolbrook6-Sep-13 3:47
MarkRHolbrook6-Sep-13 3:47 
GeneralEpic Pin
Lutosław10-Jul-13 23:10
Lutosław10-Jul-13 23:10 
GeneralRe: Epic Pin
Mohammed Hameed11-Jul-13 0:24
professionalMohammed Hameed11-Jul-13 0:24 
GeneralRe: Epic Pin
vonb11-Jul-13 1:22
vonb11-Jul-13 1:22 
GeneralRe: Epic Pin
Richard Deeming11-Jul-13 2:14
mveRichard Deeming11-Jul-13 2:14 
GeneralRe: Epic Pin
vonb11-Jul-13 2:28
vonb11-Jul-13 2:28 
GeneralRe: Epic Pin
Ingo11-Jul-13 6:22
Ingo11-Jul-13 6:22 
GeneralExpletive Deleted PinPopular
Rob Grainger9-Jul-13 4:21
Rob Grainger9-Jul-13 4:21 
Yet another delight from the VB6 rewrite...

VB
' Read a setting from XXXX.ini
Function GetINI(heading As String, setting As String, iniPath As String)
    Dim temp As String * 120
    Dim ret As Long
    
    If iniPath = "Default" Then
        iniPath = gl_DatabaseDir & "\XXXX.ini"
    End If
    
    ret = GetPrivateProfileString(heading, setting, iniPath, temp, Len(temp), iniPath)
    
    If ret = 0 Then
        Beep            ' Really ?
    Else
        GetINI = Trim(temp)
    End If
End Function


I think this is like pre-watershed television, where expletives are covered by a beep.

It's also worth considering that none of our PC's have a speaker Wink | ;-)
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralRe: Expletive Deleted Pin
vonb9-Jul-13 4:34
vonb9-Jul-13 4:34 
GeneralRe: Expletive Deleted Pin
Rob Grainger9-Jul-13 4:47
Rob Grainger9-Jul-13 4:47 
GeneralRe: Expletive Deleted Pin
PIEBALDconsult9-Jul-13 5:06
mvePIEBALDconsult9-Jul-13 5:06 
GeneralRe: Expletive Deleted Pin
Le Poete11-Jul-13 1:35
Le Poete11-Jul-13 1:35 
GeneralRe: Expletive Deleted Pin
MSBassSinger11-Jul-13 4:46
professionalMSBassSinger11-Jul-13 4:46 
GeneralRe: Expletive Deleted Pin
AspDotNetDev11-Jul-13 5:41
protectorAspDotNetDev11-Jul-13 5:41 
GeneralRe: Expletive Deleted Pin
MSBassSinger11-Jul-13 6:02
professionalMSBassSinger11-Jul-13 6:02 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 1:25
BC_programming12-Jul-13 1:25 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 3:26
professionalMSBassSinger12-Jul-13 3:26 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 6:28
BC_programming12-Jul-13 6:28 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 6:58
professionalMSBassSinger12-Jul-13 6:58 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 7:43
DeerBear20-Jul-13 7:43 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 8:40
protectorAspDotNetDev20-Jul-13 8:40 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 10:42
DeerBear20-Jul-13 10:42 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 16:39
protectorAspDotNetDev20-Jul-13 16:39 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 22:31
DeerBear20-Jul-13 22:31 
JokeRe: Expletive Deleted Pin
AspDotNetDev21-Jul-13 6:39
protectorAspDotNetDev21-Jul-13 6:39 

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.