Best way to get rid of hungarian notation?

前端 未结 20 1174
萌比男神i
萌比男神i 2021-01-18 20:52

Let\'s say you\'ve inherited a C# codebase that uses one class with 200 static methods to provide core functionality (such as database lookups). Of the many nightmares in th

20条回答
  •  别那么骄傲
    2021-01-18 21:10

    Don't forget that there are two kinds of Hungarian Notation.

    The original Charles Simonyi HN, later known as App's Hungarian and the later abomination called System Hungarian after some peckerhead (it's a technical term) totally misread Simonyi's original paper.

    Unfortunately, System HN was propagated by Petzold and others to become the more dominant abortion that it is rightfully recognised as today.

    Read Joel's excellent article about the intent of the original Apps Hungarian Notation and be sorry for what got lost in the rush.

    If what you've got is App's Hungarian you will probably want to keep it after reading both the original Charles Simonyi article and the Joel article.

    If you've landed in a steaming pile of System Hungarian?

    All bets are off!

    Whew! (said while holding nose) (-:

提交回复
热议问题