Web Development with Apache and Perl
I mention Stein's book because that's what this new book reminded me of most (that, by the way, is a huge compliment). Petersen realises that an overview of the whole web development area would be difficult to write (and, ultimately, unhelpful) so he restricts himself to a subset of the available technologies - Perl and Apache - and gives a thorough review of the state of the art of web development in these areas.
But before he gets into the details of Apache and Perl, in chapter 1 Petersen takes a look at the wider world of Open Source Software and in the process presents one of the best arguments I've seen in print for why a company should choose Open Source Software. In chapters 2 and 3 he takes the same approach with web servers and scripting languages, giving compelling reasons for choosing Apache and Perl.
Having chosen his architecture, in part 2, Petersen moves on to looking at some common tools for web development. Chapter 4 looks at databases. The two main Open Source Databases (MySQL and PostgreSQL) are compared and MySQL is chosen as the basis for the rest of the examples. Chapter 5 discusses the shortcomings of the standard CGI architecture and introduces mod_perl as an alternative. This is a good introduction to a technology that some people can find hard to get to grips with. Petersen takes us through the use of Apache::Registry before moving on to the complexity and power of mod_perl handlers.
Chapter 6 looks at the importance of security in web applications and discusses in some depth the problems of user authentication and the use of SSL for secure data transmission. Chapter 7 looks at ways to separate content from presentation. First we look briefly at server-side includes, but the majority of the chapter is taken up with a review of the various templating systems that are available for Perl. The chapter finishes with a detailed look at two of the most popular templating solutions - HTML::Mason and Template Toolkit.
Part 3 of the book looks at three different types of web site in great detail. In each case Petersen uses the examples to take a brief survey of a number of the existing tools. For example chapter 9 looks at a community web site and contains information about a number of web-based forums and chat rooms. It also takes an extended look at Slashcode the software that runs Slashdot. Chapter 9 takes a similar approach for intranet sites and Chapter 10 for online stores.
In part 4 we take a longer term view of a web site. Chapter 11 looks at content management systems and chapter 12 lookat at performance tuning. Both of these chapters are full of useful advice on how to make running a web server as painless as possible.
I think this is a very useful book to have on your bookshelf. Anyone who is developing web applications using Apache and Perl will find something useful in the book. It should be obvious that in order for a single book to cover so much ground, sometimes there isn't quite as much technical detail as you might like, but there is a good bibliography that will show you where to go for more information. In my opinion the high-level approach makes the book particularly useful for a couple of groups of potential readers. Firstly I think it makes a great introduction to the subject for someone coming to Apache and Perl for the first time. Secondly (and perhaps most importantly) I can see the book (in particular the first three chapters) being very useful reading material for a manager who is making a decision between using Open Source Software or some proprietary technology.
You can purchase Web Development with Apache and Perl from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
My, this guy is making all the right decisions today...
Manning Publications Company always seems to have these creepy cover illustrations.
I much prefer the O'Reilly animals.
And yes. I am being a little facetious here.
I really find it hard to believe that Perl with apache could be the best example for why OSS works! These are hardly the best example of what they can do for a person or corporation. When the possibilities are endless, how does Perl fall into the fold?
>choosing open source is such a good idea then do
>we really need shit like this pointed out?
Do you see the market share Windows has? While it isn't right for everyone, there are a lot of people who ARE right for open source but don't know it yet.
What, even the slug book? :-)
--
What short sigs we have -
One hundred and twenty chars!
Too short for haiku.
Apache and Perl was the way to go in 1996, but times have changed. Systems like PHP and (here comes the -1 Flamebait mod) ASP are faster and more efficient than Perl CGI. Serious webmasters do it in Java or C anyhow, for serious speed.
Cretin - a powerful and flexible CD reencoder
Unfortunately, after a second edition in 1997 the book hasn't been updated.
And yet, it's still being used in the Department of Foreign Affairs as need-to-know material for our intranet site developers.
However, most of the n00bs here seem to read PHP and MySQL web development, by Luke Welling and Laura Thomson.
The Canadian government uses Java, XML, VB/VBA, SQL Server, and ASP, but SQL and PHP are the primary ones.
I did ask around at web development and we did in fact order copies of the new book that you reviewed though. Cool, eh?
Don't want to be a troll but no matter how good the book is, surely for material like this, the web itself is the best medium.
.
A paper book is certainly more portable, and for most people easier on the eye, especially when you read for a long time but . .
Topical material is quickly out of date
You can't search too easily for the topic or phrase you want
You can't easily look up a reference for a term or concept you don't understand
If a certain paragraph doesn't make sense you can't look for alternative statements of the same concept
Once you've read it there isn't any easy way to look up a particular section when you next need it (the books at home, borrowed by a colleague etc)
Books cost!
What, even the slug book [miketaylor.org.uk]? :-)
;-)
Yes, I think even the slug book!
The link points to a story about how EToys set up a corporate website on mod_perl. Not about how mod_perl was the greatest thing since sliced shit and regularly tromped C++ and Java in benchmarks, but just that one could do it. Big deal! I'm not talking about how one *can* do it -- I'd advocate Common LISP in that case -- but about how one should do it.
Cretin - a powerful and flexible CD reencoder
Look at the benchmarks for PHP vs ASP lately, it usually outperforms it. i'm sure C is faster, but i haven't read a thing on java servlet pages and how it performs speedwise. I actually thought java servlets would be slower than php but i could be wrong.
- tristan
-- Sorry, I can't think of anything funny to say here.
another PHP vs Perl flamewar?
Everybody has a purpose in life, maybe mine is to lurk in slashdot.
When I read the headline I thought you were talking about an updated version convering Apache 2.0
True in a Nutshell
/bin/false? Why not make a grand slam manual and include /dev/null as well?
2 pages, $1.95
Okay, do we REALLY need a 2 page book? And what good is true with out
When I started web programming 2 years ago and faced the choice between working with Java, Perl and up-n-coming PHP, I looked around and it seemed to me that the people using Perl were doing the most innovative, creative stuff on the web. (Slashdot's "distributed moderation" scheme, which I regard as a quantum improvement over USENET moderation for providing large-traffic yet readable forums was just one example.)
I wanted to do innovative, creative stuff, so I started writing Perl.
No regrets. I don't think that aspect of Perl has been particularly usurped. Nor do I think there's another language which provides a platform for faster time-to-market and feature iteration.
As mentioned elsewhere on this thread, and Java and PHP have their own distinct advantages also.
--LP
Perl & Apache is an excellent combination for bringing sanity to legacy systems.
As far as dealing with legacy systems, nothing is better than Perl. For example, in a project I'm working on, in my company there is a vast array of legacy tools which require using telnet to get the work done. And the web interface I'm building (CGI & Net::Telnet) get's the work done beautifily. (Try doing this in PHP or Java.) The admin people are happy, and the development time so far has been almost negligible. Perl is the supreme glue language.
The number one reason was performance.
That was most likely for some 1.x version of Apache. The Windows version of Apache 2.0 has been written as a native Windows application, instead of being ported like earlier versions. Now it performs as well, or better than, IIS 5.0.
E-Week has an article on this.
... I'd mod this as +1, Funny.
The cover should have a slug, a snail, and some salt. Which is which is up to you.
(B) + (D) + (B) + (D) = (K) + (&)
I have compiled a list of books I think should be on every web developers bookshelf. While I don't cover perl (I'm a PHP/JSP guy), if you are interested in this topic, you may find my page of interest. (http://www.starvingmind.net/tech.jsp)
For the Perl/Java tech argument. Well designed java pages can be just as fast, or faster then poor perl cgi's, and vis versa. I too have seen very slow JSP/servlet's. JSP's should not be programmed the same way as a language like PHP or perl in many cases, it will be slow. Perl ranks third for me, but not totally off the charts.
I for one would argue JSP based development makes more sense for most sites, due to development productivity, and language functionality. And as I said before, a well design Java site can execute as fast or faster than some perl CGI sites. PHP ranks right behind JSP's in my mind, since they don't provide as much functionality, although they are very fast for simple things.
Perl should be a tool in your developer's toolbox, although I believe PHP or JSP's are in most cases a better tool for the job of making dynamic web sites.
-Pete
Soccer Goal Plans
From a fresh startup angle... Basic Perl scripts: Simple for somebody who knows basic C++ Basic Perl Install: Generally works when just installing apache PHP Install: A little trickier... best if you knew to compile apache with DSO support when you did the initial install...
There is no One True Programming Language.
There is no One True Computing Platform.
There is no One True Ice Cream Flavor.
There is no One True Beer.
There is no One True..., um, you get the picture, right?
Another option is OpenACS. Lots of neat tools for building dynamic websites.
Apache and Perl was the way to go in 1996, but times have changed. Systems like PHP and (here comes the -1 Flamebait mod) ASP are faster and more efficient than Perl CGI. Serious webmasters do it in Java or C anyhow, for serious speed.
:-P
he did not mention speed and cgi in the same sentence
look there is clearly one sentence about cgi and one about speed.
-logicbug
I can't really give the book a whole-heartedly positive review since it spends WAY too much time talking about the theoretical considerations behind minor components (like the Apache web server used to redirect requests to the tomcat servers) and WAY too many pages trying to sell me on the tools this guy likes -- even when they happen to be the tools I'm already using.
However, this book does one thing that I've had a hard time finding: giving an end-to-end discussion of how to build an app with JSP. It talks about JSP, JDBC, Java beans (as used in JSP development rather than as they are used in swing development) and a little about java in general, PostgreSQL and so forth. To my way of thinking, the biggest problem with Java is that information about the platform is fragmented into so many books that it's hard to figure out how to use the stuff. This book overcomes that tendency to some degree.
So, take a look. If you -- like me -- are an old perl hacker trying to update your skills and do development "right", it might be a good purchase.
"He who would learn astronomy, and other recondite arts, let him go elsewhere. " -- John Calvin, commenting on Genesis 1
I do not want to start a flame war or anything. I have been getting into Python lately and am starting to wonder why I don't see more sites using Python over Perl? Can anybody point me to some dynamic sites that have passed over Perl, PHP, JSP, CFM -- and decided to go with Python. Having played around with many languages over the years? -- there is something about Python that made me do a double take and I have been indulged ever since....
(+1 Funny) only if I laugh out loud.
Lincoln Stein created a classic with "How to Set Up and Maintain a Web Site," and I believe that any serious web developer (and certainly any professional) should know how to get around in Perl CGI. Stein also wrote CGI.pm, probably one of the most used Perl modules. JSP/Servlet implementations remain the right way to do things today, but Stein's book still holds great value.
any website based on perl is doomed to become an unmaintainable mess. look at languages better designed for web use or at least maintainability (php, python, etc).
You can be both more incisive and factually correct:
any website coded by perl 1337 hackers who spent more time reading slashdot than studying CS is doomed to become an unmaintainable mess. look for programmers whose code is better designed for web use or at least maintainability (be it in perl, php, python, etc).
There you go.
Freedom is the freedom to say 2+2=4, everything else follows...
I mean sites devoted to web development on Linux, Apache, Perl and PostgreSQL (no, not MySQL)?
I prefer to have both. It doesn't need to be exactly the same book, although that is nice, a good book that covers the area in general and websites for more in depth information. 'Running Linux' is a perfect example, it covers the specific areas well enough to get you going and is general enough to be of use to the experienced user who just needs a simple kick in the head. The more specific stuff can then be gathered from the web, once you know what you are looking for (or at least have an idea).
Slainte
I feel so sig.
Danny.
I have written over 900 book reviews
AC's mental illness is showing.