3 ms·
At my work it's a few hundred globals, often times used in a few hundred different places scattered over, again, hundreds of files. To make things more fun the
by zwirbl 8y ago
At my work it's a few hundred globals, often times used in a few hundred different places scattered over, again, hundreds of files.
To make things more fun there rarely is a function with less than a 1000 LOC, written in a Winforms Button_Click handler. Less than 10 functions I've seen take parameters and return a value, almost all rely on globals being set and set some themselves in return.
After the manager and main author of the software asked me to build a new UI and leave the underlying code untouched I decided to leave the company and work on someone elses messy code