Author Topic: Hungarian Notation  (Read 1245 times)

MrPike

  • Sr. Member
  • ****
  • Posts: 297
    • View Profile
Hungarian Notation
« on: September 03, 2016, 09:26:34 AM »
Hello AHMI community.  So I decided to expand my understanding of visual basic so I have enrolled in a local college and I am taking some online courses.  My instructor has been teaching the use of Hungarian Notation (btnSubmit) style coding.  I remember a post awhile back where Archie advised against this style of coding but I cannot locate it.  I would like to step out of the academic world and get some real world input as to why or why not to use this style.  Thanks!

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Hungarian Notation
« Reply #1 on: September 03, 2016, 09:47:04 AM »
Hungarian notation was more prevalent before code editors had things such as tool tips to quickly identify the data type.

Microsoft publishes a set of "best practices" recommended for .NET applications. In the section General Naming Conventions, they specify a list of rules to follow to make your code consistent with the .NET class library as well as other developers:

https://msdn.microsoft.com/en-us/library/ms229045(v=vs.110).aspx

I find that many people who continue to use Hungarian notation were developers since VB6 or earlier. They developed the habit many years ago.