DevOpsWeekly#15 AWS S3 故障分析, Uncle Bob: TDD 有损架构? Google 开源 Python 命令行生成工具, 面试时 HR 问现在收入该怎么回答?

2017-03-04 13:33:05 +08:00
 ninjadevops

AWS S3 故障分析: Summary of the Amazon S3 Service Disruption in the Northern Virginia (US-EAST-1) Region

AWS 的工程师在移除一部分 billing prcoess 用到的 servers, 不小心输入了错误的指令, 导致很多服务器被移除. 更详细的报告可以点击标题看到(目前只有英文版), 酷壳陈皓老师也写了一篇博客: AWS 的 S3 故障回顾和思考.

Uncle Bob: TDD Harms Architecture

TDD 会对架构带来负面影响吗? 随着 TestCase 的不断增多, 修改一行 production code 可能会需要随着修改很多 test, test 越多, production code 修改越麻烦. 小编的确也遇到过这样的系统. Uncle Bob 的观点: 如果在设计的时候不考虑设计原则, 譬如 Open-Closed, DependencyInversion 等原则, 如果不把测试作为系统的一部分,you will damage your design and architecture – TDD or no TDD. 文中引用了之前的一些讨论 /视频, 有兴趣的读者可以仔细阅读.

Google 开源 Python 命令行生成工具: Introducing Python Fire, a library for automatically generating command line interfaces

Google 开源了其自用的 Python 命令行生成工具, 举例:

  import fire

  class Calculator(object):
  """A simple calculator class."""

  def double(self, number):
      return 2 * number

  if __name__ == '__main__':
      fire.Fire(Calculator)

用法:

  python calculator.py double 10  # 20
  python calculator.py double --number=15  # 30

NinjaDevOps Weekly 20161226小编曾提到过 命令行神器 Click 简明笔记, 有需要的读者也可以参考Comparing Python Command-Line Parsing Libraries - Argparse, Docopt, and Click

你确定吗?

如何设计人性化的软件? 不断弹出需要用户确认的信息:"你确定要进行**操作吗?"  Basecamp 的 Designer AdamStoddard 认为: 如果操作可能会出现用户不想要的结果,那应该提供一个优雅的 undo 操作.If you ’ re trying to make considerate software, don ’ t ask your user if they ’ re sure. Assume they ’ re competent humans who mean what they intend. If the action is potentially destructive, give them a way to gracefully recover if they change their mind (undo/redo, archive states, auto-save drafts, etc).

(中文)职场话题: HR 电面问现在月薪怎么办

面试前 /面试中, HR 问现在的薪水时该怎么办? 其实小编每次也想问 HR 能出多少, 但是往往都是被 HR 套进去, 不知不觉就拖了自己的底. 这篇帖子是 V2EX 上网友们的讨论.


by ninjadevops.com

Rss 订阅:http://ninjadevops.com/feed.xml 微信订阅:

4040 次点击
所在节点    DevOps
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/344856

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX