News for hackers. Stuff that matters.
Re:Poll: What's Your Most Disliked Programming Language? by EGreg on Saturday March 24, 2012 @11:50AM (#3749632)
I actually disagree to some extent. I know, it's PHP. But it can do some pretty amazing things if you think in terms of files. If you're coming from a C background, it's actually quite nice.

For example, you can use include ( ) in so many ways, autoload classes, write getters/setters and override anything, implement views, etc. Everything "just runs", or can be compiled into fast code with HipHop (or cached with APC).

OK, to be fair, I would say that PHP with a framework that takes advantage of it can be very cool. I can't exactly share our codebase, but you can see the open source version from 2 years ago : http://phponpie.com to aprpeciate some of the "beauty" of PHP

And it can be extremely expressive and powerful. Sure, it can't do everything that Node.js can do, but for serving requests it can be awesome. It isolates every script in its own memory space, so you never have to worry about anything! The one thing I do not like about PHP is that it's married to the outdated thread-based webserver model, while the new boys on the block (NGinX, Node.js and the new Apache) all use event-based programming.

Don't downvote just because I said PHP can be cool. Look at our framework at least, before voting :)

Re:Poll: What's Your Most Disliked Programming Language? by zaphar on Saturday March 24, 2012 @11:59AM (#3749668)
Actually I upvoted you. Just because I dislike PHP doesn't mean someone else can't like it.