プログラミングのセオリー 作者: 矢沢久雄出版社/メーカー: 技術評論社発売日: 2008/10/04メディア: 単行本(ソフトカバー)購入: 1人 クリック: 138回この商品を含むブログ (42件) を見る 矢沢さんはオブジェクト指向周りでおかしな部分が多いので、Chapter7から読んでみた。 なんというか、期待を裏切らない人だw いろいろと書いてたんだけど、一番あり得ない部分が埋もれてしまったんで、ばっさり削除して大事なところだけ。 「多態性を実現したコード」として、以下のコードを紹介している。 public class Animal { private String voice; public void nake() { System.out.println(this.voice); } public Animal(String voice) { this.voice = voi
Update: Corrected typo in the Cake Pattern version of the last example. Update: Added a version of the last example using the Cake Pattern for easier comparison (see end of post). In this second post in the Real-World Scala series I am going to discuss how to implement/achieve Depenency Injection (DI) in Scala. Scala is a very rich and deep language that gives you several ways of doing DI solely
基礎的な学力を表す言葉として読み書きそろばんという言葉があるが、 私はプログラミングについても読み書きそろばんに当たるものがあると思っている。 まず読みというのは、プログラムを読む能力である。 たまに、人の書いたソースを見て、すぐに 「全面的に書き直さないと使い物にならない」とか、 「グチャグチャですよ」とか、 「気持ち悪い」といったことを口にする人がいるのだが、 多くの場合、なぜそのように感じるのかを聞いてみると、 単に自分が今まで書いてきたコードと違ったスタイルで書かれている、 ということだったり、ごく一般的なデザインパターンが使われているのに、 そのデザインパターンを自分が知らないだけで 「わかりにくくて読めない」などと言っていたり、 人のコードを使い物にならないと簡単に口にする人であればあるほど、 その人自身が使い物にならない、という傾向がある。 もちろん、全体の整合性を取るために
[オブジェクト指向は本当に「オブジェクト」指向か?] INDEX 1.オブジェクト指向かクラス指向か? 2.人の身分をどうモデル化するか? 2.1 身分を関連の役割で表現したモデル 2.2 身分を人から分離させたモデル 2.3 人を「分類」したモデル 3.分類によるモデリング 3.1 多重分類と動的分類 3.2 なぜ多重分類、動的分類を実装できないのか? 3.3 分類によるモデリング 3.4 いつ分類によるモデリングをすべきか? 4.まとめ 4.1 (再び)オブジェクト指向かクラス指向か? 4.2 オブジェクトの世界は階級社会? 5.参考文献 written by (株)オージス総研 オブジェクト第一事業部 開発技術コンサルティング室 平澤 章
prototypes vs classes was: Re: Sun's HotSpot Alan Kay alank at wdi.disney.com Sat Oct 10 04:40:35 UTC 1998 Previous message: prototypes vs classes was: Re: Sun's HotSpot Next message: prototypes vs classes Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Folks -- Just a gentle reminder that I took some pains at the last OOPSLA to try to remind everyone that Smalltalk is not only NOT
Dr. Alan Kay explains when "object-oriented" was first used and what it means. [] (Meaning of "Object-Oriented Programming" According to Dr. Alan Kay (meaning of OOP objectoriented definition term notion meaning explanation what is)), document, page 721691 https://www.purl.org/stefan_ram/pub/doc_kay_oop_en (permalink) is the canonical URI of this page. Stefan Ram Dr. Alan Kay on the Meaning of “O
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く