Click here to Skip to main content
15,912,082 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: The "Yeah baby" increment way... Pin
akyriako782-Apr-09 2:01
akyriako782-Apr-09 2:01 
JokeRe: The "Yeah baby" increment way... Pin
Niklas L31-Mar-09 3:22
Niklas L31-Mar-09 3:22 
GeneralI just saw this beauty today... Pin
El Bob-O20-Mar-09 10:25
El Bob-O20-Mar-09 10:25 
GeneralRe: I just saw this beauty today... Pin
Dan Neely20-Mar-09 10:42
Dan Neely20-Mar-09 10:42 
GeneralRe: I just saw this beauty today... Pin
CurtD20-Mar-09 14:49
CurtD20-Mar-09 14:49 
GeneralRe: I just saw this beauty today... PinPopular
N a v a n e e t h21-Mar-09 17:15
N a v a n e e t h21-Mar-09 17:15 
GeneralRe: I just saw this beauty today... Pin
Dan Neely23-Mar-09 2:19
Dan Neely23-Mar-09 2:19 
GeneralRe: I just saw this beauty today... Pin
WilliamSauron23-Mar-09 4:32
WilliamSauron23-Mar-09 4:32 
Call a method passing a null object...

In Delphi, the Free method checks that it was called for an object that was really created. It's quite useful, since you can write "MyObject.Free" instead of "if Assigned(MyObject) then MyObject.Free;". A real time saver, and code is so much more readable.

-- Quidquid latine dictum sit, altum sonatur.
http://streambolics.flimbase.com

S. L.

GeneralRe: I just saw this beauty today... Pin
Dan Neely23-Mar-09 5:34
Dan Neely23-Mar-09 5:34 
GeneralRe: I just saw this beauty today... Pin
WilliamSauron23-Mar-09 6:01
WilliamSauron23-Mar-09 6:01 
GeneralRe: I just saw this beauty today... Pin
Dan Neely23-Mar-09 6:41
Dan Neely23-Mar-09 6:41 
GeneralRe: I just saw this beauty today... Pin
Jim Crafton2-Apr-09 10:01
Jim Crafton2-Apr-09 10:01 
GeneralRe: I just saw this beauty today... Pin
N a v a n e e t h23-Mar-09 15:56
N a v a n e e t h23-Mar-09 15:56 
GeneralRe: I just saw this beauty today... Pin
TheScientistIsDead30-Apr-09 4:34
TheScientistIsDead30-Apr-09 4:34 
GeneralRe: I just saw this beauty today... Pin
N a v a n e e t h3-May-09 17:10
N a v a n e e t h3-May-09 17:10 
GeneralHow to increment a variable [modified] Pin
Kurdy Malloy19-Mar-09 4:42
Kurdy Malloy19-Mar-09 4:42 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 5:20
sitebuilderLuc Pattyn19-Mar-09 5:20 
GeneralRe: How to increment a variable Pin
harold aptroot19-Mar-09 5:38
harold aptroot19-Mar-09 5:38 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 5:42
sitebuilderLuc Pattyn19-Mar-09 5:42 
GeneralRe: How to increment a variable Pin
harold aptroot19-Mar-09 5:56
harold aptroot19-Mar-09 5:56 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 6:26
sitebuilderLuc Pattyn19-Mar-09 6:26 
GeneralRe: How to increment a variable Pin
DanB198326-Mar-09 3:15
DanB198326-Mar-09 3:15 
GeneralRe: How to increment a variable Pin
OriginalGriff14-Apr-09 6:13
mveOriginalGriff14-Apr-09 6:13 
GeneralRe: How to increment a variable Pin
Robert Surtees19-Mar-09 7:30
Robert Surtees19-Mar-09 7:30 
GeneralRe: How to increment a variable Pin
Luc Pattyn19-Mar-09 7:39
sitebuilderLuc Pattyn19-Mar-09 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.