24.03.2013, 19:58
Quote:
That is mostly true, but it does make a big difference. If I see a variable called "currentPlayerHouse" I can make an informed decision of its purpose, and can track it through code with just a glance as I know the words so it is much easier to remember. If I see another one called "currentPlayerHorse" then I can instantly see it is different and can guess when they are used in the wrong place by context alone. If I see variables "acxydgOpgertic" and "acxydyOpirst" I can't guess the meaning and find it hard to track them as you need to remember a string of (seemingly) random letters instead of words and concepts.
I'm not saying it is impossible - many bugs can still be seen and you can still look at where variables are used, but imho it is harder and (I'm sorry to say) I generally won't try as I rely I on the context a lot. |