hungarian-notation

Multi-threading guidelines: Can't remember my source

Hi, I'm trying to track down the source of a particular piece of coding advice I once read. I'm currently working with a class that has a lot of threading around a single shared resource, controlled by a mutex. I just spent a week trying to debug the damn code, because it's difficult to spot sub-functions which don't self-lock, and...

An interesting detail about variable name

I have read tutorials all over the web with different kinds of tutorials specified on game (however, this turns out to be pretty general). Are there any reasons to why many developers name their variables like: mContext For me it is default to just name it "context" or something similar. Are there any reasons why the "m" are before?...

Do you use Hungarian notation for control names?

I totally agree that we should not use Hungarian Notation to name variables. But it seems that Hungarian Notation is still useful to name controls (especially Winform controls). Consider these: GridView grvUsers TextBox txtPassword etc... I really doubt that should we avoid Hungarian notation in this case? If should, which is alterna...