Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
レガシー業界・システムに奮闘!プロダクト改善事例LT【開発PM勉強会vol.9】 - connpass https://peer-quest.connpass.com/event/239171/
原文:Scaling Isomorphic Javascript Code (This is just for study, please contact me at tily05 atmark gmail.com if any problem.)
考えてみれば Model-View-Controller とか MVC ってよく聞くよね。実際どんなものか知ってる? 抽象的に言うなら「オブジェクト情報の保持されるグラフィック・システム (つまり、ラスターではないグラフィック。ゲームとか) 上に構築された、表示系を中心としたアプリケーションにおいて、主要な機能どうしの関わりをうまく分離すること」とでも言おうか。もう少し深く考えを押し進めてみれば、これは当然、他のさまざまなアプリケーションにもあてはまる言葉 (bucket term ?) だ。
過去に多くの開発コミュニティが MVC による解決案を提供し、それによってよくあるユースケースにうまく対処し、地位を築くことができた。例をあげるなら、Ruby や Python コミュニティは Rails や Django を作り、MVC アーキテクチャを実現した。
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""nginx_error_rate -- Munin plugin to report the error rate in an access log. | |
The access log defaults to `/var/log/nginx/access.log`. This may be | |
customized with the following stanza in your munin plugin conf: | |
[nginx_error_rate] | |
env.access_log /path/to/access.log | |
""" |
<?php | |
App::uses('CakeEmail', 'Network/Email'); | |
class AppCakeEmail extends CakeEmail { | |
protected $_emailPattern = null; | |
/** | |
* |
<?php | |
class Escaper { | |
public $value = null; | |
public $raw = null; | |
public function __construct($value, $charset = 'UTF-8') { | |
$this->value = htmlspecialchars($value, ENT_QUOTES, $charset); | |
$this->raw = $value; | |
} | |
public function __toString() { |