Skip to Content

Free TUAW iPhone app -- try it now!
AOL Tech

Perl posts

Filed under: Design, Developer, Internet, Windows, Macintosh, Linux, Web services, Open Source, Unix

Maypole: Agile web development for the rest of us

Maypole If you've been anywhere except under a rock for the last 18 months or so, you're probably sick to death of the phrase "Web 2.0," and for many people, Web 2.0 has become almost synonymous with Ruby on Rails. Ruby on Rails, though, has some major drawbacks for the average web designer. Ruby, while gaining steam, is still not as popular as more established programming languages. There aren't as many programmers who know it as there are who know, say, Perl, Java, ASP or PHP. So developing RoR applications means investing time and money in training yourself or your team in a new language.

That may be a minor hurdle, but Rails offers more serious barriers to adoption. First, it expects to run its own webserver, which will conflict with your main webserver listening on port 80. It can be made to use an existing Apache or IIS server, but the configuration is not simple. Even when running on an existing server, it expects to run as a separate application in a mod_ruby environment. While that makes RoR applications very efficient (like mod_perl applications before them), it also means that using Ruby on Rails requires control over you servers. That's great if you manage your own hardware and internet connection, but most people don't. The majority of websites, even those owned by medium to large-sized businesses, are hosted with web hosting companies where individual users don't have dedicated equipment or access to server configurations. Even at my workplace, where we do most things in house, my department web space is just a small part of a server infrastructure maintained by a completely different network and server administration department. Adding my Rails applications to the forward-facing servers isn't in the cards.

Enter Maypole.

Maypole is a rapid web application development framework written in Perl by Simon Cozens and maintained by Aaron James Trevena and others. It will run anywhere there is Perl, which is most of the world's webservers, and provides a powerful environment for "agile web development," including database abstraction and the powerful and popular Template::Toolkit templating system. Best of all, it is platform agnostic. It can run under either mod_perl or as CGI, an will check for itself to see which environment it is running in. That means You can start using it today on your Dreamhost (in fact, I have a Maypole application running on one right now) account, and pick it up tomorrow and move it someplace else without hassle.

The Maypole site has some good introductions and links to some great articles, as well as the Maypole Perl module itself. As with any Perl project, though, the best way to get it is to install it directly from CPAN and read the perldocs.

Filed under: Developer, Internet, Utilities, Productivity

XAMPP, the new LAMP hotness

XAMPPXAMPP is an easy to install web server distribution containing Apache, MySQL, PHP and Perl. It claims to be a snap to use and install. After I got through clicking like 20 times to find the actual file download link on the XAMPP site (hosted at sourceforge), which irritated me a bit, the process got a bit better. You can download three different versions of the file, the installer (32MB), the zip file (86MB), or the self-extracting executable (28MB), all with MD5 checksums. The software package you get with this download includes these fine modules: Apache HTTPD 2.2.3, MySQL 5.0.24a, PHP 5.1.6 + 4.4.4 + PEAR + Switch, MiniPerl 5.8.7, Openssl 0.9.8c, phpMyAdmin 2.8.2.4, XAMPP Control Panel 2.3, Webalizer 2.01-10, Mercury Mail Transport System for Win32 and NetWare Systems v4.01a, FileZilla FTP Server 0.9.18, SQLite 2.8.15, ADODB 4.91, Zend Optimizer 3.0.1, XAMPP Security. The full install on my Windows machine ate up about 218MB of hard disk space, which is quite good for all that software in one shot. I found myself as happy as a kid with a 6LB. box of chocolates and no one else around. Luckily, I didn't have to know anything about the guts of the programs running, and XAMPP even offered to install and run all the services I needed, which it also succeeded at starting, which is a rare thing for all of them to work on the first try. Many times these LAMP-like installs go awry in some way, but XAMPP looks to be in control in this regard. At first I thought, oh great, all I need is one more LAMP to install and put up with, but honestly, it was the easiest install and start-up I have ever done. Most enjoyable indeed. If your LAMP needs an upgrade, XAMPP is a new light bulb.

Filed under: Developer, News, Productivity, Open Source

Ruby book sales pass up Perl

RubyO'Reilly Radar reports that Ruby programming book sales outpace Perl books. This is somewhat surprising, but not unexpected. Ruby is quickly becoming a popular language. Surpassing Perl is a clue that Ruby is gaining significant ground on its way to stardom. While Ruby is seen as the primadonna of web coding by many, it does hold real value. Ruby offers a lot of the things developers have needed for a long time. It simplifies a lot of programming concepts and is worth the lookup. You can download Ruby free and you'll see why it is quickly gaining ground in the web dev world.

[Via O'Reilly]

Filed under: Developer, Web services

gotAPI: Slick web developer's reference

gotAPIgotAPI is a cool Ajaxy web app that gives you quick access to reference materials for a variety of web technologies. On the top there's a list of languages including HTML, JavaScript, CSS, PHP, Java, Perl, and six others, and when you click on one of them the list of HTML tags, JavaScript objects, PHP functions, etc. pops up. There's a search box at the top for finding items quickly, and clicking on an item brings up a reference page at the W3C , MSDN, W3Schools, and the like. I wish there were more languages available (Ruby, Python, and XUL, for example), but it's a great one-stop resource of a lot of tasks.

Featured Time Waster

Graveyard Shift - zombie-busting Time Waster

With Halloween fast approaching, it's a great time to get in some practice defending your territory against zombies. In Graveyard Shift, you take aim at zombies and other creepy-crawlies, blasting them into splatters of cartoony green guts. It's a casual first-person shooter, and it's very easy to get the hang of - use the mouse to aim, click to fire. Graveyard Shift has at least 15 levels, and it might even have some secret stages I haven't unlocked yet. They key to getting good at Graveyard Shift is learning to use ...

View more Time Wasters

Featured Galleries

Defective by Design, London: Protest Pictures
Microsoft Security Essentials
Chromium Pre-Alpha on CrunchBang Linux
Safari 4 Beta
10 Firefox themes that don't suck
IE8 RC1
Download Squad at the Crunchies After-Party
Download Squad at the Crunchies
WordPress 2.7
Cooking Mama: Mama Kills Animals
Windows 7 Hands On
Comodo Internet Security
Android First-look: Amazon.com MP3 Store
Android First-look: Twitroid
Google Reader Android
Android Hands-On
Twine 1.0
Photoshop Express Beta
Mozilla Birthday Cake
Palm stuff
Adobe Lightroom 1.1

 


Follow us on Twitter!

Flickr Pool

www.flickr.com

More Tech Coverage

AOL Radio

Joystiq

TUAW

Daily Finance

Autoblog

Urlesque

Engadget

WoW

Switched.com

FanHouse