Click here to Skip to main content
16,008,469 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: You're using... ? Pin
Zoltan Balazs8-May-08 23:59
Zoltan Balazs8-May-08 23:59 
GeneralRe: You're using... ? Pin
CDP18029-May-08 3:14
CDP18029-May-08 3:14 
GeneralRe: You're using... ? Pin
PIEBALDconsult9-May-08 7:06
mvePIEBALDconsult9-May-08 7:06 
GeneralRe: You're using... ? Pin
Anthony Mushrow10-May-08 4:17
professionalAnthony Mushrow10-May-08 4:17 
GeneralRe: You're using... ? Pin
Daniel Grunwald15-May-08 2:40
Daniel Grunwald15-May-08 2:40 
GeneralRe: You're using... ? Pin
Vasudevan Deepak Kumar16-May-08 4:35
Vasudevan Deepak Kumar16-May-08 4:35 
GeneralRe: You're using... ? Pin
Amol_B2-Jun-08 23:14
professionalAmol_B2-Jun-08 23:14 
GeneralThe Classic [modified] Pin
CDP18025-May-08 2:34
CDP18025-May-08 2:34 
I freely admit it: I have done this frequently in the past and I will do it again. And it holds countless horrors for those who are not used to it anymore:

void SomeClass::SomeMethod()
{
    asm
    {
        // here the horrors begin
        ....
    }
}


Seriously, I once began on a small self-built machine and typed in machine codes with its hex keypad. Compared to that some C++ inline assembly code is already high level. But I often wonder how people fare, who started out with something like .Net and Java.

Edit: How do I indent the code lines correctly with this editor? Tabs and spaces will not work.

modified on Monday, May 5, 2008 9:25 AM

GeneralRe: The Classic Pin
Colin Angus Mackay5-May-08 2:59
Colin Angus Mackay5-May-08 2:59 
GeneralRe: The Classic Pin
CDP18025-May-08 3:25
CDP18025-May-08 3:25 
GeneralRe: The Classic Pin
leppie5-May-08 3:27
leppie5-May-08 3:27 
GeneralRe: The Classic Pin
VentsyV5-May-08 10:34
VentsyV5-May-08 10:34 
GeneralRe: The Classic Pin
CDP18025-May-08 21:37
CDP18025-May-08 21:37 
GeneralRe: The Classic Pin
Pete O'Hanlon5-May-08 11:06
mvePete O'Hanlon5-May-08 11:06 
GeneralRe: The Classic Pin
CDP18025-May-08 21:43
CDP18025-May-08 21:43 
GeneralRe: The Classic Pin
Pete O'Hanlon6-May-08 0:37
mvePete O'Hanlon6-May-08 0:37 
GeneralRe: The Classic Pin
CDP18026-May-08 1:22
CDP18026-May-08 1:22 
GeneralRe: The Classic Pin
BadKarma6-May-08 1:38
BadKarma6-May-08 1:38 
GeneralRe: The Classic Pin
hlmechanic7-May-08 6:13
hlmechanic7-May-08 6:13 
GeneralRe: The Classic Pin
MarkB7776-May-08 21:41
MarkB7776-May-08 21:41 
GeneralRe: The Classic Pin
supercat912-May-08 16:57
supercat912-May-08 16:57 
GeneralRe: The Classic Pin
Gary R. Wheeler10-May-08 1:51
Gary R. Wheeler10-May-08 1:51 
JokeRe: The Classic Pin
Ed.Poore5-May-08 12:03
Ed.Poore5-May-08 12:03 
GeneralRe: The Classic Pin
CDP18025-May-08 21:46
CDP18025-May-08 21:46 
GeneralRe: The Classic Pin
MidwestLimey6-May-08 12:00
professionalMidwestLimey6-May-08 12:00 

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.