this post was submitted on 07 May 2024
621 points (97.5% liked)
Programmer Humor
19454 readers
27 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Older C compilers would truncate a variable name if it was too long, so
VeryLongGlobalConstantInsideALibraryInSeconds
might accidentally collide withVeryLongGlobalConstantInsideALibraryInMinutes
.Legend says that they used to do it after a single letter with Dennis declaring "26 variables ought to be enough for anyone".
I had this problem in my job as a drafter. I was wondering why the hell Tekla would complain about the same object name already being in use despite everything having its own name. took me way too long to realize there wad some stupidly max name length and the program did nothing to alarm the user about trying to put too long name. it just cut the overflow away.