图书标签: refactor Programming 程序设计 计算机 JavaScript 重构 2nd 软件工程
发表于2024-09-09
Refactoring pdf epub mobi txt 电子书 下载 2024
Refactoring is about improving the design of existing code. It is the process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its internal structure. With refactoring you can even take a bad design and rework it into a good one. This book offers a thorough discussion of the principles of refactoring, including where to spot opportunities for refactoring, and how to set up the required tests. There is also a catalog of more than 40 proven refactorings with details as to when and why to use the refactoring, step by step instructions for implementing it, and an example illustrating how it works The book is written using Java as its principle language, but the ideas are applicable to any OO language.
Features
The first update to a classic that is the standard reference for refactoring in over 15 years
Enhanced, web-based features including interactive examples, video snippets, code highlighting
Extensive use of JavaScript examples
New to This Edition
Martin Fowler is retaining everything that made Refactoring one of the world’s most popular and influential computer books, while updating with JavaScript examples throughout (to address many programmers’ current preferences) and reflecting today’s programming paradigms. The book’s catalog of individual refactorings has been updated, revised, and expanded.
Martin Fowler is Chief Scientist at ThoughtWorks. He describes himself as “an author, speaker, consultant and general loud-mouth on software development.” Fowler concentrates on designing enterprise software: exploring what makes a good design and what practices are needed to create one.
第二版有了不少改进,比如代码换成了js(用的是最新的ES语法),重构都配了示意图。收获非常大。
评分虽然例子是用JS写的,思想都是通的。前几章看完帮助非常大,很多平时写代码时候会纠结的地方从这里可以找到答案。讲的原则可操作性非常强,很多思想可以直接影响现在的工作方式。具体每个重构技巧比较繁杂,没仔细看完,可以有需要再拿出来翻。印象深刻的几个点:“不要专门和老板说我要重构,而是作为功能的一部分”,“保持修改后的代码比现在的代码好”,“大部分情况:可读性>性能”,“profiling找性能瓶颈,直觉大部分情况是错的”解决。
评分学习了JavaScript的一些新语法。
评分第二版有了不少改进,比如代码换成了js(用的是最新的ES语法),重构都配了示意图。收获非常大。
评分学习了JavaScript的一些新语法。
《重构》这本书我觉得没什么意思。这本书有个矛盾点:对有丰富经验的程序员来说,这本书上面所提到的所谓手法已经是他们日常编程中已经熟练使用的,这本书只是给这些手法命了个名而已,看这本书毫无意义。而对于新手程序员来说,因为你没有一定的代码量,应该是看不懂书上说的...
评分《重构》给我最大的收获,其实是想法而非技巧。 开发人员的完美主义倾向,容易变成他们做Big Design Up Front的驱动力。而在现实的环境中,时间、资源等约束条件,通常不会允许我们进行过于详细的设计。 我认为最好的做法是,轻量级的设计 + 适当的重构,迭代地开发出满足各...
评分书中说过重构的思想由来已久,只不过没人写成书籍罢了。 个人感觉如果你看完这本书只看到了思想,那你就错过了很多有价值的东西。小步骤的重构,如何最大限度的不引入bug才是书中要告诉大家的。像了解重构思想,只看前几章就够了。我个人认为书中最有价值的东西恰恰是进行重构...
评分这本书一开始读的是英文,不过Martin Fowler本身好像就不是一个Native的英语国家的人。所以他的英文写的也是比较容易懂的。 这个书第一章是一个完整的重构的例子,虽然现实中不可能如此完美而孜孜不倦的重构,不过作为一个例子,是非常的好的,让你能为重构的力量所震...
评分纸张很赞,只是排版松散,书就比较厚了。 本人对代码有洁癖,不自觉的一直会调整过去的代码,也需要对照大师总结的规律反思一下。 重构的基础能力在于能够嗅出代码中的坏味道(Bad smell),甚至反模式(Anti-pattern),因此要结合相关书籍一起阅读了。 最近在看的肖鹏一篇文...
Refactoring pdf epub mobi txt 电子书 下载 2024