デザインパターンの基本であるGoF全23パターンをわかりやすく解説。イラストやUML図で理解し、簡単なPHPサンプルスクリプトで学ぶ!!初めて学ぶ人ももちろん、今まで理解しにくいと思い挫折していた人に。オブジェクト指向設計に現在必須のデザインパターンを学びたい人に。オブジェクト指向言語として生まれ変わったPHP5で設計をする人に。PHPプログラマはもちろんC++言語やJava言語プログラマにもおすすめ。
▼ [PHP][Java] イマドキの PHP を書いていれば Java は比較的理解しやすいんだなぁと、いまさらながら思っている これまでは触る必然性が無かったし、あまり触りたい感じがしてなかったので Java のコードをまともに書いたことがなかったんだけど、ちょっと必然性が出てきたのでここ2〜3日書いている。 2〜3日書いているといっても、まずはテストをどうやって書いて実行すればいいんだ?ってところを探ってからのスタートだったので、実質的なコードを書き始めたのは今日からになる。 で、ようやくコードを書き始めて思ったのが、いまどきの PHP と Java はそっくりなんだなってこと。 まぁ、PHP が Java のほうを向いて拡張をしてきたという雰囲気が感じられるし(要出典)、似てくるのはそういうものなんだろうなという気分ではあるけど、改めて見ると、ホントにまぁ、そっくりだ。 Java
これは 1 年 7 ヶ月 6 日 前に投稿されたものです。最新のものではありませんので、間違っているかも知れません。 そんなこと無いわけで。 さて、PHPの高速化といえば、 コード最適化 Accelerator入れる PHP Extensionを作る くらいだと思いますが、今回は「PHP Extension」を使いたいと思います。 なお、この記事で登場するPHPのバージョンは、5.3.3です。 SWIGを使う 素でPHP Extensionの作成となると、覚えることが多くて結構大変なので、「SWIG」というものを利用します。 これは、C/C++のプログラムをPHPを含めたインタプリタ言語やJava、C#などで半自動的に使えるようにしてくれるというものです。便利ですね。 「.i」というSWIGに向けた処理内容を示した「インターフェースファイル」というものを作成する必要がありますが、一度作れ
PHPは5.3から名前空間が導入され、名前の衝突を避けるため長いクラス名をつけることから解放されました。しかしながら、名前空間を使ったコードは、名前空間を使っていないものに比べて本当に読みやすくなっているのでしょうか? ここで例を挙げます。PHPの良質なソースコードと言えば、私はZend Framework(ZF)やSymfonyを思い浮かべるのですが、ZFのとあるクラスの冒頭を見てみましょう。 https://github.com/zendframework/zf2/blob/master/library/Zend/Mvc/View/Console/RouteNotFoundStrategy.php <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframewo
プログラマとして Symfony 歴は 2 年くらい(フルタイムではない) Symfony1 時代はほぼ知らない Java, Ruby, JavaScript, elisp, PHP github 上では JavaScript プログラマ? 代表作は power-assert Why Symfony? なぜ Symfony を選んだか 「コードがしっかりしている」 メンテ方針がしっかりしている(長期サポート, 後方互換性) DIベースの疎結合設計で自分でアーキテクチャを進化させやすい 中長期的な生産性が高まることを期待できる
はじめに この資料は「PHPでTDD&CIワークショップ」 http://atnd.org/events/16626 で @yamashiro が発表するための資料だよ。 ワークショップ参加者じゃなくても記事読むだけで完結するようには書いてあるよ。 概要としては、Jenkins を使って PHP のウンコレガシーなコードをいかに綺麗にして行くかということを説明する。 自画自賛だけど PHPMD とか PHPCPD の使い方の説明の資料としてもそこそこイケてる資料になってると思いました。まる。 この記事に書かれてることは、割とTemplate for Jenkins Jobs for PHP Projectsとかぶってるけど、プラグインを絞ってあるのと、一個一個のプラグインについて解説、また実際にエラーが起きたときにどうすればいいのか書くよ。 Java と Jenkins のインストールとJ
注意 ここで紹介している各モジュールは、日々頻繁にバージョンアップが行われています。 その時々の最新バージョンをダウンロードされる事をお勧めします。 本サイトの内容を元に運用した結果の影響につきましては、責任を負いかねますのでご了承ください。 できるだけバージョンアップ対応(更新)に努めてはおりますが、リソースの都合上限りがございます。 必ずしも最新バージョン対応にはなっておりませんので、ご了承いただきますようお願い致します。 本サイトの内容と異なるOS、バージョンに関するご質問にはお答えいたしかねます。申し訳ございませんが、ご遠慮いただきますようお願い致します。 各サーバーサイド技術ごとに表にしています。 必要なソフトウェア(モジュール)の詳しいセットアップ方法が知りたい場合は、表内の「解説」ボタンをクリックしてください。 言語/フレームワーク ソフトウェア名 WindowsmacOS
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く