Quantcast
Channel: User Filip Milovanović - Software Engineering Stack Exchange
Viewing all articles
Browse latest Browse all 164

Comment by Filip Milovanović on Where does the practice of naming variables with the prefix "my" come from?

$
0
0
I'd also say, as the answer below suggests, the "my" prefix comes from practice examples and homework and such. But some people might be using this in a very specific way. In the professional world, there's also a common practice to prefix class member fields with m_ or _ - a form (and a relic) of at one time widely spread Hungarian notation. I'm guessing there are people who are using my as a variant of this (where, in methods, "my" indicates the object is referring to a variable it owns).

Viewing all articles
Browse latest Browse all 164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>