News for hackers. Stuff that matters.
Re:PHP: A fractal of bad design by corford on Tuesday April 10, 2012 @01:20PM (#3823295)
Sorry but that is quite hard to swallow.

How are any of these not fit for building an MVP in 2012?

http://silex.sensiolabs.org/ http://twig.sensiolabs.org https://github.com/nrk/predis

There are also modern libraries for a plethora of other RDBMS and NoSQL systems (I think PHP is even going to support mongodb natively soon i.e. no third party client library required).

Re:PHP: A fractal of bad design by encoderer on Tuesday April 10, 2012 @02:19PM (#3823591)
I've done quite a bit of PHP development, a lot of more advanced stuff (Earlier in this topic I linked to a PHP Daemon library of mine on Github).

But PHP has either missing or NOTORIOUSLY inferior Memcached/Redis/Mongo/Cassandra/HBase/Riak/etc clients. They get the job done, but they underperform, say, Python or Java versions in benchmarks and introduce far more bugs and quirks than I've experienced in other languages.

This has actually been a positive thing, because when you're using these data stores/queues/etc at scale and you need bulletproof client libraries, you naturally are led to a SOA. You end up with Python/Erlang/Clojure/Java services that interact with the datastore, that you consume from PHP using Thrift et al.

But being so bad that it pushes you into building a better architecture is kinda a preverse benefit

Re:PHP: A fractal of bad design by corford on Tuesday April 10, 2012 @02:22PM (#3823609)
I haven't used a PHP nosql client library at serious scale so I will bow to your better experience (although in the case of Redis clients, some links would be nice as I wasn't aware that the two major PHP clients had any performance/reliability problems - I'm very surprised that https://github.com/nicolasff/phpredis under performs given it's a C extension).

Having said all of that, if you are building a site that uses NoSQL and needs to scale to millions of simultaneous hits you'd be insane not to develop it with SOA in mind. Using just PHP (or any other single language) wouldn't make sense.

Re:PHP: A fractal of bad design by encoderer on Tuesday April 10, 2012 @02:25PM (#3823627)
I may have been making that up re: redis, honestly. It's guilty by association in my mind, but I've used redis in PHP a lot without any first hand problems.

But Memcached, certainly (and even doubly so for the `Memcache` extension that ill-informed developers install instead of the better `Memcached`), and the others listed, either are slower/etc or just don't exist.

Re:PHP: A fractal of bad design by corford on Tuesday April 10, 2012 @02:32PM (#3823659)
Fair enough, I'm sure you're right with some of the other lesser used libraries e.g. Riak. It's probably fair to say it takes PHP longer in general to get a good client library than say Python. Not sure about Ruby.
Re:PHP: A fractal of bad design by WHENCE234 on Wednesday April 11, 2012 @03:48AM (#3826428)
Please, the PHP industry is stuck on Wordpress and CodeIgniter which are amateur software.

Yes, you can enjoy these wonderful modern tools for PHP at home meanwhile you suffer with old-tier libraries at work because everyone refuses to move forward.

Re:PHP: A fractal of bad design by corford on Wednesday April 11, 2012 @01:35PM (#3828635)
Change where you work...