PHP sucks dick through a straw
andy at hexten.net
Thu Jan 11 21:57:37 GMT 2007
On 11 Jan 2007, at 21:42, Jeff Anderson wrote:
> Because it is a path of least resistance. An old friend of my
> quipped "the
> path of least resistance leads you to the least every time."
Very good :)
> It also seems to be that most of the hardcore advanced PHP heads
> still don't
> get why wrappers are better than separate individual hand rolled
> header and
> footer includes, because i still think that PHP cannot handle such.
> (TT uses
> WRAPPER -- Mason has autohandlers -- Krang has categories).
You can achieve wrapper like functionality but you need tend to end
up with URLs like this
and then that typically gets hidden using mod_rewrite or similar.
Messy but possible.
> What kills me about PHP (i was coding up some recently) is that an
> attributes and methods have to be called in different ways:
> So if i call some method $object->has_foo() and forget to add the
> (thinking that it is an attribute) then PHP will not throw any kind of
> error, and instead just return undef since $object->has_foo was
> never set.
I managed to delete a > today so I had
For some reason that I couldn't be arsed to investigate it decided
that $obj-attribute had a value of 1.
Andy Armstrong, hexten.net
More information about the london.pm