Here is an email I received in response to my essay on how to write unmaintainable code.
For obvious reasons I’d prefer you posted this anonymously.
And it was a magic number, char …[1024] scattered throughout the code. Despite the change, each time the magic number was increased (by the client who had the source code —a _real_ bad idea - we had an engineer full time for 18 months inserting their code changes (sent monthly in inch thick paper forms) into our code base) rather than using a define. So it took days to increase the size… Of course, this also meant that even short names used a full 1K of memory (actually I think we kept at least three copies…). For some reason, once customers downloaded 20MB debug files the debugger was very s l o w
We now have to support “unlimited” (232) length function names because 1024 was not enough.
I_would_now_like_to_add_a_value_to_another_value_while ….
So thank us software tool writers for supporting such ridiculous requests and helping make code maintenance a dabbler free zone.
| You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) | |
| http://mindprod.com/feedback/unmain/obscure.html | J:\mindprod\feedback\unmain\obscure.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view | Your face IP:[38.107.191.104] | |
| Feedback | You are visitor number 11. | |