開発が「快適である」状態を維持するために、テストコードに求める質について述べる。
- テストの表現力を高める必要がある
- テストコード自体がメンテナンスの足かせにならないようにする
- テストがしづらいということは、大抵プロダクションコードの設計が間違っているということを示すヒント
- TDDはテスト/仕様/設計をひとつの全体的な活動としてまとめあげるもの
require "zlib" | |
require "stringio" | |
require "time" # for Time.httpdate | |
require 'rack/utils' | |
module Hardwired | |
class Deflater | |
DEFAULT_CONTENT_TYPES = | |
[ |
<?php | |
/* | |
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP) | |
Author: _ck_ (with contributions by GK, stasilok) | |
Version: 0.1.7 | |
Free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
* revision history | |
0.1.7 2015-09-01 regex fix for PHP7 phpinfo | |
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter |
# Start the old vagrant | |
$ vagrant init centos-6.3 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
1, this, 17544 | |
2, that, 15950 | |
3, have, 9742 | |
4, with, 9584 | |
5, http, 8688 | |
6, node, 6024 | |
7, should, 5743 | |
8, error, 4285 | |
9, test, 4209 | |
10, work, 4175 |
Original: "Callbacks are imperative, promises are functional: Node's biggest missed opportunity" by James Coglan
Translated by Yuta Okamoto (@okapies)
Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。
【訳者コメント】 PHP 入門者のかたにはクィックリファレンスとして PHP: The Right Way 、セキュリティに関しては2011年3月に出版された 体系的に学ぶ 安全なWebアプリケーションの作り方 をおすすめします。
This setup was used successfully on a DigitalOcean VPS. After much trial and error, and following a number of disparate guides and tutorials, I was able to distil the process to the information found in this gist.
Before getting started, you should create a new server droplet. Login to verify that everything is working correctly.
ssh [email protected]
こんな指針がいいのかなー 2013 夏 ver.
.NET の「例外のデザインのガイドライン」にもこう書いてある。