For motivation see #88.
NZBGet code base is old. The project was started in 2004 and from the beginning uses hungarian notation for identifiers. No one uses it nowadays anymore since it does more harm than good.
The naming changes can be done for example using global text replacements. The big problem here is to guarantee that the code works as before.
Work items
This list is continuously updated.
1. local variables, member variables and function parameters: - [x] define new naming convention; - [x] do total renaming; - [x] make sure everything is intact after the global naming change; - [x] review conditional code paths; - [x] review results and make additional manual renamings where appropriate.
1.5. repeat step 1 for folder "tests": - [x] do total renaming; - [x] make sure everything is intact after the global naming change.
2. normalize acronyms: - [x] do identifier renaming; - [x] rename related source files; - [x] make sure everything is intact after the global naming change.
3. global variables: - [x] define new naming convention; - [x] do total renaming; - [x] make sure everything is intact after the global naming change.
该提问来源于开源项目:nzbget/nzbget