タグ

patternに関するnodatのブックマーク (3)

  • Collection Pipeline

    Collection pipelines are a programming pattern where you organize some computation as a sequence of operations which compose by taking a collection as output of one operation and feeding it into the next. (Common operations are filter, map, and reduce.) This pattern is common in functional programming, and also in object-oriented languages which have lambdas. This article describes the pattern wit

    Collection Pipeline
  • Scalaパターンマッチの Infix Operation Pattern - tototoshi の日記

    Unfiltered を使うときに必要になるのですが、キモ便利です ちょっとテストデータを定義しますね。 case class Person(name: String, age: Int, height: Int) val tanaka = Person("tanaka", 16, 170) 田中君は16才で170cmです。 田中君は case class として定義しました。 case class なので、みんな大好きパターンマッチで分解してフィールドを取り出すことができます。 tanaka match { case Person(name, _, _) => println(name) } 普通ですね。 で、実はこんなことができます。 tanaka match { case name Person (_, _) => println(name) } なにがなんだかわからないかもしれませ

    Scalaパターンマッチの Infix Operation Pattern - tototoshi の日記
  • 第3回 成果物や組織の管理方法「マネジメント・パターン」

    二つ目のマネジメント・プロセスに関するパターンについては,「構成管理(Software Configuration Management)パターン」と「導入(Introduce)パターン」の二つがある。前者はソースコードのバージョンや構成をどのように管理するかについて示したパターン。後者は,組織内に新たな概念(アイデアや技術など)を導入する際のパターンである。 構成管理パターンは,Stephen P. Berczuk氏とBrad Appleton氏が「Software Configuration Management Patterns: Effective Teamwork, Practical Integration」というにまとめたパターンである。邦題は「パターンによるソフトウェア構成管理」(翔泳社刊)。 構成管理パターンは,ソースコードのファイル(ソース・ファイル)の集まりである「

    第3回 成果物や組織の管理方法「マネジメント・パターン」
  • 1