Click here to Skip to main content
15,912,400 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 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 
CDP1802 wrote:
But it seems, this is a lost art. Many 'modern' developers tell me that the compilers are good enough (I usually tell them that this means they are not), the next generation of processors will bring more than any optimization, and of course, that optimization costs too much development time.


Sadly, but true.

Another reason to know assembler is, when you have written 'correct' code, and somehow there is a bug in the application. In those rare cases its good to be certain that the compiler has created correct code. This way we have found 3 bugs in the compiler and one bug due to including a header which changed a struct a little in one specific part of the application.

Learn from the mistakes of others, you may not live long enough to make them all yourself.

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 
GeneralRe: The Classic Pin
CDP18026-May-08 22:51
CDP18026-May-08 22:51 
GeneralRe: The Classic Pin
Gary R. Wheeler10-May-08 1:54
Gary R. Wheeler10-May-08 1:54 
GeneralRe: The Classic Pin
cp98766-May-08 19:57
cp98766-May-08 19:57 
GeneralRe: The Classic Pin
CDP18026-May-08 22:36
CDP18026-May-08 22:36 
GeneralRe: The Classic Pin
cp98766-May-08 22:55
cp98766-May-08 22:55 
GeneralRe: The Classic Pin
CDP18026-May-08 23:05
CDP18026-May-08 23:05 
GeneralRe: The Classic Pin
Gary R. Wheeler10-May-08 2:01
Gary R. Wheeler10-May-08 2:01 
GeneralRe: The Classic Pin
darkelv6-May-08 20:07
darkelv6-May-08 20:07 
GeneralRe: The Classic Pin
Nemanja Trifunovic8-May-08 4:27
Nemanja Trifunovic8-May-08 4:27 
GeneralRe: The Classic Pin
CDP18028-May-08 4:44
CDP18028-May-08 4:44 

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.