As programmers, we've all seen source code that's so ugly and buggy it makes our brain ache. And let's be honest, we've all written code like that. With this book, you'll learn to write code that's easy to read and understand. You'll have more fun and your coworkers will love you.
The Art of Coding focuses on the nuts and bolts of programming, with simple and practical techniques you can use every time you sit down to write code. You'll find tips throughout the book, with easy-to-digest code examples, helpful illustrations, and cartoons for fun.
* Learn to pick variable names that are "dense with information"
* Organize your loops and conditionals so they're easy to understand
* Make your comments short and sweet
* Recognize when your code is doing too many things at once
* Write tests that are concise, but thorough
* Master the art of breaking hard problems into many smaller ones
Dustin Boswell
Although raised in the circus, Dustin Boswell realized early on that he was better at computers than at acrobatics. Dustin received his B.S. from CalTech, where he got hooked on Computer Science, and then went to UC San Diego for his Master's Degree. He worked at Google for five years, on a variety of projects including web crawling infrastructure. Dustin is now an internet startup junkie who spends his free time hiking the Santa Monica mountains and being a new dad.
Trevor Foucher has been shipping software projects for over 10 years, including Windows 2000 and OneCare at Microsoft, and Webmaster Tools at Google. He's been an individual contributor, manager, and tech lead. His goal is to make code more readable and reliable.
本书主要观点: 1. 优雅的命名 1.1 命名具备自解释性(解释用途) 1.2 能附加(必要的)更多信息(匈牙利命名法的类型信息) 1.3 命名格式统一,如 kConstName 骆驼命名法或单词下划线 bool变量的is, has, can等前缀 ... 1.4 遵循业界的命...
评分俗话说“函数应该只做一件事” ,没错,分解大函数为小函数是好的。但是,它并不一定是函数的界限。如果你愿意的话,仍然可以组织你的大代码感觉像有独立的分段组成的。举的例子很贴切! Turning Thoughts into Code 还不能够清楚理解要解决的问题时候,不要下手写代码。写的...
评分之前做重构项目的时候,就发现了代码质量的问题,一些老模块的代码写的简直令人发指,没有文档没有任何资料的情况下,只能人肉去读代码梳理功能,经历了各种痛苦,后来也不断在组内各种灌输代码质量的意识,在这方面做了一些推动。 偶然间翻了这本书,感觉一下找到了知己,命名...
评分 评分里面还提到了对测试代码的可读性介绍,书里的漫画配得不错。
评分插图很赞,排版也好,可惜内容无甚新意
评分一般般
评分插图很赞,排版也好,可惜内容无甚新意
评分跟CleanCode的很多观点不同,Comments章节是其中之一;如果你认同ProductiveProgrammer和CleanCode的内容,这本书不看亦可;但是,也有颇多可取之处,细节处一些例子挺好的... 如果你时间有限,这本书挺合适。读完了之后,你会知道PP那里有这么简单?!
本站所有内容均为互联网搜索引擎提供的公开搜索信息,本站不存储任何数据与内容,任何内容与数据均与本站无关,如有需要请联系相关搜索引擎包括但不限于百度,google,bing,sogou 等
© 2025 book.quotespace.org All Rights Reserved. 小美书屋 版权所有