News for hackers. Stuff that matters.
Re:At 14, is PHP Finally Growing Up? by abyssknight on Tuesday June 09, 2009 @09:10AM (#648993)
I would like to argue the C language argument here. If I want to shoot myself in the foot, the language should let me. If I want to paint the Mona Lisa, the language should let me.

PHP does that.

Re:At 14, is PHP Finally Growing Up? by mahmud on Tuesday June 09, 2009 @09:20AM (#649015)
PHP will let you paint the Mona Lisa at favicon resolution.
Re:At 14, is PHP Finally Growing Up? by abyssknight on Tuesday June 09, 2009 @08:57PM (#650328)
Fine. I call you on this.

Full size: http://williamriggins.com/mona.php?x=400&y=571

Favicon Size: http://williamriggins.com/mona.php?x=10&y=10

Code (minus base64'd image constant): http://pastie.org/506643

Re:At 14, is PHP Finally Growing Up? by jrockway on Wednesday June 10, 2009 @12:00AM (#650546)
I think you missed the metaphor.
Re:At 14, is PHP Finally Growing Up? by mixmax on Tuesday June 09, 2009 @12:02PM (#649292)
and any other resolution you might choose.
Re:At 14, is PHP Finally Growing Up? by jrockway on Tuesday June 09, 2009 @04:52PM (#649969)
Features that PHP is missing and would be very difficult to implement in use code include continuations, lexical closures, macros, a sane type system, multimethods, a metaobject protocol, and many others. Why confine yourself to the tools of a 1950s-era programmer when it's 2009?

(PHP isn't even very good at "web stuff", although the frameworks try to improve this situation.)

Re:At 14, is PHP Finally Growing Up? by BerislavLopac on Wednesday June 10, 2009 @04:28AM (#650735)
I'm not sure what you mean by Web stuff, but here's a couple things I like about PHP:

1. When I want to do a quick Web page with no effort to last -- just to test something or prov a concept or something -- all I have to do is put together one or two PHP files and it's up. Even then I follow all the good programming practices: separation of business and presentation code, proper classes etc, and PHP let's me do that just fine.

2. If I properly organize my code (which I usually do) all I need to move a site from one location to another is simply copy a single directory. This even includes smaller SQL based sites since PHP5 has built-in support for SQLite. And it works on virtually any hosting available today.

Granted, these features are not really a compensation for all PHP's failures (don't ge me started), but there are times when those particular advantages outweigh anything else.

Re:At 14, is PHP Finally Growing Up? by rbanffy on Tuesday June 09, 2009 @04:54PM (#649975)
If you want to paint using crayons, that would be correct.