Skip to main content

编程经验

· One min read
  • 简洁性(Keep It Simple, Stupid - KISS):一个好的代码应该是简单的。这意味着代码容易被他人理解,容易维护,且避免了不必要的复杂性。

  • 减少琐事

    “Toil is the kind of work that tends to be manual, repetitive, automatable, tactical, devoid of enduring value, and that scales linearly as a service grows.” -- Site Reliability Engineering book

    琐事往往是手动的、重复性的、自动化的、战术性的,缺乏持久价值,并且随着服务的增长而线性扩展

  • 快速失败(Fail Fast): 当检测到问题时,尽早抛出错误或异常,而不是让程序在错误的状态下继续运行。