Click here to Skip to main content
15,916,692 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: Best use of exception handling Pin
T Jenniges15-Oct-10 12:39
T Jenniges15-Oct-10 12:39 
GeneralRe: Best use of exception handling Pin
kxal17-Oct-10 0:38
kxal17-Oct-10 0:38 
GeneralFalse selection... Pin
lordofawesome11-Oct-10 1:20
lordofawesome11-Oct-10 1:20 
GeneralRe: False selection... Pin
CDP180211-Oct-10 1:48
CDP180211-Oct-10 1:48 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 2:11
lordofawesome11-Oct-10 2:11 
GeneralRe: False selection... PinPopular
CDP180211-Oct-10 2:18
CDP180211-Oct-10 2:18 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 2:22
lordofawesome11-Oct-10 2:22 
GeneralRe: False selection... Pin
CDP180211-Oct-10 2:32
CDP180211-Oct-10 2:32 
When putting together a graphics engine, you first have to set up a rendering context of some kind. To do that you will have to sort out what kind of graphics capabilities the host computer has and which not. In short: You will be writing lots of such code and there will be a few errors. Then it's really nice if you don't have to pull apart more complex logical terms and just can make your correction at the right place. It's just more easy to read and to maintain. And also the day will come when you have to look at the code and don't quite remember why you once decided to do things just the way they are, much less a stranger who works with your code for the first time.
A while ago he asked me what he should have printed on my business cards. I said 'Wizard'.

I read books which nobody else understand. Then I do something which nobody understands. After that the computer does something which nobody understands. When asked, I say things about the results which nobody understand. But everybody expects miracles from me on a regular basis. Looks to me like the classical definition of a wizard.

GeneralRe: False selection... Pin
lordofawesome11-Oct-10 2:41
lordofawesome11-Oct-10 2:41 
GeneralRe: False selection... Pin
CDP180211-Oct-10 2:46
CDP180211-Oct-10 2:46 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 3:02
lordofawesome11-Oct-10 3:02 
GeneralRe: False selection... Pin
CDP180211-Oct-10 3:10
CDP180211-Oct-10 3:10 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 3:37
lordofawesome11-Oct-10 3:37 
GeneralRe: False selection... Pin
CDP180211-Oct-10 4:01
CDP180211-Oct-10 4:01 
GeneralRe: False selection... Pin
josda100011-Oct-10 4:05
josda100011-Oct-10 4:05 
GeneralRe: False selection... PinPopular
Stryder_111-Oct-10 3:35
Stryder_111-Oct-10 3:35 
GeneralRe: False selection... Pin
CDP180211-Oct-10 3:46
CDP180211-Oct-10 3:46 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 3:46
lordofawesome11-Oct-10 3:46 
GeneralRe: False selection... Pin
Stryder_111-Oct-10 6:34
Stryder_111-Oct-10 6:34 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 6:35
lordofawesome11-Oct-10 6:35 
GeneralRe: False selection... Pin
ely_bob12-Oct-10 3:42
professionalely_bob12-Oct-10 3:42 
GeneralRe: False selection... Pin
ely_bob12-Oct-10 3:40
professionalely_bob12-Oct-10 3:40 
GeneralRe: False selection... Pin
David Skelly11-Oct-10 3:55
David Skelly11-Oct-10 3:55 
GeneralRe: False selection... Pin
lordofawesome11-Oct-10 4:23
lordofawesome11-Oct-10 4:23 
GeneralRe: False selection... Pin
David Skelly11-Oct-10 4:57
David Skelly11-Oct-10 4:57 

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.