タグ

oopに関するthataのブックマーク (2)

  • テストと復元性をめぐる議論: オブジェクト指向 vs. 関数型プログラミング言語

    Michael Feathers氏の最新の投稿をめぐり、ブログのコミュニティ上で活発な議論が行われた(source)。Feathers氏は、オブジェクト指向プログラミング言語に組み込まれた機能を使うと、テストが容易に行うことができ、コードの復元性を簡単に高めることができる(source)と主張した 。 Feathers氏は一つのサンプルを提示した。このクラスXはbadMethodという名前のメソッドを持っている。このメソッドはテストをしにくくするような何か、例えばデータベースを作成/更新したり、低レベルのハードウェアを操作したりする。 public class X { public void method() { ... badMethod(); ... } ... } クラスごとのテストや、(関連する機能ごとの)クラス群ごとに独立してテストができるような設計が理想である。このケースは理想

    テストと復元性をめぐる議論: オブジェクト指向 vs. 関数型プログラミング言語
    thata
    thata 2008/03/18
    関数型言語の人たちはTDDをしない、と言っているように聞こえる
  • XP Epsiode

    Chose Vacation RentalsTips for renting your Vacation Rentals Whether you are a tenant or a landlord, here are some practical tips to help you prepare your vacation. Booking a vacation rental The reservation of your holiday rental is made directly with the landlord. It is recommended to confirm your reservation by sending a rental contract and a deposit or deposit. The balance of the stay will be p

    thata
    thata 2005/02/11
  • 1