重构改善既有代码总结

  1. 一个函数不要包括太多功能,利用设计模式重构switch,重构前做好单元测试,注意int和float之间的bug

猜你喜欢

转载自blog.csdn.net/qq_37811712/article/details/89348486
今日推荐