Live data from Hacker News

What to Look For in PHP 5.4

jburrows.wordpress.com

61–67 of 67 posts

Re: What to Look For in PHP 5.4

#61
post #3

I'v been thinking about using Php lately. I come from a C# background, so I was poking around to see what I would be missing or gaining from Php. Why haven't they added a compiled option yet? I know you can use http://phpcompiler.org compiler to do it but why hasn't it just been added to the project? The speed increase is well worth it. Also I noticed Php doesn't have generics or Template classes. I use these a lot i…

[deleted]

Re: What to Look For in PHP 5.4

#63
post #39
post #28

Earlier quoted context omitted.

When that "well deserved criticism" comes from the same people who feel compelled to post in every PHP thread, obsessively, over and over again ... it's hate. Hate isn't inherently negative. You can hate evil, etc. However, if you hate a programming language ... there's really something wrong with you. It suggests a very sheltered life. There are far more important things in life that deserve your hatred.

I think something that forces me, almost daily, to waste my time dealing with problems that are simply nonexistent in more sane languages deserves my hatred. (And I have a LOT of hatred for it!)

What are some of the problems you deal with when coding PHP on a daily basis?

Re: What to Look For in PHP 5.4

#64
post #56
post #53

Earlier quoted context omitted.

Nobody can hate something as strongly as somebody who's spend way too much time looking at it. That, in this case, would be me. Those frameworks and ORMs that you claim as a panacea are generally obfuscatory at best (Symfony2, which is a brilliant example of what you can do with PHP and a cautionary tale of designing a system that makes sense to twelve people, ever) to downright maliciously bad (CodeIgniter, get the…

"If you can muddle along with glacially inefficient frameworks (often with APIs that make core PHP seem not all that terrible for a time) and ORMs (personally, I don't use an ORM for anything, and credit where credit's due, PDO is actually a very reasonable solution), more power to you, but some of us (hi) have already been to that dance and realized it wasn't going to work for us." Count me in as someone who took a…

Woah, in one sentence you claim about PHP devs feeling the need to go OO and then the next sentence you extol the virtues of ZF? ZF is all OO, all the time.

Re: What to Look For in PHP 5.4

#65
post #41

Earlier quoted context omitted.

I think this may have been posted prematurely. Even in the version you linked to, it seems like part of the traits example has been cut off.

It's been fixed. I found the correct revision and restored it with the right date. The original link works again.

did I submit the right one?

Re: What to Look For in PHP 5.4

#66
post #9

Earlier quoted context omitted.

I don't think that PHP referring to hash maps as an array is a bad thing, in fact I've always loved the flexibility of the overloaded array implementation in PHP. > ...due to whatever backwards incompatible changes have been made. PHP is normally very good that way, does anyone know of any backwards incompatible changes that have been made? > I know it's all the rage to hate on PHP these days, but even giving an obje…

> I don't think that PHP referring to hash maps as an array is a bad thing, in fact I've always loved the flexibility of the overloaded array implementation in PHP. But they're not arrays. JavaScript and Lua do the same thing, allowing you to assign numeric or hashed keys on objects (or tables in Lua), but they don't call them Arrays, because they aren't. Arrays have expected behavior and implementations. So do hash…

> ...it encourages bad coding...

I would love to explain to my boss when I introduced some bad code into our repo: "But the PHP made me do it!". Really, if you can't use a tool without blaming it for when you use it badly, well...

Re: What to Look For in PHP 5.4

#67
post #56

Earlier quoted context omitted.

"If you can muddle along with glacially inefficient frameworks (often with APIs that make core PHP seem not all that terrible for a time) and ORMs (personally, I don't use an ORM for anything, and credit where credit's due, PDO is actually a very reasonable solution), more power to you, but some of us (hi) have already been to that dance and realized it wasn't going to work for us." Count me in as someone who took a…

Woah, in one sentence you claim about PHP devs feeling the need to go OO and then the next sentence you extol the virtues of ZF? ZF is all OO, all the time.

He already answered your question in the post you are replying to:

>because you can easily use it without buying into the whole MVC and routing paradigm

As much as I think the zend framework is terrible, you can pick and choose whatever bits of it you like and ignore the rest. There's no working around assumptions or anything, it is just a normal way of using the framework.

Post reply on HN