File tree Expand file tree Collapse file tree
00RefactoringPython/ch2Principles Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99性能优化往往让代码较难理解,但为了得到所需性能你不得不这么做。
1010<br ><br >
1111
12- ![ ] ( https://raw.githubusercontent. com/greatabel/RefactoringPython/ master/ch2Principles /2hats.jpeg )
12+ ![ ] ( https://github. com/lytpe/ImprovePython/edit/ master/00RefactoringPython/ch2Principle /2hats.jpeg )
1313<b >  ; 添加新功能</b >时候,你不应该修改既有代码,只管添加新功能。。通过测试,衡量工作进度。<br >
1414<b >  ; 重构时候</b >你就不能再添加功能,只管改进程序结构。此时不应该添加测试。<br >
1515软件开发中,你可能发现自己经常变换帽子,可能来回切换,但是无论何时你都要清楚自己戴的是哪一顶帽子。
2020···重构就像整理代码,让所有东西回到应处的位置,代码结构流失是累积性。<br >
2121···经常性的重构帮助代码维护自己该有的形态
22222 . 让软件更容易理解<br >
23- <img src =" https://raw.githubusercontent. com/greatabel/RefactoringPython/ master/ch2Principles/clean_window.jpg " height =" 100 " width =" 100 " >
23+ <img src =" https://github. com/lytpe/ImprovePython/edit/ master/00RefactoringPython /ch2Principles/clean_window.jpg " height =" 100 " width =" 100 " >
2424早起重构像:擦掉窗户上的污垢,使得你看的更远。重构把我带上更高理解层次;如果没有重构,我达不到这种层次。<br >
25253 . 重构提高编程速度
2626···重构帮助你更快速的开发程序<br >
2727···良好的设计是快速开发的根本
28- <img src =" https://raw.githubusercontent. com/greatabel/RefactoringPython/ master/ch2Principles/modao.jpg " height =" 200 " width =" 200 " >
28+ <img src =" https://github. com/lytpe/ImprovePython/edit/ master/00RefactoringPython /ch2Principles/modao.jpg " height =" 200 " width =" 200 " >
2929
3030
3131![ #b49ee5] ( https://placehold.it/15/b49ee5/000000?text=+ )
You can’t perform that action at this time.
0 commit comments