|
|
|
|
|
by Sebb767
2228 days ago
|
|
> I should also add that Hungarian notation is the prototypical example of dumb, verbose code If used wrongly. Joel Spolsky wrote a whole post on it[0], but the TL;DR is that you should use the notation to differentiate between variables of the same type. For example, you might have world coordinates and object coordinates in a game script. Correctly used Hungarian notation would denote them, for example, with `wPosX` and `pPosX`. Even though they're both int (or float), you can easily see that you shouldn't assign one to the other. Using them to notate types, however, as in `iPosX`, is completely useless. I fully agree with that. [0] https://www.joelonsoftware.com/2005/05/11/making-wrong-code-... |
|