Dear Lazyweb
Oct. 1st, 2008 01:27 pmCould some of you recommend good books on PHP and Perl, hopefully ones that are both textbooks and decent reference? Yes, I know there are good tutorials online. I am annoying in that I like texts made of paper or other, paper-like material. Also, I want to spend less time looking at screens, as I've done far too much of that over the last several weeks.
Despite this, recommendations for good online tutorials and other quick-up-to-speed systems would be appreciated as well. But I'm hoping for paper versions that are worthwhile.
Despite this, recommendations for good online tutorials and other quick-up-to-speed systems would be appreciated as well. But I'm hoping for paper versions that are worthwhile.
no subject
Date: 2008-10-01 08:40 pm (UTC)O'Reilly's got an excellent series. Learning Perl by Randal Schwartz is the gold standard - a very large percentage of professional perl programmers got started from this one. The second, larger volume is Programming Perl and is an excellent reference book.
The other book I really like is Perl Best Practices by Damian Conway. Perl is renowned for having many ways to do things. This book attempts to sort out which ways are better, in very specific practical ways. It doesn't hurt that Damian Conway is an excellent writer.
And also, The Perl Cookbook is a good book while learning. It has a lot of examples of how to do fairly common tasks. I used to refer to this one all the time, when I was in the 2-4 years experience zone. I think there is an updated version from a few years back.
no subject
Date: 2008-10-01 08:55 pm (UTC)Of course, the real secret to programming is even simpler: never debug an empty file.
no subject
Date: 2008-10-02 03:52 am (UTC)no subject
Date: 2008-10-01 08:53 pm (UTC)Beginning Perl, James Lee, Apress
Date: 2008-10-01 09:19 pm (UTC)http://www.perl.org/books/beginning-perl/
Re: Beginning Perl, James Lee, Apress
Date: 2008-10-01 09:57 pm (UTC)I don't know what's a good book on PHP (depressingly, PHP is the 'language' I am mostly paid to program in these days) but unlike Perl which is deeply, intensely confusing for the hell of it, it pretty much works the way you'd expect, just shitter. So you can just start coding stuff and use the online manual if you get stuck. All variables have $ signs, you can get the web stuff from $_SERVER, there's a function print_r($variable) that does a deep trace of the variable (struct members, array items, etc) so you can see what's in it... that's it, you're good to go. ;) Oh and make sure you set debugging level to DEBUG_ALL in your php.ini or with the function that does that, otherwise you will have no idea why nothing works.
Re: Beginning Perl, James Lee, Apress
Date: 2008-10-01 11:18 pm (UTC)- The reference semantics and syntax suck.
- Use xdebug and Eclipse PDT.
no subject
Date: 2008-10-01 10:08 pm (UTC)Learning Perl / Programming Perl / Advanced Perl Programming
no subject
Date: 2008-10-02 01:12 am (UTC)no subject
Date: 2008-10-02 03:21 am (UTC)no subject
Date: 2008-10-03 10:26 pm (UTC)Perl is significantly easier if you've had prior exposure to sed, awk and sh. For some reason I don't think that's an issue for you. :-)
I've yet to find a single good reference on PHP and I've gone through several books. PHP alternates between being well designed and "what chancrous gnome did they slice *that* off of". You can pick up language semantics in probably an afternoon of browsing the php.net tutorial. Most of using the thing effectively is learning how to structure your pages. If you're used to content and code separation, it'll be natural. If you want to mix stuff in wildly, it works that way too.
It's at least 3 orders of magnitude more pleasant than doing cgi's in perl. :-)