Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> There was a LOT of global variables (seemingly random 4 uppercase letters) controlling everything.

I once ran across a (c) program that had 26 variables, each one letter long, one for each letter of the alphabet. They were all global variables. And many of them were re-used for completely unrelated things.



Ah, the "user-defined registers" paradigm.


I inherited a control program from Risø National Laboratories. It had roughly 600 globals of the form A9$, three local variables, and one comment - "Midlertidig".

However on a more practical note, the "Java" used on Smartcards effectively requires that all variables be treated as constants, other than one array. You dynamically allocate the array when handing an event, and it only lasts for the duration of that event.


wow this is just evil

I want an obfuscator doing such a transformation:D




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: