Re: Re: Switch - Case Statement Questions
| From: | tamouse mailing lists | Date: | Sat, 17 Nov 2012 21:53:46 +0000 |
| Subject: | Re: Re: Switch - Case Statement Questions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319729@lists.php.net to get a copy of this message | ||
On Sat, Nov 17, 2012 at 2:59 PM, Sebastian Krebs <krebs.seb@gmail.com> wrote:
> (Beside: Was "the principle of least surprise" not a ruby-thing? ;))
No, but the Ruby (and Rails) world takes concepts like this and really
runs with them.
Principle of Least Astonishment has been around for quite some time,
with examples known in software engineering, user interface design,
and even real-world objects, It's been in the Patterns wiki for ages:
http://c2.com/cgi/wiki?PrincipleOfLeastAstonishment
.