Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    I fail to see the advantage of UserEmailText to txtEmail - you're just suffixing the type rather than prefixing it. I like "This is what OOP is designed for", though. Commented Apr 4, 2011 at 22:05
  • @fearoffours, OP admitted to having an issue with unique names, I added that example as a descriptive way of distinguishing between two similar variables (UserEmailText and AdminEmailText specifically). I usually suffix types as it lends itself to moving to a class UserEmailText -> UserEmail.text -> User.email.text depending on how much abstraction/functionality is necessary. Commented Apr 4, 2011 at 22:13
  • OK see where you're coming from there. +1 for the comparison of suffix/ class. Oh, and I am the OP! Commented Apr 5, 2011 at 13:34
  • @fearoffours, lol whoops... Commented Apr 5, 2011 at 15:10