【RefactoringCode】The description of the refactoring book

Last night the book named [Data Structure with Java Hubbed] was closed. When talked about the advantage that I have taken of, with the help of that book I familize myself with data structure,
especially the Java Collection Framework. I think it important for me to further get my position promptation. So today night I prepare to start a new book, whose name is <Refactoring : Imporve Design the existing code> written by by Martin Fowler, Kent Beck
(Contributor), John Brant (Contributor), William

Opdyke, don Roberts. In the past  this book was always talked by friends and was strongly recommended to me as a primary guigude to senior software deverloper. However, for the sake of my laziness, I start to read this book until
now.

Refactoring: Imporvinmg the design of the existing code shows how refactoring can make object-oriented code simple and easier to maintain. Today refactorign require considerable design know-how,
but once tools become availables, all programmers should be able to imporve their coding using refactoring techniques.

Early chapters stress the importance of testing in the successful refactoring (When you imporve code, you have to test tot verify that it still works).After the discuss on how to detect ‘smell‘
of bad code, readers get to heart of the book,it catalog of over 70 ‘refactorings‘--tips for better and simpler class design. Each tip of is illustrated with before and after code.

时间: 2024-10-29 19:11:53

【RefactoringCode】The description of the refactoring book的相关文章

【DataStructure】The description of generic collections

In this blog, generic collections will be talked about  in details.  In the past bacause of shortage of generic argument,  less importance has been attached to the this module. Just now after reading the chapter about this knowledge, I gradually real

【DataStructure】The description of Java Collections Framework

The Java Connections FrameWork is a group of class or method and interfacs in the java.util package. Its main purpose is to provide a unified framework for implementing common data structure. A collections is a object that contains other objects,whic

【DataStructure】The description and usage of Stack

A stack is collection that implements the last-in-first-out protocal.This means that the only access object in the collections is the last one thatwas inserted.The fundamental  operations of a stack are: add an element onto the top of stack, access t

【MongoDB】The description of procedure in MongoDB

In this blog the procedure of mongodb will be described in details. It is known that mongodb has provided a series of efficient solution to some different questions, such as high performance, changeable type and so on. Compared with the mysql databas

【MonogDB】The description of index(二) Embedded and document Index

In this blog, we will talk about another the index which was called "The embedded ". First we init 1w the records as follows: 2.2 The embedded Index The compare between the before and the after. 2.3 Document Index

【MongoDB】The description of index(一)

From this blog, we start to talk about the index in mongo Database, which is similar to the traditional database. Generally speaking, if the index need to be created in the traditional database, so does MongoDB.  In MongoDB ,the field '_id ' has been

【NOIP2016】愤怒的小鸟

P2257 - [NOIP2016]愤怒的小鸟 Description Kiana最近沉迷于一款神奇的游戏无法自拔. 简单来说,这款游戏是在一个平面上进行的. 有一架弹弓位于(0,0)处,每次Kiana可以用它向第一象限发射一只红色的小鸟,小鸟们的飞行轨迹均为形如y = ax^2 + bx的曲线,其中a, b是Kiana指定的参数,且必须满足a<0. 当小鸟落回地面(即x轴)时,它就会瞬间消失. 在游戏的某个关卡里,平面的第一象限中有n只绿色的小猪,其中第i只小猪所在的坐标为(xi,yi). 如

【BZOJ4127】Abs 树链剖分+线段树

[BZOJ4127]Abs Description 给定一棵树,设计数据结构支持以下操作 1 u v d 表示将路径 (u,v) 加d 2 u v 表示询问路径 (u,v) 上点权绝对值的和 Input 第一行两个整数n和m,表示结点个数和操作数 接下来一行n个整数a_i,表示点i的权值 接下来n-1行,每行两个整数u,v表示存在一条(u,v)的边 接下来m行,每行一个操作,输入格式见题目描述 Output 对于每个询问输出答案 Sample Input 4 4 -4 1 5 -2 1 2 2

【BZOJ2064】分裂 状压DP

[BZOJ2064]分裂 Description 背景:和久必分,分久必和...题目描述:中国历史上上分分和和次数非常多..通读中国历史的WJMZBMR表示毫无压力.同时经常搞OI的他把这个变成了一个数学模型.假设中国的国土总和是不变的.每个国家都可以用他的国土面积代替,又两种可能,一种是两个国家合并为1个,那么新国家的面积为两者之和.一种是一个国家分裂为2个,那么2个新国家的面积之和为原国家的面积. WJMZBMR现在知道了很遥远的过去中国的状态,又知道了中国现在的状态,想知道至少要几次操作(