《重构-改善既有代码的设计》Martin Fowler 摘要: 第七章 在对象之间搬移特性
Move Method 搬移函数
你的程序中,有个函数与其所驻类之外的另一个类进行更多交流:调用后者,或被后者调用
在该函数最常引用的类中建立一个有着类似行为的新函数。将旧函数变成一个单纯的委托函数,或者将旧函数完全移除。
Move Field 搬移字段
某个字段被其所驻类之外...
                            
                            
                                分类:
其他好文   时间:
2014-06-07 15:18:01   
                                阅读次数:
171
                             
                    
                        
                            
                            
                                一、软件准备: 最新版的是Windows Live Writer 
2012,但是不提供单独的安装包,它是和微软其它软件一起的(包括MSN、Window Move 
Maker等),软件大小为131M,官方下载地址:http://g.live.com/1rewlive5-all/zh-cn/wlsetu...
                            
                            
                         
                    
                        
                            
                            
                                原题地址:https://oj.leetcode.com/problems/triangle/题意:Given 
a triangle, find the minimum path sum from top to bottom. Each step you may move 
to adjacent n...
                            
                            
                                分类:
编程语言   时间:
2014-06-06 17:31:34   
                                阅读次数:
397
                             
                    
                        
                            
                            
                                rsnc remote sync 
远程同步安装包:rsync-3.0.6-4.el5_7.1.x86_64.rpm rpm -ivh 
rsync-3.0.6-4.el5_7.1.x86_64.rpm 本地模式只需要安装rsync即可:rsync -av /secbox /backup 
备份到本地rs...
                            
                            
                                分类:
系统相关   时间:
2014-06-06 15:07:58   
                                阅读次数:
416
                             
                    
                        
                            
                            
                                一、Move操作varpSource,pDest:PChar;len:integer;.......................//一些代码Move(pSource,pDest,len);//错误Move(pSource^,pDest^,len);//正确,根据Move函数: 
S:=PCha.....
                            
                            
                                分类:
其他好文   时间:
2014-06-05 16:40:17   
                                阅读次数:
143
                             
                    
                        
                            
                            
                                键盘移动 (Move)一切都从键盘的移动k-> 上 upj-> 下 
downh-> 左 leftl-> 右 rightz-> 重画屏幕,当前光标变成屏幕的第一行 (redraw current line at 
top of window)CTRL-f-> 跳到下一页 (page down)CTRL-...
                            
                            
                                分类:
其他好文   时间:
2014-06-05 15:48:07   
                                阅读次数:
354
                             
                    
                        
                            
                            
                                Robot MotionDescriptionA robot has been 
programmed to follow the instructions in its path. Instructions for the next 
direction the robot is to move ar...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 17:56:00   
                                阅读次数:
247
                             
                    
                        
                            
                            
                                1.什么是MTF MTF(move-to-front)是一种数据编码方式,用于提高数据压缩技术效果。 
在数据压缩算法中,MTF可以作为一个额外的步骤。也就是说 ,可以先进行MTF编码,在进行数据压缩。2.MTF基本原理 
主要使用的是数据的”空间局部性“,也就是最近出现过的字符很可能在接下来的文...
                            
                            
                                分类:
其他好文   时间:
2014-06-02 12:39:23   
                                阅读次数:
492
                             
                    
                        
                            
                            
                                DescriptionStandard web browsers contain 
features to move backward and forward among the pages recently visited. One way 
to implement these features i...
                            
                            
                                分类:
Web程序   时间:
2014-05-31 21:16:40   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                1. Java代码的重构1. Java代码的重构 重构, 改善既有代码的设计 面向对象代码, 
减少重复代码 Student 全部换成 Students 导入包, 就在上述Rename下选择Move进行包之间的移动 修改方法名称, 选中方法名称, 右键 
上述操作中选择Pull up/Push do.....
                            
                            
                                分类:
系统相关   时间:
2014-05-31 17:07:23   
                                阅读次数:
399