Live data from Hacker News

Addition of 1 and 1 in PHP

github.com

31–40 of 89 posts

Re: Addition of 1 and 1 in PHP

#31
I opened a few bugs to help get this library in a more usable state. I'd really love to see a SOAP API on this as well as result templating, a request router, and a controller.

It may also be useful to include a message queue (RabitMQ / SQS are good candidates) implemented using the pub/sub model to allow arbitrary scaling of the compute nodes.

I have some other ideas about something like JMX / MBeans here to allow arbitrary instrumentation of methods. This would provide more flexibility than the benchmarking module already included.

Re: Addition of 1 and 1 in PHP

#36
Pretty much sums up how I feel about most of the big frameworks (Zend in particular, but also Symfony and CakePHP).

The problem of over-engineering isn't just related to the big PHP frameworks - the same problem exists in Python and Ruby.

At its core, web development is about taking some user input, validating it, throwing it in a database, and displaying it again (perhaps slightly modified) to users. That's a fairly simple concept, and frameworks should reflect that.

Re: Addition of 1 and 1 in PHP

#37
post #6

Yes this is a good joke until you realize there is no other way to get some level of type safety in PHP other than adding a bunch of unnecessary classes.

That's like saying the only way you can get your car to remain buoyant over water is attaching a huge flotation rig to it and even then it won't be as fast as driving on the road

Re: Addition of 1 and 1 in PHP

#39
post #11

I'm not familiar with the PHP ecosystem. Is the author making fun something other than obvious over-engineering? Does he or she feel like that's a problem in the PHP ecosystem? I'm criticizing, because it's funny. I'm just trying to figure out if theres some wisdom being conveyed that I'm missing.

I think he is mocking the general pattern of over-engineering and PHP just happens to be the language he wrote this in. At least PHP is not a language known for massive over-engineering. Usually people associate the exact contrary with PHP. But there is indeed a recent trend towards better object oriented designs in PHP and with it comes also more over-engineered code. But I have yet to see any Java-style absurdity.…

> I have yet to see any Java-style absurdity.

Then you probably haven't tried Zend Framework ;)

Re: Addition of 1 and 1 in PHP

#40

Pretty much sums up how I feel about most of the big frameworks (Zend in particular, but also Symfony and CakePHP). The problem of over-engineering isn't just related to the big PHP frameworks - the same problem exists in Python and Ruby. At its core, web development is about taking some user input, validating it, throwing it in a database, and displaying it again (perhaps slightly modified) to users. That's a fairly…

> The problem of over-engineering isn't just related to the big PHP frameworks - the same problem exists in Python and Ruby.

OTOH, the "complexity" may also be "configurability" or "pluggability" with missing shortcuts. And quite often the "simple" version ends up being insufficient when one needs to tweak something: http://lucumr.pocoo.org/2013/2/13/moar-classes/

> That's a fairly simple concept

When going for pithy statements and omitting most of the actual issues, even encryption, clustering or networking "[are] fairly simple concepts". Which effectively they're not.

Post reply on HN