C++ for dinosaurs: Guide for readable, maintainable, reusable and faster code

Nick Economidis

  • 出版商: Lulu.com
  • 出版日期: 2014-07-11
  • 售價: $770
  • 貴賓價: 9.5$732
  • 語言: 英文
  • 頁數: 120
  • 裝訂: Paperback
  • ISBN: 1312367660
  • ISBN-13: 9781312367661
  • 相關分類: C++ 程式語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

This is a guide for creating readable, maintainable, reusable and faster code. No object oriented programming is involved. Out of all techniques which aim to improve your product's quality, readability has the highest return on effort. - Quality: Bugs are found mostly by reviewing other people's code. You can't review somebody else's code if you cannot read it. Bugs are not found by unit-tests, because unit-tests are created to capture errors that are known to exist. - Efficiency: Maintenance takes about 80% of developers' time. Therefore, spending some time in writing better code will save you more time during maintenance. - Performance: Unreadable code is difficult to reason about. Any opportunities for optimisation that may exist are often impossible to spot. The six techniques described are easy, therefore: - students can apply them - C programmers can follow it without changing programming paradigm - you can write idiomatic C++, instead of writing like C, Java, or Fortran.

商品描述(中文翻譯)

這是一份關於創建可讀、可維護、可重用且更快速代碼的指南。此指南不涉及物件導向程式設計。在所有旨在提高產品質量的技術中,可讀性所帶來的回報最高。

- 質量:錯誤主要是通過審查他人的代碼來發現的。如果你無法閱讀別人的代碼,就無法進行審查。錯誤並不是通過單元測試發現的,因為單元測試是為了捕捉已知存在的錯誤而創建的。

- 效率:維護大約佔開發人員80%的時間。因此,花一些時間來編寫更好的代碼將在維護過程中為你節省更多時間。

- 性能:難以閱讀的代碼難以推理。任何可能存在的優化機會往往難以察覺。

所描述的六種技術都很簡單,因此:
- 學生可以應用它們
- C 程式設計師可以在不改變程式設計範式的情況下遵循它
- 你可以編寫符合慣用法的 C++,而不是像 C、Java 或 Fortran 那樣編寫。