Click here to Skip to main content
15,891,136 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: Everything That Has a Beginning Has an End (Eventually) Pin
BobJanova14-Jul-11 3:48
BobJanova14-Jul-11 3:48 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
MehGerbil14-Jul-11 4:54
MehGerbil14-Jul-11 4:54 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
BobJanova14-Jul-11 5:16
BobJanova14-Jul-11 5:16 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
MehGerbil14-Jul-11 8:40
MehGerbil14-Jul-11 8:40 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
Fabio Franco14-Jul-11 3:59
professionalFabio Franco14-Jul-11 3:59 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
cpkilekofp14-Jul-11 8:38
cpkilekofp14-Jul-11 8:38 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
AspDotNetDev14-Jul-11 8:55
protectorAspDotNetDev14-Jul-11 8:55 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
cpkilekofp14-Jul-11 10:30
cpkilekofp14-Jul-11 10:30 
AspDotNetDev wrote:
You used compilers that generated assembly code?


LMAO, I may be missing the joke here, but yes, I did...I remember articles about MS 5.0 C's code generation vs. Borland's (now Symantec's?) Turbo C 6.0, arguing about code density vs. efficiency across memory architectures which might one day exceed sixteen bits available for data on the average person's desktop, especially with the expanding presence of the 32-bit 80386 processor in the business workplace...yes, those days. I actually entered a program in machine code into Debug which, after I saved it as reboot.com, dutifully rebooted the system every time I ran it. Bare-metal stuff, indeed...though I never got that (expletives deleted) COM port driver to work.

But then, these intermediate languages in use now often operate in environments where sequences of bytecodes can be compiled directly into the native machine code of the executing processor, so at that point we can either request a listing (if available) or use a procesor-specific disassembler (if, ahem, our license permits) to determine whether this Just-In-Time code is actually as efficient as it can be for that processsor. Or so I assume; I'm less ambitious these days about bare-metal efficiency, I just hope it's better than running the bytecode through the interpreter and leave it at that.
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
AspDotNetDev14-Jul-11 10:49
protectorAspDotNetDev14-Jul-11 10:49 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
cpkilekofp14-Jul-11 11:11
cpkilekofp14-Jul-11 11:11 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
Fabio Franco14-Jul-11 11:21
professionalFabio Franco14-Jul-11 11:21 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
User 483504714-Jul-11 4:23
User 483504714-Jul-11 4:23 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
icestatue14-Jul-11 16:10
icestatue14-Jul-11 16:10 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
AspDotNetDev14-Jul-11 16:17
protectorAspDotNetDev14-Jul-11 16:17 
GeneralRe: Everything That Has a Beginning Has an End (Eventually) Pin
Lutosław14-Jul-11 23:32
Lutosław14-Jul-11 23:32 
GeneralEverything That Has a Beginning Has an End Pin
AspDotNetDev11-Jul-11 8:21
protectorAspDotNetDev11-Jul-11 8:21 
GeneralRe: Everything That Has a Beginning Has an End Pin
Shameel15-Jul-11 10:05
professionalShameel15-Jul-11 10:05 
RantSeriously? Why write it yourself PinPopular
JChrisCompton7-Jul-11 5:39
JChrisCompton7-Jul-11 5:39 
GeneralRe: Seriously? Why write it yourself Pin
BillW337-Jul-11 10:39
professionalBillW337-Jul-11 10:39 
GeneralRe: Seriously? Why write it yourself Pin
BobJanova7-Jul-11 23:08
BobJanova7-Jul-11 23:08 
RantAnd... Pin
JChrisCompton8-Jul-11 7:03
JChrisCompton8-Jul-11 7:03 
GeneralRe: Seriously? Why write it yourself PinPopular
TorstenH.8-Jul-11 3:10
TorstenH.8-Jul-11 3:10 
GeneralRe: Seriously? Why write it yourself Pin
Ra-one10-Jul-11 18:56
Ra-one10-Jul-11 18:56 
GeneralRe: Seriously? Why write it yourself Pin
TorstenH.10-Jul-11 23:43
TorstenH.10-Jul-11 23:43 
GeneralI feel dirty [modified] Pin
Dan Neely6-Jul-11 3:17
Dan Neely6-Jul-11 3:17 

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.