Replace Magic Number with Symbolic constant

it2022-05-09  26

You have a literal number with a particular meaning.

Create a constant, name it after the meaning, and replace the number with it.

转载于:https://www.cnblogs.com/nanshouyong326/archive/2007/05/15/747369.html

相关资源:重构_改善既有代码的设计[高清版]中文版

最新回复(0)