Is it possible to write good and understandable code without any comments?

前端 未结 20 1376
攒了一身酷
攒了一身酷 2020-12-28 18:35

Can any one suggest what is the best way to write good code that is understandable without a single line of comments?

20条回答
  •  温柔的废话
    2020-12-28 18:52

    Read Code Complete, 2nd Edition cover to cover. Perhaps twice.

    To give some specifics:

    • Making code readable
    • Eliminating code repetition
    • Doing design/architecture before you write code

提交回复
热议问题