机读格式显示(MARC)
- 000 02645nam a2200313 a 4500
- 008 120726r20122011cc a b 001 0 eng d
- 020 __ |a 9787564134471 (pbk.)
- 099 __ |a CAL 022012089346
- 100 1_ |a Boswell, Dustin.
- 245 14 |a The art of readable code = |b 易读代码的艺术 / |c Dustin Boswell, Trevor Foucher著.
- 246 1_ |i Pre-publication title: |a Art of coding.
- 260 __ |a 南京 : |b 东南大学出版社, |c 2012.
- 300 __ |a x, 190 p. : |b ill. ; |c 24 cm.
- 490 0_ |a Theory in practice.
- 504 __ |a Includes bibliographical references (p. 182-184) and index.
- 505 0_ |a Code should be easy to understand -- pt. 1. Surface-level improvements. Packing information into names ; Names that can't be misconstrued ; Aesthetics ; Knowing what to comment ; Making comments precise and compact -- pt. 2. Simplifying loops and logic. Making control flow easy to read ; Breaking down giant expressions ; Variables and readability -- pt. 3. Reorganizing your code. Extracting unrelated subproblems ; One task at a time ; Turning thoughts into code ; Writing less code -- pt. 4. Selected topics. Testing readability ; Designing and implementing a "minute/hour counter."
- 520 __ |a As programmers, we've all seen source code that's so ugly and buggy it makes our brain ache. Over the past five years, authors Dustin Boswell and Trevor Foucher have analyzed hundreds of examples of "bad code" (much of it their own) to determine why they're bad and how they could be improved. Their conclusion? You need to write code that minimizes the time it would take someone else to understand it -- even if that someone else is you. This book focuses on basic principles and practical techniques you can apply every time you write code. Using easy-to-digest code examples from different languages, each chapter dives into a different aspect of coding, and demonstrates how you can make your code easy to understand. Simplify naming, commenting, and formatting with tips that apply to every line of code; Refine your program's loops, logic, and variables to reduce complexity and confusion; Attack problems at the function level, such as reorganizing blocks of code to do one task at a time; Write effective test code that is thorough and concise, as well as readable. - Publisher.
- 534 __ |p Reprint. Originally publshed: |c Sebastopol, Calif. : O'Reilly, c2011.
- 650 _0 |a Computer programming.
- 700 1_ |a Foucher, Trevor.
- 950 __ |a SCNU |f TP311.11/B747