naming your variables |
|
|
Posted by: stak i was spelunking through some open source project the other day, and it really bugged me that the code not only used bad (i.e. systems) hungarian notation, but had variable names that were very similar to each other. so there were a whole bunch of variables with messy and meaningless prefixes, and then differed by only a letter or two. this made it really hard to read, because when you're comparing two long strings, you don't actually compare every single character. so i would be looking at the code and mis-read one variable as another and confuse the heck out of myself.
|
(c) Kartikaya Gupta, 2004-2024. User comments owned by their respective posters. All rights reserved. You are accessing this website via IPv4. Consider upgrading to IPv6! |