News for hackers. Stuff that matters.
Re:Script kiddies have awesome tools by gopher on Wednesday November 05, 2008 @09:12AM (#354495)
Basically, Wordpress is written in PHP and this is the root of all evil.

Let's look at the roots of PHP: it was never designed as a programming language, it was a tiny script language used to create Rasmus Lerdorf's website. Thus, it has a lot of oddities like the === operaor.

Do you know why it it is there? Because they wrote a broken instr() wrapper and messed up the error handling. And instead of doing one thing right, they added another obfuscation layer. Great design.

Then, PHP was traditionally used by webdesigners, not programmers. This lead to tons of bad code and bad practices. It is not that you cannot write elegant code in PHP, but there is so much more bad code around that it is hard to find the good code.

So, why do wonder about this?

Re:Script kiddies have awesome tools by bprater on Wednesday November 05, 2008 @02:33PM (#354844)
Can we stop this argument already?

Real hackers can appreciate every damn language out there. If it weren't for Basic in the early 80s, I wouldn't be programming now.

PHP is a wonderful gateway language for a generation of web programmers. It is installed on every webserver and is always ready to rock-n-roll. No other language has achieved that level of ubiquity.

Re:Script kiddies have awesome tools by tptacek on Wednesday November 05, 2008 @04:33PM (#355005)
No. We can have a productive discussion about whether a language and its frameworks are conducive to secure coding without it devolving into a language war. We're adults here, and there are more than just stylistic differences between PHP and its competitors.
Re:Script kiddies have awesome tools by thomasmallen on Wednesday November 05, 2008 @10:23AM (#354541)
Don't get me wrong, I like using Python. But I prefer small compromises addressing prior mistakes, allowing for backwards compatibility, over a full rewrite.

I think we're a few years past the arguments you make against PHP. If you want to be trendy, you should rail against the people running Internals (namespace separator).

Re:Script kiddies have awesome tools by lacker on Wednesday November 05, 2008 @12:11PM (#354681)
Waiting a few years doesn't make his arguments wrong.
Re:Script kiddies have awesome tools by thomasmallen on Wednesday November 05, 2008 @02:03PM (#354812)
By "past" I meant that they've been adequately addressed.
Re:Script kiddies have awesome tools by amackera on Wednesday November 05, 2008 @04:22PM (#354989)
Despite the qualms I have with PHP, you can't blame the language for design flaws in the software.
Re:Script kiddies have awesome tools by tptacek on Wednesday November 05, 2008 @04:34PM (#355008)
Sure you can. People do it all the time with C.
Re:Script kiddies have awesome tools by amackera on Friday November 07, 2008 @01:22PM (#356890)
Hah! Fair enough, but my point was that those claims aren't legitimate. Especially those claims about C