I'm developing a web-based source code editor. I'm developing everything(tabs, context menu etc) out of HTML elements. How do I come up with names for UI controls? Is there a book or guide or project from which I can learn how to name things?
I agree with most of what greengit says, but like to add the following. The bottom line is indeed to ensure readability. That's why I prefer not to use abbreviations like
dlg, etc. I've seen this lead to unreadable abbreviations (i.e. what's
icb, it was a custom control, but definitely unreadable).
Also, I like to put the function of the control first.
Do choose something you feel comfortable with, go for readability, and stick to it. Consistency also increases readability.