News for hackers. Stuff that matters.
Re:What programming language should I start with? by Zak on Tuesday August 21, 2007 @09:42AM (#44772)
What's not to hate? It's not very powerful (lacks first-class functions, for example), it's messy (just look through the function reference), it's weakly typed (try performing multiplication on a string), it's fairly insecure by default and it's simply ugly. It may be convenient to be able to start by inserting a few blocks of PHP in to an existing web page, but you can do the same thing just as easily using Ruby and RHTML.
Re:What programming language should I start with? by mechanical_fish on Tuesday August 21, 2007 @11:02AM (#44798)
If you sit down at a randomly chosen web server and write two files, one ending in .php and one ending in .rhtml, which file do you think has the better chance of working correctly? Newbies would prefer not to know what CGI means, let alone how to edit an Apache setup file.

But, yeah, PHP is a scary language. In addition to what you've already mentioned, PHP's core "array" datatype appears to have been designed by a committee of drunken camels.

Re:What programming language should I start with? by Zak on Tuesday August 21, 2007 @12:31PM (#44822)
I would not expect someone trying to learn to program to select a web server to test projects on randomly. Installing mod_ruby is as easy as installing mod_php. Finding web hosts that support it isn't hard either.
Re:What programming language should I start with? by jey on Tuesday August 21, 2007 @04:32PM (#44955)
Plus, there are Ruby on Rails packages that don't even require apache! You just download the package, install it, then you can run a built-in development webserver by typing "script/server". What could be easier?

(OK, I know of one stealth mode startup that's going to make it even easier, but that's beside the point.)