mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Addressed PR 52.
This commit is contained in:
parent
9c2aba298c
commit
c9e015ce1f
|
@ -13794,9 +13794,9 @@ Thus, we need a way of gradually modernizing a code base.
|
|||
Upgrading older code to modern style can be a daunting task.
|
||||
Often, the old code is both a mess (hard to understand) and working correctly (for the current range of uses).
|
||||
Typically, the original programmer is not around and test cases incomplete.
|
||||
The fact that the code is a mess dramatically increases to effort needed to make any change and the risk of introducing errors.
|
||||
Often messy, old code runs unnecessarily slowly because it requires outdated compilers and cannot take advantage of modern hardware.
|
||||
In many cases, programs support would be required for major upgrade efforts.
|
||||
The fact that the code is a mess dramatically increases the effort needed to make any change and the risk of introducing errors.
|
||||
Often, messy old code runs unnecessarily slowly because it requires outdated compilers and cannot take advantage of modern hardware.
|
||||
In many cases, automated "modernizer"-style tool support would be required for major upgrade efforts.
|
||||
|
||||
The purpose of modernizing code is to simplify adding new functionality, to ease maintenance, and to increase performance (throughput or latency), and to better utilize modern hardware.
|
||||
Making code "look pretty" or "follow modern style" are not by themselves reasons for change.
|
||||
|
|
Loading…
Reference in New Issue
Block a user