V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ninjadevops
V2EX  ›  DevOps

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

  •  
  •   ninjadevops · 2017-03-04 13:33:05 +08:00 · 4014 次点击
    这是一个创建于 2581 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 微信订阅:

    微信订阅:

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1425 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 17:27 · PVG 01:27 · LAX 10:27 · JFK 13:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.