Benchmarking PHP?s Magic Methods

Larry Garfield has an interesting set of benchmarks covering many of PHP's magic methods. His results correspond pretty well to my own benchmarks in the area. The thing to take away is that its not necessarily the overhead of the magic methods, but...

The Endpoints of the Scale of Stupidity on Video Print E-mail
User Rating: / 0

A quote from Cal Henderson (via simonwillison) presents a "Web Application Scale of Stupidity:"

| OGF (One Giant Function) ---- Sanity ---- OOP (Object Oriented Programming) |

The scale that Cal is talking about is actually better known as modularity:

| Few large modules ---- Sanity? ---- Many Small Modules |

If you haven't listened to Alan Kay talk about the benefits of many small modules, you should do so now. Alan Kay coined the term Object Oriented. Love OO or hate OO, if you have an opinion on it, you should know what he was thinking. Hint, it wasn't C++.

On the other end of the scale, One Giant Function is generally known as Big ball of Mud(PDF) Here is Brian Foote's presentation on the paper (read the paper first).

Read more at:
< Prev   Next >