タグ

2018年5月28日のブックマーク (2件)

  • Bacoor Inc. | Bring Blockchain Technology to the next level

    August 12, 2019 - Update Simplex and Gacha on HB Wallet July 15, 2019 - We are sorry to announce that activities of Realboost.jp will be paused. ​​ Hence, from Thursday, July 18th, 2019, we will stop allowing registration. On July 25th, 2019, we will stop providing all services of Realboost. We have integrated Realboost to HB Wallet, where users can communicate with each other via HB Chat. The web

    Bacoor Inc. | Bring Blockchain Technology to the next level
  • Ruby: フラグ引数は「コードの臭い」(翻訳)|TechRacho by BPS株式会社

    概要 原著者の許諾を得て翻訳・公開いたします。 英語記事: Flag arguments are a code smell 原文公開日: 2017/05/04 著者: Jeroen Weeink サイト: Crafting Ruby フラグ引数は、メソッドの振る舞いを変更するbooleanです。フラグ引数があるということは、このコードが外的要素に応じていくつものシナリオを演じていることを示しています。高度なレベルのコード片が、低レベルメソッドひとつで右往左往しているのです。 次の簡単なコード例で考えてみましょう。 def create_task(description, priority, preview: true, email: true) task = Task.new task.status = "open" task.description = description task.

    Ruby: フラグ引数は「コードの臭い」(翻訳)|TechRacho by BPS株式会社
    tumo300-500
    tumo300-500 2018/05/28
    本文関係ないけど、そのスコープでは該当のレシーバについての処理しかしない tap って使わないほうが読みやすいのでは、と思ったけど何か意図があるんだろうか