Prototype

Anyone who does any JavaScript development should give the Prototype framework a try. It provides a lot of helper functions that replace a lot of code. For example, there's a $() that effectively calls document.getElementById(), but allows for several arguments and will return an array of elements matching those IDs. A few functions handle form access and processing, and there are a handful of AJAX functions I haven't tried yet. It's nothing that I couldn't do on my own, but it makes things much easier. I just started playing with it at work yesterday, so I haven't found out what it can really do, but I think I'll be using it for other projects.

Unfortunately, the official site has next to no documentation. The code is simple and clean enought that reading it is enough in many cases, but it's not all too clear. Thankfully, plenty of people have come before me, so there's some decent information out there. The two I found most useful were Particletree's introduction and Sergio Pereira's guide.

2 Comments

You should check out Resig's

You should check out Resig's JQuery. He released it at BarCamp NYC this weekend.

It supplies a vastly superior $() - and you can still use prototype with it. Just load prototype before jquery, and you can use JQuery's $() instead

Good lookin' out. I'll have

Good lookin' out. I'll have to check it out as I've found myself writing way more Javascript than I ever used to.

Syndicate content