The art of readable code /
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...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Sebastopol, Calif. :
O'Reilly Media,
2011, ©2012.
|
Edición: | 1st ed. |
Colección: | Theory in practice (Sebastopol, Calif.)
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- 1. Code should be easy to understand
- Part 1. Surface-Level Improvements: 2. Packing information into names; 3. Names that can't be misconstrued; 4. Aesthetics ; 5. Knowing what to comment; 6. Making comments precise and compact
- Part 2. Simplifying Loops and Logic: 7. Making control flow easy to read; 8. Breaking down giant expressions; 9. Variables and readability
- Part 3. Reorganizing Your Code: 10. Extracting unrelated subproblems; 11. One task at a time; 12. Turning thoughts into code; 13. Writing less code
- Part 4. Selected Topics: 14. Testing readability; 15. Designing and implementing a "minute/hour counter."