Click here to Skip to main content
15,907,497 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: variable names - who cares!? Pin
Paul Conrad28-Aug-08 8:22
professionalPaul Conrad28-Aug-08 8:22 
GeneralRe: variable names - who cares!? Pin
Louis Cipher10-Nov-08 16:48
Louis Cipher10-Nov-08 16:48 
GeneralRe: variable names - who cares!? Pin
Rob Graham25-Aug-08 8:07
Rob Graham25-Aug-08 8:07 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe25-Aug-08 8:14
Steven A. Lowe25-Aug-08 8:14 
GeneralRe: variable names - who cares!? Pin
Paul Conrad25-Aug-08 9:14
professionalPaul Conrad25-Aug-08 9:14 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe25-Aug-08 9:29
Steven A. Lowe25-Aug-08 9:29 
GeneralRe: variable names - who cares!? Pin
Paul Conrad25-Aug-08 9:30
professionalPaul Conrad25-Aug-08 9:30 
GeneralRe: variable names - who cares!? Pin
CDP180228-Aug-08 4:07
CDP180228-Aug-08 4:07 
Well, here we have one big difference between interpreters and assemblers / compilers.

An interpreter, like the good old BASIC, must hold the source in RAM, as well as every variable in use. On my old machine, it had only 4k for the interpreter AND the program AND the variables, it was the same: Better live with short variables and without comments than getting an out of memory error before the program is complete.

In assembly programs or with a compiler this is no problem. Comments and variable names only make the source file longer, but both don't make it into the executable.

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: variable names - who cares!? Pin
Paul Conrad28-Aug-08 6:30
professionalPaul Conrad28-Aug-08 6:30 
GeneralRe: variable names - who cares!? Pin
CDP180228-Aug-08 21:34
CDP180228-Aug-08 21:34 
GeneralRe: variable names - who cares!? Pin
PIEBALDconsult25-Aug-08 14:09
mvePIEBALDconsult25-Aug-08 14:09 
GeneralRe: variable names - who cares!? Pin
Paul Conrad25-Aug-08 14:17
professionalPaul Conrad25-Aug-08 14:17 
GeneralRe: variable names - who cares!? Pin
PIEBALDconsult26-Aug-08 3:27
mvePIEBALDconsult26-Aug-08 3:27 
GeneralRe: variable names - who cares!? Pin
CDP180228-Aug-08 4:13
CDP180228-Aug-08 4:13 
GeneralRe: variable names - who cares!? Pin
Paul Conrad28-Aug-08 6:31
professionalPaul Conrad28-Aug-08 6:31 
GeneralRe: variable names - who cares!? Pin
CPallini26-Aug-08 22:44
mveCPallini26-Aug-08 22:44 
GeneralRe: variable names - who cares!? Pin
Chris Losinger26-Aug-08 3:21
professionalChris Losinger26-Aug-08 3:21 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe26-Aug-08 3:37
Steven A. Lowe26-Aug-08 3:37 
GeneralRe: variable names - who cares!? Pin
BillW3328-Aug-08 4:33
professionalBillW3328-Aug-08 4:33 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe10-Sep-08 11:02
Steven A. Lowe10-Sep-08 11:02 
GeneralRe: variable names - who cares!? Pin
BillW3310-Sep-08 14:12
professionalBillW3310-Sep-08 14:12 
GeneralRe: variable names - who cares!? Pin
Vasudevan Deepak Kumar28-Aug-08 8:17
Vasudevan Deepak Kumar28-Aug-08 8:17 
GeneralRe: variable names - who cares!? Pin
Steven A. Lowe28-Aug-08 8:26
Steven A. Lowe28-Aug-08 8:26 
GeneralRe: variable names - who cares!? Pin
BiscuitTheCat28-Aug-08 8:24
BiscuitTheCat28-Aug-08 8:24 
JokeRe: variable names - who cares!? Pin
leonej_dt18-Sep-08 22:24
leonej_dt18-Sep-08 22:24 

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.