Clean Code Summary
CtrlK
  • Clean code
  • General Rules 普遍原则
  • Design rules 设计原则
  • Understandability tips 易于理解
  • Names rules 命名原则
  • Functions rules 函数原则
  • Comments rules 注释原则
  • Source code structure 代码结构
  • Objects and data structures 数据对象与数据结构
  • Tests 测试
  • Code smells 坏味道
  • Naming
  • Functions
  • Comments
  • Formatting
  • Objects and Data structure
  • Error Handling
  • Boundaries
  • Unit Tests
  • Classes
  • Systems
  • Emergencies
  • Smells and Heuristics
Powered by GitBook
On this page

Was this helpful?

Tests 测试

  1. One assert per test.

  2. Readable.

  3. Fast.

  4. Independent.

  5. Repeatable.

  • 每个测试一个断言。

  • 可读。

  • 快速。

  • 独立。

  • 可重复。

PreviousObjects and data structures 数据对象与数据结构NextCode smells 坏味道

Last updated 6 years ago

Was this helpful?