Click here to Skip to main content
13,252,065 members (56,341 online)

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 4:47
memberMarkRHolbrook6-Sep-13 4:47 
GeneralEpic Pin
Jacek Gajek11-Jul-13 0:10
memberJacek Gajek11-Jul-13 0:10 
GeneralRe: Epic Pin
Mohammed Hameed11-Jul-13 1:24
professionalMohammed Hameed11-Jul-13 1:24 
GeneralRe: Epic Pin
vonb11-Jul-13 2:22
professionalvonb11-Jul-13 2:22 
GeneralRe: Epic Pin
Richard Deeming11-Jul-13 3:14
professionalRichard Deeming11-Jul-13 3:14 
GeneralRe: Epic Pin
vonb11-Jul-13 3:28
professionalvonb11-Jul-13 3:28 
GeneralRe: Epic Pin
ihoecken11-Jul-13 7:22
memberihoecken11-Jul-13 7:22 
GeneralExpletive Deleted Pin
Rob Grainger9-Jul-13 5:21
memberRob Grainger9-Jul-13 5:21 
Yet another delight from the VB6 rewrite...

' 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 5:34
professionalvonb9-Jul-13 5:34 
GeneralRe: Expletive Deleted Pin
Rob Grainger9-Jul-13 5:47
memberRob Grainger9-Jul-13 5:47 
GeneralRe: Expletive Deleted Pin
PIEBALDconsult9-Jul-13 6:06
professionalPIEBALDconsult9-Jul-13 6:06 
GeneralRe: Expletive Deleted Pin
Le Poete11-Jul-13 2:35
memberLe Poete11-Jul-13 2:35 
GeneralRe: Expletive Deleted Pin
MSBassSinger11-Jul-13 5:46
memberMSBassSinger11-Jul-13 5:46 
GeneralRe: Expletive Deleted Pin
AspDotNetDev11-Jul-13 6:41
protectorAspDotNetDev11-Jul-13 6:41 
GeneralRe: Expletive Deleted Pin
MSBassSinger11-Jul-13 7:02
memberMSBassSinger11-Jul-13 7:02 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 2:25
memberBC_programming12-Jul-13 2:25 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 4:26
memberMSBassSinger12-Jul-13 4:26 
GeneralRe: Expletive Deleted Pin
BC_programming12-Jul-13 7:28
memberBC_programming12-Jul-13 7:28 
GeneralRe: Expletive Deleted Pin
MSBassSinger12-Jul-13 7:58
memberMSBassSinger12-Jul-13 7:58 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 8:43
memberDeerBear20-Jul-13 8:43 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 9:40
protectorAspDotNetDev20-Jul-13 9:40 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 11:42
memberDeerBear20-Jul-13 11:42 
GeneralRe: Expletive Deleted Pin
AspDotNetDev20-Jul-13 17:39
protectorAspDotNetDev20-Jul-13 17:39 
GeneralRe: Expletive Deleted Pin
DeerBear20-Jul-13 23:31
memberDeerBear20-Jul-13 23:31 
JokeRe: Expletive Deleted Pin
AspDotNetDev21-Jul-13 7:39
protectorAspDotNetDev21-Jul-13 7: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.


Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 20 Nov 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid