PHPでOOP (894レス)
PHPでOOP http://medaka.5ch.io/test/read.cgi/php/1172205352/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
783: nobodyさん [sage] 2010/06/09(水) 22:05:43 ID:??? 名前空間は5.3だろ http://medaka.5ch.io/test/read.cgi/php/1172205352/783
784: nobodyさん [sage] 2010/06/09(水) 22:50:19 ID:??? 遅延静的束縛もですが http://medaka.5ch.io/test/read.cgi/php/1172205352/784
785: nobodyさん [sage] 2010/06/11(金) 20:18:27 ID:??? 機能追加がほとんどか。 じゃあ、PHP5のコードをPHP6に移植しても問題なく動くってことでいい? PHP4→PHP5のときは大変みたいだったけど。 同じ思いをしたくない。 http://medaka.5ch.io/test/read.cgi/php/1172205352/785
786: nobodyさん [sage] 2010/06/12(土) 05:01:32 ID:??? 互換性見れば分かるだろ http://medaka.5ch.io/test/read.cgi/php/1172205352/786
787: nobodyさん [sage] 2010/06/13(日) 07:15:58 ID:??? 逆に互換性なんかいいから関数の無茶苦茶な命名規則とか直して欲しい http://medaka.5ch.io/test/read.cgi/php/1172205352/787
788: nobodyさん [sage] 2010/06/20(日) 11:50:01 ID:??? 関数はもうほうっておいて、 公式にオブジェクト指向ライブラリを提供すればよい http://medaka.5ch.io/test/read.cgi/php/1172205352/788
789: nobodyさん [sage] 2010/06/20(日) 15:53:03 ID:??? >>788 SPLって公式じゃないの? http://medaka.5ch.io/test/read.cgi/php/1172205352/789
790: nobodyさん [] 2010/06/21(月) 16:09:23 ID:L/6UXzEf 質問するのが怖いんだけど、自分はフォームのパーツを呼び出すのに オブジェクト指向(クラス)を使ってるつもりなんだけど正しいのか自信がない クラスformPartsの中で各プルダウンやラジオボタンの要素(nameとvalue)を 外部ファイルから読み込んどいて $fp = new formParts(); $pref = $fp->callPullDown('prefecture',$val); $job = $fp->callPullDown('job',$val); $sex = $fp->callRadioButton('sex',$val); こんな感じでメソッドでパーツの種類を指定しつつ(ラジオボタンかプルダウンか) そのパーツの要素(都道府県とか職業とか)と既定値($val)を投げて呼び出してる。 プルダウン要素とかは各メソッド内部で引数によって外部ファイルから読みこんでる。 クラスってこんな使い方でいいの? 継承とかはさっぱりわからない、どういう状況で使うんだか。 あと1さん凄いね、ガッツがあるなぁ。。 http://medaka.5ch.io/test/read.cgi/php/1172205352/790
791: nobodyさん [sage] 2010/06/22(火) 02:52:17 ID:??? OOではないな http://medaka.5ch.io/test/read.cgi/php/1172205352/791
792: nobodyさん [sage] 2010/06/22(火) 02:53:02 ID:??? 分からないなら普通に勉強しろよ・・・ http://medaka.5ch.io/test/read.cgi/php/1172205352/792
793: nobodyさん [] 2010/06/26(土) 22:03:26 ID:lGwy0O8s ツールの勉強する前に基本を勉強しろ http://medaka.5ch.io/test/read.cgi/php/1172205352/793
794: nobodyさん [] 2010/06/28(月) 10:27:12 ID:PXXo1bnr oopってさ PHP最大の武器であるHTMLとの親和性の高さを殺してるよね http://medaka.5ch.io/test/read.cgi/php/1172205352/794
795: nobodyさん [sage] 2010/06/28(月) 20:02:03 ID:??? なんで? http://medaka.5ch.io/test/read.cgi/php/1172205352/795
796: nobodyさん [sage] 2010/06/28(月) 22:25:44 ID:??? いまの流行はテンプレートだから PHPのHTML埋め込みなんてもう古い http://medaka.5ch.io/test/read.cgi/php/1172205352/796
797: nobodyさん [sage] 2010/06/29(火) 01:12:38 ID:??? そんな流行もあったねぇ。今は違うよ。 http://medaka.5ch.io/test/read.cgi/php/1172205352/797
798: nobodyさん [sage] 2010/06/29(火) 07:49:52 ID:??? kwsk http://medaka.5ch.io/test/read.cgi/php/1172205352/798
799: nobodyさん [sage] 2010/06/30(水) 18:24:45 ID:??? テンプレートってどんな利点があるの? そもそもPHP自体テンプレートみたな言語じゃん。 index.php <?php $title = "hoge"; $hello = "hello world"; include "template.php"; ?> template.php <html> <head><title><?php echo $title ?></title><head> <body> <h1><?php echo $hello ?></h1> </body> </html> こういうのとは違うの? http://medaka.5ch.io/test/read.cgi/php/1172205352/799
800: nobodyさん [sage] 2010/07/01(木) 00:39:53 ID:??? ほとんどの言語は、HTMLの中で コードを動かすという発想で作られていない。 コードーの中でHTMLを出力するという発想。 そういう言語ではテンプレートが重要。 PHPでテンプレートの意味が薄いのは確か ただテンプレートの意味がまったくないかというと、そうではなく 分業作業。つまりプログラマとデザイナに分かれて開発するときは便利。 デザイナはphpコードはまったく知らない。だからなるべくシンプルな 記号レベルの書き方であってほしい。しかもDreamweaverのような HTMLエディタで見たときに不具合無く表示されるものの方がいい。 http://medaka.5ch.io/test/read.cgi/php/1172205352/800
801: nobodyさん [] 2010/07/01(木) 14:26:10 ID:ksuFUfiJ デザイナーでもHTMLとPHPの繋がりぐらいは分かる いや、分かるようにPHPを書かなければならいと思う それがPHP http://medaka.5ch.io/test/read.cgi/php/1172205352/801
802: nobodyさん [sage] 2010/07/01(木) 19:54:20 ID:??? デザイナーって馬鹿だな まで読んだ http://medaka.5ch.io/test/read.cgi/php/1172205352/802
803: nobodyさん [sage] 2010/07/07(水) 17:20:53 ID:??? ここで議論してる奴らは世に影響力のないカスばかりだから参考にしなくて良い http://medaka.5ch.io/test/read.cgi/php/1172205352/803
804: nobodyさん [sage] 2010/08/20(金) 12:31:24 ID:??? 廃れてるねー http://medaka.5ch.io/test/read.cgi/php/1172205352/804
805: nobodyさん [sage] 2010/08/20(金) 14:43:19 ID:??? 852 忍者Perl ◆M5ZWRnXOj6 [] 2010/08/20(金) 13:30:09 ID: Be: マルチしてんじゃないですよクソゴミww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)wwww(笑)ww ww(笑)wwww(笑)ww PHPやってるやつノウタリンばっかりwwwwwwww http://medaka.5ch.io/test/read.cgi/php/1172205352/805
806: nobodyさん [sage] 2011/10/15(土) 11:25:55.76 ID:??? PHPでOOPやると重いと感じませんか? http://medaka.5ch.io/test/read.cgi/php/1172205352/806
807: nobodyさん [sage] 2011/10/17(月) 12:28:57.35 ID:??? いいんです! コーディングが楽だから、OOPで良いんです!! http://medaka.5ch.io/test/read.cgi/php/1172205352/807
808: nobodyさん [sage] 2011/12/16(金) 08:42:12.54 ID:??? 逆だろ OOPだからボトルネックが把握しやすくてメンテナンスや新実装がしやすくなる http://medaka.5ch.io/test/read.cgi/php/1172205352/808
809: nobodyさん [] 2011/12/18(日) 18:35:23.31 ID:XDa3NN+N しかし、実行速度遅くなるね http://medaka.5ch.io/test/read.cgi/php/1172205352/809
810: nobodyさん [sage] 2011/12/18(日) 21:04:34.89 ID:??? 遅くなるって体感でわかるほど遅くなるのか? だったら書き方おかしいよ http://medaka.5ch.io/test/read.cgi/php/1172205352/810
811: nobodyさん [] 2011/12/19(月) 12:14:00.72 ID:8JBaGfsG >>810 体感できないとは幸せだね。 http://medaka.5ch.io/test/read.cgi/php/1172205352/811
812: nobodyさん [sage] 2011/12/23(金) 12:11:53.50 ID:??? case by case. http://medaka.5ch.io/test/read.cgi/php/1172205352/812
813: nobodyさん [sage] 2012/01/12(木) 17:20:16.63 ID:??? >>736 コントローラを肥大させてはならないという概念ではわかりにくい。 もっと具体的に境界線を引くべきだと思う。以下俺の意見なんだけど、 MVCってユニットテストために ユニットテストを難しくする汚染要素を隔離するためにあるのだと思う。 具体的に言うとこんな感じ。 View(GUI, xml, html, json) Controller(Session, Request, Form, 画面遷移などWeb独自のデータ) Model(RDB, KVS) MとCが分離されることでMはWebスコープから分離され、CはSQLから分離される。 でもこの理屈だとVとCの関係がおかしくなっちゃうね。 CがVにデータを渡すときはリクエストスコープを経由しないで 直に関数の引数で整数や文字列、オブジェクトを渡すべきって話になるから。 http://medaka.5ch.io/test/read.cgi/php/1172205352/813
814: nobodyさん [sage] 2012/01/12(木) 19:14:14.99 ID:??? >>813 ゴバクしただけあって、センス悪いな。 http://medaka.5ch.io/test/read.cgi/php/1172205352/814
815: nobodyさん [sage] 2012/01/13(金) 12:44:55.80 ID:??? >>813 > MVCってユニットテストために > ユニットテストを難しくする汚染要素を隔離するためにあるのだと思う。 正しいが、これは現場的な視点の1つの考え方。 MVCは、スケーラブルなサイト構築のためのパラダイムという方が、しっくりくると思うが... http://medaka.5ch.io/test/read.cgi/php/1172205352/815
816: nobodyさん [sage] 2012/01/13(金) 14:14:37.80 ID:??? 新米PGに教える方法としては良いかもしれん http://medaka.5ch.io/test/read.cgi/php/1172205352/816
817: nobodyさん [] 2012/03/25(日) 15:09:36.84 ID:AY6baIQV PHPのOOPフレームワークを教えて下さい。 イメージとしてはJavaのStrutsのようなものです。 http://medaka.5ch.io/test/read.cgi/php/1172205352/817
818: nobodyさん [sage] 2012/03/26(月) 23:05:27.26 ID:??? JavaStrutsはさておき、おすすめはYIIだな。PHPの中では美しい。 http://medaka.5ch.io/test/read.cgi/php/1172205352/818
819: nobodyさん [sage] 2012/03/28(水) 01:58:44.02 ID:??? >>818 YII以外では無いのでしょうか? YIIはOOPフレームワークとしては不完全です。 http://medaka.5ch.io/test/read.cgi/php/1172205352/819
820: nobodyさん [sage] 2012/03/28(水) 07:44:29.02 ID:??? >>819 どの辺が? http://medaka.5ch.io/test/read.cgi/php/1172205352/820
821: nobodyさん [saga] 2012/03/28(水) 10:27:45.07 ID:??? >>820 オブジェクト指向言語であればオブジェクトを使用するところで、 配列を使用する点。 http://medaka.5ch.io/test/read.cgi/php/1172205352/821
822: nobodyさん [sage] 2012/03/28(水) 19:46:43.02 ID:??? >>821 なんでOOPフレームワークを使いたいの? http://medaka.5ch.io/test/read.cgi/php/1172205352/822
823: nobodyさん [sage] 2012/03/29(木) 00:32:40.17 ID:??? >>822 OOPに慣れてるからです。 オブジェクトとして定義するところで phpの場合、配列になるのでいらいらします。 たとえばCakePHP。ModelがModelになっていない。 やはり後付けでOOP機能が加わった言語では無理があるのですね。 http://medaka.5ch.io/test/read.cgi/php/1172205352/823
824: nobodyさん [sage] 2012/03/29(木) 00:43:24.51 ID:??? >>823 ModelがModelになってないというのは具体的にどういうこと? http://medaka.5ch.io/test/read.cgi/php/1172205352/824
825: nobodyさん [sage] 2012/03/29(木) 08:52:29.82 ID:??? >>824 どのオブジェクト指向言語を経験しましたか? それにあわせて話をします。 http://medaka.5ch.io/test/read.cgi/php/1172205352/825
826: nobodyさん [sage] 2012/03/29(木) 09:19:41.82 ID:??? >>823 phpで本格的なオブジェクト指向ははじめから無理だよ。 http://medaka.5ch.io/test/read.cgi/php/1172205352/826
827: nobodyさん [sage] 2012/03/29(木) 12:36:50.80 ID:??? PHPのOOP自体、後付けだし... http://medaka.5ch.io/test/read.cgi/php/1172205352/827
828: nobodyさん [sage] 2012/03/29(木) 21:58:00.01 ID:??? >>825 Java http://medaka.5ch.io/test/read.cgi/php/1172205352/828
829: nobodyさん [sage] 2012/03/30(金) 00:15:47.79 ID:??? >>828 ぜひStrutsの話を聞きたいですね。 たとえばCakePHPやsymphonyとどう違いますか? http://medaka.5ch.io/test/read.cgi/php/1172205352/829
830: sage [] 2012/03/31(土) 00:44:25.15 ID:5Y7rPOtM PHPのOOP関連機能が中途半端なのは当たり前。 実行速度が遅いPHPではそもそも向いていない。 http://medaka.5ch.io/test/read.cgi/php/1172205352/830
831: nobodyさん [sage] 2012/03/31(土) 17:53:30.17 ID:??? >>829 話をすると言って聞くばかりなのはなんでだ? http://medaka.5ch.io/test/read.cgi/php/1172205352/831
832: nobodyさん [sage] 2012/03/31(土) 21:49:54.25 ID:??? >>831 Javaのフレームワークのことを教えてください http://medaka.5ch.io/test/read.cgi/php/1172205352/832
833: nobodyさん [sage] 2012/04/02(月) 08:52:20.20 ID:??? >>832 ModelがModelになってないというのは具体的にどういうこと? http://medaka.5ch.io/test/read.cgi/php/1172205352/833
834: nobodyさん [sage] 2012/04/02(月) 10:00:58.63 ID:??? >>833 Javaのフレームワークの比較で語りましから、あなたが今までにどのJavaフレームワークを使ってきたのか教えてください http://medaka.5ch.io/test/read.cgi/php/1172205352/834
835: nobodyさん [sage] 2012/04/03(火) 02:06:22.73 ID:??? いやです http://medaka.5ch.io/test/read.cgi/php/1172205352/835
836: nobodyさん [sage] 2012/04/03(火) 02:25:26.03 ID:??? >>835 無知の自慢するべきではない。 あなたは一生、PHPでOOPの真似やってた方がよい。 http://medaka.5ch.io/test/read.cgi/php/1172205352/836
837: 1 [sage] 2012/04/03(火) 05:28:27.27 ID:??? 語りまし? いやです http://medaka.5ch.io/test/read.cgi/php/1172205352/837
838: sage [] 2012/04/03(火) 09:03:36.19 ID:s3V9thNo phpでOOPはダメぽ http://medaka.5ch.io/test/read.cgi/php/1172205352/838
839: nobodyさん [sage] 2012/04/03(火) 12:55:40.44 ID:??? いやです http://medaka.5ch.io/test/read.cgi/php/1172205352/839
840: nobodyさん [sage] 2012/04/03(火) 13:09:50.72 ID:??? 完全にoopオリエンテッドな言語でしかoopしないって主張が、かなりダメぽ http://medaka.5ch.io/test/read.cgi/php/1172205352/840
841: nobodyさん [sage] 2012/04/03(火) 13:40:01.23 ID:??? phpは継ぎ接ぎだからoopに向いてない 速度の面でも不利 http://medaka.5ch.io/test/read.cgi/php/1172205352/841
842: nobodyさん [sage] 2012/04/03(火) 14:48:23.63 ID:??? ダメな理由は遅いから。 http://medaka.5ch.io/test/read.cgi/php/1172205352/842
843: nobodyさん [sage] 2012/04/03(火) 16:36:45.23 ID:??? >>834 答えられないなら最初から言うな見栄っ張りw http://medaka.5ch.io/test/read.cgi/php/1172205352/843
844: nobodyさん [saga] 2012/04/03(火) 17:04:24.93 ID:??? >>843 JavaのOOPについて語ってください。 話はそれからです。 http://medaka.5ch.io/test/read.cgi/php/1172205352/844
845: nobodyさん [sage] 2012/04/04(水) 00:03:58.45 ID:??? 質問者がJavaのどのフレームワークを使ったことがあるか書くべき 回答者がそのフレームワークとCakePHPを比較すべき http://medaka.5ch.io/test/read.cgi/php/1172205352/845
846: nobodyさん [sage] 2012/04/04(水) 02:04:42.62 ID:??? そんな比較はどうでもいい。 phpのOOP機能は単なるおもちゃ。 http://medaka.5ch.io/test/read.cgi/php/1172205352/846
847: nobodyさん [sage] 2012/04/04(水) 19:20:23.84 ID:??? ttp://kameleon.s241.xrea.com/wiki/index.php?%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%83%AF%E3%83%BC%E3%82%AF%E3%82%92%E4%BD%9C%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B すいません ここのフレームワークのソースをダウンロードしたいんですが、ダウンロードできません。 どこかで入手できないでしょうか http://medaka.5ch.io/test/read.cgi/php/1172205352/847
848: nobodyさん [sage] 2012/04/04(水) 21:46:53.59 ID:??? ログインできませんでした。 10分ほどしてから再度お試しください。 http://medaka.5ch.io/test/read.cgi/php/1172205352/848
849: nobodyさん [sage] 2012/04/21(土) 07:48:42.18 ID:??? PHPでOOPやるとかアフォだろ PHP自体カス以下だし http://medaka.5ch.io/test/read.cgi/php/1172205352/849
850: nobodyさん [sage] 2012/04/25(水) 22:43:11.22 ID:??? ほらほら、釣り釣り。 参加者募集中 http://medaka.5ch.io/test/read.cgi/php/1172205352/850
851: nobodyさん [sage] 2012/04/25(水) 23:12:37.13 ID:??? 関数のオーバーロード http://medaka.5ch.io/test/read.cgi/php/1172205352/851
852: nobodyさん [sage] 2012/04/25(水) 23:13:48.71 ID:??? 関数? http://medaka.5ch.io/test/read.cgi/php/1172205352/852
853: nobodyさん [sage] 2012/04/26(木) 00:11:07.09 ID:??? phpの標準関数はどのクラスに属するのですか? http://medaka.5ch.io/test/read.cgi/php/1172205352/853
854: nobodyさん [sage] 2012/04/26(木) 03:03:15.10 ID:??? PHPはC++と同じで、クラスに属さない 関数があるんだよ。 http://medaka.5ch.io/test/read.cgi/php/1172205352/854
855: nobodyさん [sage] 2012/04/29(日) 05:23:36.37 ID:??? クラスに属さない関数が多すぎ そして、関数名が長くて、使いたいときに思い出しにくく覚えにくい。命名法が統一されてない。 http://medaka.5ch.io/test/read.cgi/php/1172205352/855
856: uy [sage] 2012/06/25(月) 19:13:52.21 ID:??? PHPでOOPやるとかwwww 笑わせるなよwwww http://medaka.5ch.io/test/read.cgi/php/1172205352/856
857: nobodyさん [sage] 2012/06/26(火) 12:21:43.29 ID:??? 黙れ、情弱! 便所に行ったら手ぐらい洗え つttp://sociorocketnews.files.wordpress.com/2012/06/after-toilet-wash-your-hands-japan01.jpg ttp://sociorocketnews.files.wordpress.com/2012/06/after-toilet-wash-your-hands-japan02.jpg ttp://sociorocketnews.files.wordpress.com/2012/06/after-toilet-wash-your-hands-japan05.jpg http://medaka.5ch.io/test/read.cgi/php/1172205352/857
858: uy [sage] 2012/06/26(火) 12:34:02.34 ID:??? 俺はゴミカスだがエリートゴミカスだ お前らのような下級ゴミカスとは格が違う http://medaka.5ch.io/test/read.cgi/php/1172205352/858
859: nobodyさん [sage] 2012/06/26(火) 12:39:35.58 ID:??? 『オレは本当はスゴいんだ』病 www http://medaka.5ch.io/test/read.cgi/php/1172205352/859
860: nobodyさん [sage] 2012/06/26(火) 14:05:10.76 ID:??? >>857 逆に女子はトイレ行ったら手を洗うの禁止な。 http://medaka.5ch.io/test/read.cgi/php/1172205352/860
861: nobodyさん [sage] 2012/06/28(木) 00:47:58.97 ID:??? phpでOOPとは単なるアホ http://medaka.5ch.io/test/read.cgi/php/1172205352/861
862: nobodyさん [sage] 2012/06/28(木) 05:06:29.82 ID:??? じゃあOOPでphpするよ。 http://medaka.5ch.io/test/read.cgi/php/1172205352/862
863: nobodyさん [sage] 2012/06/28(木) 12:22:49.87 ID:??? ? でも、よく言った! http://medaka.5ch.io/test/read.cgi/php/1172205352/863
864: nobodyさん [sage] 2012/06/29(金) 03:21:18.32 ID:??? Java WicketとかPHP Piece Frameworkに流行ってほしいな。 平たく言えば何でもセッションに突っ込んでるだけなんだけどね。 http://medaka.5ch.io/test/read.cgi/php/1172205352/864
865: nobodyさん [sage] 2012/07/14(土) 00:10:18.29 ID:??? ここまでトレイトの話題無しかw http://medaka.5ch.io/test/read.cgi/php/1172205352/865
866: nobodyさん [sage] 2012/07/16(月) 19:14:45.27 ID:??? 実際トレイトって、あれば便利な気はするけどどこで使うのか思いつかん。 だれか使いこなせてるって人いますか? http://medaka.5ch.io/test/read.cgi/php/1172205352/866
867: nobodyさん [sage] 2012/07/17(火) 07:36:18.33 ID:??? PHPはむしろトラッシュ http://medaka.5ch.io/test/read.cgi/php/1172205352/867
868: nobodyさん [sage] 2012/07/17(火) 15:16:40.35 ID:??? まだ5.4使える環境に出会ったことが無いわ http://medaka.5ch.io/test/read.cgi/php/1172205352/868
869: nobodyさん [sage] 2012/07/18(水) 09:22:42.54 ID:??? なんでもセッションでいいよな PHPってそういうもんだろ http://medaka.5ch.io/test/read.cgi/php/1172205352/869
870: nobodyさん [sage] 2012/07/18(水) 12:20:26.18 ID:??? セッションハイジャックの脆弱性を可能な限り排除できるなら、 セッション利用でOK。 http://medaka.5ch.io/test/read.cgi/php/1172205352/870
871: nobodyさん [sage] 2012/07/22(日) 02:33:05.17 ID:??? >>1 PHPでOOPかよw http://medaka.5ch.io/test/read.cgi/php/1172205352/871
872: nobodyさん [sage] 2012/07/22(日) 10:45:56.54 ID:??? PHPでOOPなど愚の骨頂 PHPなど愚の骨頂 http://medaka.5ch.io/test/read.cgi/php/1172205352/872
873: nobodyさん [sage] 2012/07/27(金) 20:37:24.49 ID:??? 3Pとか4Pがあるように00Pもあるのです http://medaka.5ch.io/test/read.cgi/php/1172205352/873
874: nobodyさん [sage] 2012/07/28(土) 00:10:09.70 ID:??? OOPチーズ http://medaka.5ch.io/test/read.cgi/php/1172205352/874
875: nobodyさん [sage] 2012/07/30(月) 23:46:30.86 ID:??? >>1 PHPでOOPはできねえよ http://medaka.5ch.io/test/read.cgi/php/1172205352/875
876: nobodyさん [sage] 2012/07/31(火) 11:18:22.44 ID:??? PHPもOOPも時代遅れ 今はLOOP、すなわち論理オブジェクト指向プログラミングの時代 http://medaka.5ch.io/test/read.cgi/php/1172205352/876
877: nobodyさん [sage] 2012/07/31(火) 12:11:56.61 ID:??? 無限ループ http://medaka.5ch.io/test/read.cgi/php/1172205352/877
878: nobodyさん [sage] 2012/08/05(日) 00:31:48.84 ID:??? PHPerがJavaのIDEなんか使ってんじゃないよ。 秀丸でちょちょいとやるのがオツってもんだ http://medaka.5ch.io/test/read.cgi/php/1172205352/878
879: nobodyさん [] 2012/09/27(木) 03:31:54.43 ID:yKCGiKEV >>866 >実際トレイトって、あれば便利な気はするけどどこで使うのか思いつかん。 >だれか使いこなせてるって人いますか? traitは scala から持ってきた仕組み。 (もちろん scala も他の言語から影響を受けている) trait とは: - Mixin - Wikipedia http://ja.wikipedia.org/wiki/Mixin - traitは実装を含めることができるinterface - コードのコピペをfunctionalityにしただけ 利用シーンとしては、継承したくないけど、 ある実装を、このクラスだけでは使用したいという場合に traitを作って、それを使います。(だから、コードのコピペと表現した↑) AS3を書いてたときはmixinはイベント機能を追加する目的で よく使ってた 以下PHPでの実例をどうぞ↓ http://medaka.5ch.io/test/read.cgi/php/1172205352/879
880: nobodyさん [sage] 2012/09/27(木) 07:12:35.38 ID:??? カス言語PHPには無理 http://medaka.5ch.io/test/read.cgi/php/1172205352/880
881: nobodyさん [sage] 2012/10/06(土) 00:51:33.59 ID:??? phpのオブジェクト指向機能はおもちゃ。 http://medaka.5ch.io/test/read.cgi/php/1172205352/881
882: nobodyさん [sage] 2013/03/25(月) 12:45:02.49 ID:??? おもちはおもちや http://medaka.5ch.io/test/read.cgi/php/1172205352/882
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 12 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.030s