Best way to get rid of hungarian notation?

前端 未结 20 1191
萌比男神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:20

    How much are you going to break by doing this? That's an important question to ask yourself. If there are a lot of other pieces of code that use that library, then you might just be creating work for folks (maybe you) by going through the renaming exercise.

    I'd put it on the list of things to do when refactoring. At least then everyone expects you to be breaking the library (temporarily).

    That said, I totally get frustrated with poorly named methods and variables, so I can relate.

提交回复
热议问题